-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0 #5192
Comments
Yes there have another issue, maybe the same issue. #5193 |
Every time i try to build a code and debug it keeps popping this error on the command-line and later will output build 0 - successful 1 - skipped |
If you're encountering this problem (@megactek @itrice), can you please download and run https://github.com/microsoft/msbuild/blob/2d82e1a861d890fce68c8e2d42b569e5bbaf5687/scripts/EnumerateMSBuild.ps1 and share the results? You might have a Visual Studio installation problem, or you might have MSBuild assemblies in your Global Assembly Cache (GAC). If it's the latter, the instructions from this feedback issue might help you. |
Hello I have the same problem. Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. The error occurs when I execute the nuget restore command. Nuget version 4.6.2. I have two ways to solve this problem.
But I need a different solution. If the version of msbuild is lower than 16.5 - everything is correct. Enumerate MSBuild result attached. |
@rainersigwald here is the result of the run: |
@newCoderNovice can you describe what you're doing when this happens? |
This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity. |
This issue was closed due to inactivity. If you can still reproduce this bug, please comment with the requested information, detailed steps to reproduce the problem, or any other notes that might help in the investigation. |
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Build.CommandLine.MSBuildApp' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.Build.CommandLine.MSBuildApp..cctor()
--- End of inner exception stack trace ---
at Microsoft.Build.CommandLine.MSBuildApp.Main()
The text was updated successfully, but these errors were encountered: