How do you run unit tests for a specific target framework in Visual Studio 2017/2019?

I know that the question is about VS, but I find useful that when targeting multiple frameworks dotnet tests command will run tests for all frameworks in <TargetFrameworks> node: > dotnet test … Test run for [projectPath]\bin\Debug\netcoreapp1.1\XUnitTestProject.dll(.NETCoreApp,Version=v1.1) … Test run for [projectPath]\bin\Debug\net461\XUnitTestProject.dll(.NETFramework,Version=v4.6.1) … NCrunch can also recognize multiple targets and run tests for every target … Read more

How can I convert a .NET Core project to a .NET Framework project?

If you’re happy with it still using the new tooling, the easiest approach is probably just to edit the project file (csproj). Right-click on the project in Solution Explorer and you should have a context menu option of “Edit <yourproject>.csproj”. Click on that, and just change <TargetFramework>netcoreapp1.1</TargetFramework> to <TargetFramework>net46</TargetFramework> … and I suspect you’ll be … Read more

Visual studio 2017 Update 3 – The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found

I stumbled upon this issue a number of times recently. Here’s a brief list of the workaround I found (one of them always worked until now): Install the right .NET Core SDK: Either the latest version or the version required by your project. Clean-up obsolete .NET Core versions: Go to Control Panel and uninstall previous … Read more

Visual Studio 2017 setup project missing

Full explained and working solution: 1) open vs2017 and select “Tools” -> “Extensions and Updates” 2) Under Extensions and Updates select “Online” on the left of the window and on the right type in search box “Visual Studio Installer Projects Extension” hit enter and it is the first download in result (attached image) select this … Read more

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