error : MSB4803: The task quot;ResolveComReferencequot; is not supported on the .NET Core version of MSBuild(错误:MSB4803:任务“ResolveComReference;.NET Core 版本的 MSBuild 不支持)
问题描述
我在VS2019做了一个项目.我在 .NET Core 和 .NET Framework 中有相同的项目.我在我的项目中使用了 COM 引用.我想将这些项目迁移到 Pi4.一个简单的 Hello World 项目 (.NET Core) 在 Pi4 机器上成功运行.但是,当我尝试运行我的项目(.NET core 或 .NET Framework)时,它无法在 Pi4 上运行.它说不支持 COM.
I have made a project in VS2019. I have the same project in .NET Core and .NET Framework. I use a COM reference in my project. I would like to migrate these projects to Pi4. A simple Hello World project (.NET Core) is running successfully on the Pi4 machine. However, when I try to run my project (.NET core or .NET Framework) it does not run on the Pi4. It says COM is not supported.
在 Google 中寻找解决方案后,我尝试在 Windows 环境中使用 MSBuild 构建项目.我在这里也看到了类似的错误.错误是:错误:MSB4803:任务ResolveComReference";.NET Core 版本的 MSBuild 不支持.请使用 .NET Framework 版本的 MSBuild.
I tried to build the project using MSBuild in my Windows environment after looking for solutions in Google. I also see a similar error here. The error is: error : MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild. Please use the .NET Framework version of MSBuild.
.NET Framework 项目也给出了类似的错误.错误 MSB4028:ResolveComReference";无法从ResolvedFiles"中检索到任务的输出.范围.对象与目标类型不匹配.
The .NET Framework project also gives a similar error. error MSB4028: The "ResolveComReference" task's outputs could not be retrieved from the "ResolvedFiles" parameter. Object does not match target type.
有人有类似的问题吗?
推荐答案
https://github.com/microsoft/msbuild/issues/3986
根据上面的链接.微软员工表示近期无法给出解决方案.
According to the above link. The employee of Microsoft is saying they can not give solution in the near future.
这篇关于错误:MSB4803:任务“ResolveComReference";.NET Core 版本的 MSBuild 不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误:MSB4803:任务“ResolveComReference";.NET Core 版本的 MSBuild 不支持
基础教程推荐
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
