Change NuGet package folders used by Visual Studio

UPD 2024: standalone nuget commands replaced with dotnet nuget CLI. The information provided is relevant for VS2022 and .NET 8. Cache locations Solution-local packages folders are no longer used by .NET Core and Visual Studio. The command to list user-specific folders is: dotnet nuget locals all –list And its typical output (I’ve replaced absolute paths … Read more

VS2017 Could not load file or assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll or one of its dependencies

I had a similar issue (with the additional message The “BuildShadowTask” task failed unexpectedly) with a project originally developed with VS2010, and got to spend the last few hours learning about yet another legacy facet of the build process. There is a good chance that you are dealing with private accessor files (.accessor), which were … Read more

Using C# 7.1 with MSBuild

Nuget packages Microsoft.Net.Compilers nuget package does not work and needn’t to be installed. Set the following project/build settings Set at least C# 7.1 or higher in the Debug and Release build properties. (via: Project menu > [ProjectName] Properties > Build tab > [Advanced] button > Language Version). Setting it to latest does not work. Also … Read more

Windows Service Template for Visual Studio 2017

Just checked here. I see project “Windows Service (.NET Framework)” under the Windows Classic Desktop folder under Visual C#. (Visual Basic has a similar entry.) Only some templates are shown in parent folders, for more specialist templates you need to be more specific. But also the search finds both. NB I selected “.NET Desktop” workload … Read more

Authentication method ‘caching_sha2_password’ not supported by any of the available plugins

1st Modify the MySql Server: Open MySQL Installer – Community Select Product MySQL Server Click on Quick configure in last column Click on next untill you will not point to Authentication method On Authentication method tab- select Use Legacy Authentication method Click on next and finish Now you can login with normal password 2nd If … Read more

Visual Studio 2017 fails to install offline with “Unable to download installation files”

It worked!! All I had to do was install the certificates into the root CA! Something I missed noticing in the VS 2017 docs: How to install from the offline installation folder Install the certificates (They are in the “certificates” folder, which is in your Layout folder. ) Simply right-click each one and choose Install … Read more

How to download Visual Studio 2017 Community Edition for offline installation?

Saved the “vs_professional.exe” in my user Download directory, didn’t work in any other disk or path. Installed the certificate, without the reboot. Executed the customized (2 languages and some workloads) command from administrative Command Prompt window targetting an offline root folder on a secondary disk “E:\vs2017offline”. Never thought MS could distribute this way, I understand … Read more