[英]OmniSharp error loading projects with COMReferences in Visual Studio Code
Having issues loading projects in the new Visual Studio Code that work fine in Visual Studio 2013. I was able to load other projects that don't have COMReferences in Visual Studio Code. 在新的Visual Studio Code中加载在Visual Studio 2013中正常运行的项目时遇到了问题。我能够在Visual Studio Code中加载其他没有COMReferences的项目。 Using Windows 7 Enterprise.
使用Windows 7企业版。
Relevant snippet from .csproj file: .csproj文件中的相关代码段:
<ItemGroup>
<COMReference Include="DTOLib2">
<Guid>{DBE2B0CE-6BE9-48FE-8300-6ABE0DB9692B}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
Relevant snippet from OmniSharp Log: OmniSharp日志中的相关代码段:
[ERROR:OmniSharp.MSBuild.MSBuildProjectSystem] The "ResolveComReference" task could not be instantiated from "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
[ERROR:OmniSharp.MSBuild.MSBuildProjectSystem]无法从“ Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a”实例化“ ResolveComReference”任务。 The domain manager specified by the host could not be instantiated.
主机指定的域管理器无法实例化。
[ERROR:OmniSharp.MSBuild.MSBuildProjectSystem] The "ResolveComReference" task has been declared or used incorrectly, or failed during construction.
[ERROR:OmniSharp.MSBuild.MSBuildProjectSystem]“ ResolveComReference”任务已被错误地声明或使用,或在构建过程中失败。 Check the spelling of the task name and the assembly name.
检查任务名称和程序集名称的拼写。
The support for MSBuild in OmniSharp isn't as good as we want it to be. OmniSharp中对MSBuild的支持不如我们期望的那样好。 There is a summarizing bug for it here: https://github.com/OmniSharp/omnisharp-roslyn/issues/202 .
这里有一个汇总错误: https : //github.com/OmniSharp/omnisharp-roslyn/issues/202 。
更新到Visual Studio Code 0.7.0解决了此问题:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.