Closed mustafaerdogmus closed 5 years ago
Can you describe what you're doing when you see this error? Command line build (what command line?), open in VS, something else?
I get a 403 Forbidden on this.
windows 10 operating system gave blue screen error. I did not get the error code. Then I restarted the computer. No microsoft program worked when opened. MS Office, Sql Server, Visual Studio ...
I removed Visual Studio from the computer. I can't say I've removed it smoothly. Then I tried to make clean installation. But it didn't happen.
Then I removed each microsoft program one by one with "YourUninstaller" program. Then I installed office, visual studio, sql server programs. Now I have a seamless development environment
This does not seem like the sort of issue that we are going to be able to address, unfortunately. Sounds like your whole machine was in a broken state at the point in time the errors were happening.
This happened to me after installing Mono. Looks like Mono has its own compiler called msbuild or something. The path has changed to this Mono one without me knowing it. After uninstalling Mono and manually changing the Path environment variable to the "right" msbuild, this issue was gone.
One probably doesn't have to uninstall Mono, just change the Path env var.
This happened to me after installing Mono. Looks like Mono has its own compiler called msbuild or something. The path has changed to this Mono one without me knowing it. After uninstalling Mono and manually changing the Path environment variable to the "right" msbuild, this issue was gone.
One probably doesn't have to uninstall Mono, just change the Path env var.
Can you elaborate on what the "right" mono build is, and how to check the versions?
This happened to me after installing Mono. Looks like Mono has its own compiler called msbuild or something. The path has changed to this Mono one without me knowing it. After uninstalling Mono and manually changing the Path environment variable to the "right" msbuild, this issue was gone. One probably doesn't have to uninstall Mono, just change the Path env var.
Can you elaborate on what the "right" mono build is, and how to check the versions?
Seems like an MSBuild binary comes with both Mono and .NET Framework/Visual Studio installations. My environmental Path exposed the Mono one, which caused the error. (I wrote "right msbuild", not "right mono build")
Steps to reproduce
Either include a project sample, attach a zipped project, or provide IDE / CLI steps to create the project and repro the behaviour. Example of a project sample:
Project file
Dotnet SDK install version
Visual Studio install version VS 2017 15.9.8
ERROR: The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. I get an error.
C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Data\Yetem.Application.Data.csproj : error : The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Data\Yetem.Application.Data.csproj
C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Dto\Yetem.Application.Dto.csproj : error : The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Dto\Yetem.Application.Dto.csproj
C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.WebApi\Yetem.Application.WebApi.csproj : error : The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.WebApi\Yetem.Application.WebApi.csproj
C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Tests\Yetem.Application.Tests.csproj : error : The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Tests\Yetem.Application.Tests.csproj
C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Common\Yetem.Application.Common.csproj : error : The SDK resolver type "DotNetMSBuildSdkResolver" failed to load. The type initializer for 'Microsoft.DotNet.MSBuildSdkResolver.VSSettings' threw an exception. C:\Users\BIM-ME\source\repos\Yetem\Yetem.Application.Common\Yetem.Application.Common.csproj
also solution item all project unavaileble
https://i.hizliresim.com/QLnO6A.jpg