I want to replace/update a DLL file on TFS server with the same name. But when i CheckIn the Dll it gives below message
That is TFS saying the file has not changed: the local copy you are uploading to the server is the same as the one the server already has.
TFS checks with a cryptographic checksum, so the content of the file is used to determine if it has changed.
Related
Team Foundation Server 2018 / Visual Studio Professional 2017 - Version 15.9.5
When i manually create a new file in Windows Explorer in a certain directory that is part of the TFVC source controlled tree, that file gets automatically added to TFVC pending changes (as "add"). Note that the file is not part of any project.
(The solution was opened in Visual Studio at the time the file was created).
This does not happen in other directories. I can add files to windows directories and they will NOT automatically be added to TFS and need to be manually added to TFS within VS Source Explorer. This is the expected behavior for me.
So it seems it is some configuration of a specific folder?, but i can't find it.
Didn't even know this was possible.
Can you tell me where to look?
FYI, this is a local workspace.
Edit: I have the TFS Explorer extension installed.
Edit: The new file is only added to pending changes when VS is open when creating the file in the folder. I did a test with VS closed, then create new file. Then reopen VS with solution and the file does NOT appear as a pending add.
When your workspace is configured as a Local workspace, files and folders are automatically detected and added (unless excluded by a .tfignore file).
Generally Local Workspaces are way more convenient, and are the default for workspaces with fewer than 100000 files (and with a fast system can exceed that number). It can be beneficial to configure a good tfIgnore file to control what is added automatically and what is ignored.
When there are no explicitly Included changes in your Team Explorer and you're in a local workspace, Visual Studio(2017+ from the to of my head) assumes you want to add all new changes and will auto-include them.
When your workspace is configured as a Server workspace, files and folders need to be manually added/removed, unless the changer are made through an IDE that is aware of the repository (Visual Studio will auto-add changes made in the solution explorer).
You can check the type of your workspace from the commandline:
tf workspaces /format:detailed /collection:https://dev.azure.com/jessehouwing
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>tf workspaces /format:detailed /collection:https://dev.azure.com/jessehouwing
=======================================================================================================================
Workspace : JACKIE
Owner : Jesse Houwing
Computer : JACKIE
Comment :
Collection : https://dev.azure.com/jessehouwing
Permissions: Private
Location : Local
File Time : Current
Working folders:
Or from Visual Studio:
I check in my .sln(no proj file) file to TFS.
When other team member download the project from TFS and open the .sln file, visual studio 2010 said it cannot load the project correctly.
The exact message from team member visual studio is:
One or more projects in the solution were not loaded correctly. Please see the Output Window for details.
The Output Windows message is:
D:\111\222 : error : Unable to open the Web site 'D:\111\222'. The Web site 'D:\111\222' does not exist.
The project is actually not loaded in the solution explorer and I am certain that all the .cs, .aspx and etc. are in my team member TFS local folder.
I believe it's due to .sln file point my TFS local folder.
My TFS local folder is d:\111\222
Other team member TFS local folder is d:\333\444
How should I check in my .sln correctly, so that the project will open correctly by my team member no matter where their TFS local folder located?
Check if your team member can open successfully after manully copying Web site to 'D:\111\222' on their machine.
Suggest you setting up an IIS virtual directory to point to the location the site is running from.
We have been using the ftp publishing method to upload our site to an external server. But have recently discovered that some of the JavaScript files that have been changed are not being updated when published. We have checked on the server to verify if the files have been uploaded and only found the old versions, so it's not a cache issue.
Additional Information:
We are using Visual Studio Team Services
We are using ASP.NET MVC.
We have the 'Exclude files from the App_Data folder' File Publish
Option checked.
We are not sure what is causing this to happen but suspect that the issue might be caused by source control. That the files that have been worked on and checked in on one machine are not seen as having been changed by the Visual Studio on the machine doing the publication.
We've found this question Content files not updating with Visual Studio 2010 FTP Publish that seems to relate to the issue we're having but would prefer not to have to use the workarounds provided.
Is there a other way to fix or avoid this issue?
I've been experiencing this off-and-on with file system publishing. Out of pure desperation I created a new publish profile and...it worked.
It appears to be related an issue with the .user file that's created for the publish profile. While not a solution, a workaround at least can be to remove the .user file if a problem is encountered.
Related question: Visual Studio 2012 Web Publish doesn't copy files
I would like to provide a Visual Studio extension (.VSIX) which adds a local NuGet server to the list of NuGet servers. Is this possible? Is there a generic way to change Visual Studio options by a .VSIX??
Do you really need VSIX? List of NuGet servers (or more precisely, package sources) is kept in plain XML file at this path: %APPDATA%\NuGet\NuGet.Config
(Package source does not have to be a server, it could be a folder or network share as well.)
Using VS 2010 & TFS 2010:
I have a TFS team project that was migrated from Visual SourceSafe.
While the migration was carried out on the server, I made changes to my local working copies of the files. Now I want to check in those changes.
I have mapped the team project to a
local folder. When I did a Get
Latest, all files that weren't
writable on disk were added to the
workspace.
For the files that changed, and were
writable, I get conflicts. In the
"Pending Changes - Conflicts" pane,
the only options for each conflict
are to 1) "Overwrite Local File or
Folder", or 2) AutoResolve the
conflict using AutoMerge to merge
"Conflicts with any content changes".
Option 1 is the opposite of what I
want. I want to check out the file
and use my local copy, not the server
copy, in the workspace.
Option 2 doesn't do anything when I
try it.
If I try to check out one of the
changed files, I get the error: "The
item [item] could not be found in
your workspace, or you do not have
permission to access it".
How do I check out, then check in, local changes without first getting a copy of each file from the server?
Normally you would have a third option to "Keep the local version". I guess you don't have it because the local files are just exact local copies of the server files. They are not part of the workspace, and that's why ou get the error when trying to check them out.
One quick solution is to move the local copies out of the workspace, do a get latest so their server copies get downloaded to your workspace, then check these downloaded files out and replace them with your correct local copies.
Alternatively, you can try do an Add (tf add - if you use the command-line tool) instead of an Edit on the local copies, then do a Get Latest again. With the files being added to your TFS server, you'll probably get the third option to "Keep the local version".
Hope this helps.
I had the same problem using Visual Studio 2010 but I was able to choose another option "Keep Local Version" using Visual Studio 2012 RC.
I have both Visual Studio 2010 and Visual Studio 2012 RC installed on my machine, Visual Studio 2010 only have one option "Overwrite Local File or Folder" but Visual Studio 2012 RC has two options "Overwrite Local File or Folder" and "Keep Local Version"
First check out, let VS-TFS get you latest version and then, do get specific version. It should work