У меня было приложение WPF, к которому я не прикасался около года, и теперь у меня новый компьютер.Когда я клонирую приложение из git и пытаюсь запустить его, я получаю эту ошибку:
Severity Code Description Project File Line Suppression State
Error The "MSBuild.Community.Tasks.AssemblyInfo" task could not be loaded from the assembly D:\MyData\SourceCodes\Library\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Когда я пытаюсь установить Microsoft.Build.Utilities.Core отсюда:
https://www.nuget.org/packages/Microsoft.Build.Utilities.Core/
Я получаю эту ошибку:
Install-Package : Could not install package 'Microsoft.Build.Utilities.Core 15.9.20'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does
not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.Build.Utilities.Core -Version 15.9.20
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Как я могу решить эту проблему?
Я использую VS 2017, но оригинальный проект был скомпилирован с использованием VS 2013, есть ли разница?