question

85014018 avatar image
0 Votes"
85014018 asked karenpayneoregon commented

error while compiling the project

Hello everyone. An error occurred while compiling the project. Here is the text that comes out for me:
Severity Code Description Project File String Suppression status
Error MSB4062 Unable to load task 'NuGet.Build.Tasks.GetRestoreProjectStyleTask' from assembly 'C: \ Program Files (x86) \ Microsoft Visual Studio \ 2019 \ Professional \ Common7 \ IDE \ CommonExtensions \ Microsoft \ NuGet \ NuGet.Build.Tasks. dll ". Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of their dependencies. The specified file cannot be found. Verify that the <UsingTask> declaration is correct, that the assembly with all its dependencies is available, and that the task has a generic class that implements Microsoft.Build.Framework.ITask. WinFormsApp1 C: \ Program Files (x86) \ Microsoft Visual Studio \ 2019 \ Professional \ Common7 \ IDE \ CommonExtensions \ Microsoft \ NuGet \ NuGet.targets 467

Before that, everything was fine. And now it gives an error ...

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If working with .NET Core Framework run dotnet build-server shutdown then run dotnet restore from the developer command prompt or PowerShell.

0 Votes 0 ·

0 Answers