How can I install the VS2017 version of msbuild on a build server without installing the IDE?

The Visual Studio Build tools are a different download than the IDE. They appear to be a pretty small subset, and they’re called Build Tools for Visual Studio 2019 (download). You can use the GUI to do the installation, or you can script the installation of msbuild: vs_buildtools.exe –add Microsoft.VisualStudio.Workload.MSBuildTools –quiet Microsoft.VisualStudio.Workload.MSBuildTools is a “wrapper” … Read more

How can I fix the Microsoft Visual Studio error: “package did not load correctly”?

I started to see this on a fresh Windows and Visual Studio 2013 Ultimate with Update 2 installation (although others have also reported it on Updates 3 and 4, as well as the Professional version). To resolve the problem, close all Visual Studio instances, then delete all files in the following folder: Visual Studio 2013 … Read more

How to disable Perfwatson2.exe from Visual Studio

For Visual Studio 2022 and the latest version of Visual Studio 2019: From the help menu, select Privacy > Privacy Settings In the Visual Studio Experience Improvement Program dialog, select No, I would not like to participate. Note: You can’t opt out in pre-release versions by this mechanism. For older versions of Visual Studio From … Read more

Equivalent to AssemblyInfo in dotnet core/csproj

As you’ve already noticed, you can control most of these settings in .csproj. If you’d rather keep these in AssemblyInfo.cs, you can turn off auto-generated assembly attributes. <PropertyGroup> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> </PropertyGroup> If you want to see what’s going on under the hood, checkout Microsoft.NET.GenerateAssemblyInfo.targets inside of Microsoft.NET.Sdk.

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017. Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE). This is a known issue already, and seems … Read more

Predefined type ‘System.ValueTuple´2´ is not defined or imported

For .NET 4.6.2 or lower, .NET Core 1.x, and .NET Standard 1.x you need to install the NuGet package System.ValueTuple: Install-Package “System.ValueTuple” Or using a package reference in VS 2017: <PackageReference Include=”System.ValueTuple” Version=”4.4.0″ /> .NET Framework 4.7, .NET Core 2.0, and .NET Standard 2.0 include these types.

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