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

The builds tools for v120 (Platform Toolset = ‘v120’) cannot be found

If you have VS2013 installed and are getting this error, you may be invoking the wrong MSBuild. With VS2013, Microsoft now includes MSBuild as part of Visual Studio. See this Visual Studio blog posting for details. In particular, note the new location of the binaries: On 32-bit machines they can be found in: C:\Program Files\MSBuild\12.0\bin … Read more

An error occurred while signing: SignTool.exe not found

ClickOnce Publishing Tools are not installed as part of the Typical Installation Options. So you have to install it in advanced mode. This dialog can be found in Windows 7 by going to Control Panel > Uninstall a program, right-clicking on Microsoft Visual Studio Professional 2015 and selecting Change. A Visual Studio dialog will open … Read more

“This project is incompatible with the current version of Visual Studio”

If the message This project is incompatible with the current version of Visual Studio is due to an attempt to open a project targeting .Net 4.5, then the “solution” or workaround is to edit the .csproj file and change the TargetFrameworkVersion from “v4.5” to “v4.0”. That at least allows the project to be loaded, although … Read more

Relationship between the dotnet cli and the new vs2017 msbuild

Questions To build a new csproj netstandard library from the command line, should I be calling the dotnet cli (for example dotnet restore dotnet build) or use msbuild (for example msbuild ExampleNetstandard.sln). Both do fine as currently dotnet is built on top of msbuild. So it’s a matter of taste. You could also call msbuild … Read more

MS-Build 2017 “Microsoft.WebApplication.targets ” is missing

Looks like you are missing the workload for “Web development build tools”: Microsoft.VisualStudio.Workload.WebBuildTools. You can install it by downloading the build tools installer from here (VS2017) or here (VS2019) then running vs_buildtools.exe –add Microsoft.VisualStudio.Workload.WebBuildTools or opening vs_buildtools.exe and selecting the “Web development build tools” component in the GUI:

Should .nuget folder be added to version control?

This post is old, you should not be using solution level NuGet package restore anymore. As of version 2.7+ there is an option in the NuGet setup to automatically restore packages on build. So the .nuget folder can be deleted and the option removed from your projects. http://docs.nuget.org/docs/reference/package-restore UPDATE: With the release of NuGet 4.x … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)