问题描述
我在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 不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!