Error CS1056: Unexpected character ‘$’ running the msbuild on a tfs continuous integration process

The problem can be fixed installing a Nuget package Microsoft.Net.Compilers. Below is the link of my highlighted answer: Project builds fine with Visual Studio but fails from the command line That feature is a syntactic sugar for C#6, try to install the latest version of the framework 4.6.2 https://www.microsoft.com/en-us/download/details.aspx?id=53345 Then go to your Project properties … Read more

TFS Build server and COM references – does this work?

Using tlbimp.exe directly is not necessary. Try replacing any <COMReference> items in the project file with <COMFileReference>. An example would look like this: <ItemGroup> <COMFileReference Include=”MyComLibrary.dll”> <EmbedInteropTypes>True</EmbedInteropTypes> </COMFileReference> </ItemGroup> The COM dll doesn’t need to be registered on the machine for this to work. Each COMFileReference item can also have a WrapperTool attribute but the … Read more

MVC project on VS2010 error : The project type is not supported by this installation

You basically don’t have something installed. That’s why you get this error. I am very sure that you need to install the VS MVC project type – either MVC 2 or MVC 3. Use The Web Plaform Installer to install. The web platform installer can be found here: http://www.microsoft.com/web/downloads/platform.aspx. Once you have installed it (it … Read more

TFS 2012 Build “Access to Path Denied”

As others mentioned, this happens when performing multithreaded builds with a common destination directory and the file copy task happens to encounter a simultaneous conflict with a copy task running for a different project. Normally this should result in a “file used by another process” exception (which is handled and retried by the file copy … Read more

Visual Studio isn’t tracking changes, or checking out files from source control as I edit them

Right-click on your solution node and go down to “Go online”. For various reasons visual studio can mark your solution as tracked by source control, but “offline”. It is still tracking changes behind the scenes waiting for you to go online again. After doing this my pending changes window populated and all is normal. I … Read more

How to undo another user’s checkout in TFS via the GUI?

Out of the box, no, but there are at least a couple of options via add-ons. TFS Power Tools TFS Power Tools (Visual Studio 2010) TFS Power Tools (Visual Studio 2012) TFS Power Tools (Visual Studio 2013) TFS Power Tools (Visual Studio 2015) Once installed: Open Source Control Explorer Right-click the item on which checkout … Read more

How to work offline with TFS

See this reference for information on how to bind/unbind your solution or project from source control. NOTE: this doesn’t apply if you are using GIT and may not apply to versions later than VS2008. Quoting from the reference: To disconnect a solution or project from source control In Visual Studio, open Solution Explorer and select … Read more