TFS in VS2013, *.dll.add files - visual-studio-2013

I'm using Vs2013, with TFS...
I'm getting a ton of *.dll.add files and some other .add files.
Currently I'm excluding them from checkin...
]
Can you please tell me what they are and what they indicate?
I assume they are some kind of TFS sentinel file...

Related

How to automate excluding deleted files on checkin?

I have a VERY large project which just went through an upgrade process. The upgrade is a process external to Visual Studio. As a result, files that are deleted by the upgrade process do not get properly detected by TFS so TFS pukes on checkin saying that it can't find the file.
The problem is that there are several hundred files that need to be excluded to resolve the issue. I could do this for days before I'm done. I'm pretty sure my boss would prefer it not take several days.
Is there a quick way to find and automate the exclusion of these files so I can just be done with it?
You have two options...
Use a Local Workspace - if you go into the settings of your Workspace you can change it from Server to Local. This will allow the changes to be detected automatically. You may need to copy everything out and then back in if you have already made the changes...
Reconcile the difference - You can use the TFS 2013 Power Tools and the "tfpt online /adds /deletes /diff /noprompt /recursive directory-name" command...How to have TFS 2010 detect changes done to files outside of Visual Studio?

Files cannot be merged because visual source safe doesn't support merging of files with different encoding

I am working on a project which is on Visual Source Safe(VSS). Me and my colleague were working on the same file. I am working in Visual Studio 2010 with VSS 2005, while my colleague was working in VIsual studio 2013 with VSS 2006.
My colleague committed her changes with no errors, but when I tried to get latest version of the file I am getting this error:
Cannot be merged because visual source safe doesn't support merging of
files with different encoding
The option that worked earlier for such an error is completely deleteing a file from local drive (of course keeping a backup copy!), and then recreating the file from visual studio & copy pasting the content from backup file.
But I am sure there will be some way out as the method I followed earlier doesn't seem to be the best practice.
Also, I cannot check in file; same error arises.
Any help would be appreciated.
Please check your file encoding in Visual Studio and the version in VSS database and see if they are the same.
To check the encoding in VSS, please locate the file in VSS, right click it -> Properties and check Type field.

My team members' Visual studio team foundation server cannot find files I checked in

We're using team foundation server as source control management tool. I checked in my projects and files . But when my team members get the latest version of code, what happened is they can find the files in file explorer but not in the visual studio solution explorer. This results in they have to add the files manually by clicking on adding existing items.
Anyone knows any possible root cause for this?
You checked in the files, but you also need to check in the updated solution (and/or) project files. Once they are checked in, have your teammates get the latest version of solution (and/or) project files.

Error MSB3541: Files has invalid value

I just deployed an asp.net mvc 3 web application to AppHarbor but it failed:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3932,5): error MSB3541: Files has invalid value "<<<<<<< HEAD". Illegal characters in path. [D:\temp\q5cmde4m.uk1\input\MyProject\MyProject.csproj]
This happened after I opened the project with Visual Studio 2012 (the application was created with VS2010).
Try to search the entire solution for the value and remove it from where it occurs, and then delete the obj folder from your project. When you build again it should work.
The obj folders are hidden in Visual Studio. You can see them with a file explorer.
Delete the obj folder within your project and it will fix the issue.
though it is very old question but I would like to add an answer here.
when you work with multiple developer in visual studio you should git ignore obj folder, .suo,.sln etc which is only holding the visual studio information user based.
refer to this SO question
Ok this might be helpful to someone else.
in my case my .vbproj file and some form files somehow had the last lines of its code truncated, I fixed this by restoring this missing part of the code (around the last 10 lines were missing) from a previous backup of the same project.
The other files got corrupted in a simillar way and were fixed by restoring the missing parts of the files from the backed up ones on a text editor (notepad)
After getting this the project loaded without issue.
Delete both obj and bin folder it will fix the issue, which in my cas its been done and it was causing when create pull request from remote repository !!
Yes, it is about merging conflicts. Usually Visual Studio highlights most of the errors with file paths. However, it does miss some files.
All you have to do is REMOVE the "obj" an "bin" folder from your solution.
If you are in Visual Studio, you have to select "Show All/Hidden files" as "obj" folder is hidden, and then delete it.
You can also delete it by going to your directory where your project is stored e.g C:/Users/username/source/repos/project/ (can be different in your case).

Visual Studio and TortoiseHg: folder not visible in VS

I created a C# project and added it to source control (mercurial). I can edit files in VS, commit it and push it using TortoiseHg. It goes to the server. When some one pulls they get the files.
In my visual studio I added a folder and a file inside that folder. I used TortoiseHg and it saw the new file in the new folder. I committed it and pushed it.
However, now someone pulled the latest code from the server - and they got the new file (it is visible through windows explorer), but when they open the solution in VS, they don't see the file.
Does someone have an idea what is wrong here? or things I should check? Thank you for the help.
P.S. I have visual studio 2010 express (so I can't use the VisualHg plugin).
Visual Studio caches changes to the solution and project until an explicit save or a build. In your comment:
In my visual studio I added a folder and a file inside that folder. I used TortoiseHg and it saw the new file in the new folder. I committed it and pushed it.
I see that an updated .sln or .vcproj file was not mentioned and checked in. Did you see an update to either of these files via TortoiseHg? If not, make sure to build or save your project after a change like this.
Did you make sure that the Visual Studio Project File or Solution file is being updated and committed?
VS solution contains projects and each project select managed files by metadata(***.vcproj file). It's not the way include all files from root directory.
So, your co-workers can see new added files by in following two ways.
1) share project file(***.vcproj)
2) manually add files in each person's VS instance.

Resources