我在G1ANT.Robot github页面上克隆了存储库,并在VSStudio2019CE16.1.5,Win10 Pro中打开了G1ANT.Sdk.sln,并提供了最新更新。我将默认的构建属性保留为"Debug“和"AnyCPU”。以下错误无法解决,因为我的系统上没有所需的文件:
Severity Code Description Project File Line Suppression State
Warning Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.CoreUtility, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. G1ANT.AddonTemplate 还有其他错误,这些错误似乎都与VS早期版本的依赖相关(我认为有些依赖于v14.0,有些依赖于v15.0 )。
我确实有可用的Microsoft.VisualStudio.CoreUtility,但版本是16.0 (即VS 2019年)。简而言之,编译可能需要比我的版本更早的VS版本。安装这样的早期版本对我来说不是一种选择。
谢谢,burque505
发布于 2019-07-08 15:55:10
是的,应该更改文件/G1ANT.Sdk/G1ANT.Sdk/source.extension.vsixmanifest:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,]" />
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[15.0,]" />
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[15.0,]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6.1,)" />
</Dependencies>您可以下载正确的安装:https://github.com/G1ANT-Robot/G1ANT.Sdk/raw/master/G1ANT.Sdk.vsix
我相信这会有帮助:)
https://stackoverflow.com/questions/56891637
复制相似问题