错误:MSB4803:任务"ResolveComReference"已完成.MSBuild的.NET Core版本不支持 [英] error : MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild

查看:246
本文介绍了错误:MSB4803:任务"ResolveComReference"已完成.MSBuild的.NET Core版本不支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2019中做了一个项目.我在.NET Core和.NET Framework中有一个相同的项目.我在项目中使用COM引用.我想将这些项目迁移到Pi4.一个简单的Hello World项目(.NET Core)在Pi4机器上成功运行.但是,当我尝试运行我的项目(.NET Core或.NET Framework)时,它不在Pi4上运行.Pi4表示不支持COM.

I have made a project in VS2019. I have a same project in .NET Core and .NET Framework. I use COM reference in my project. I would like to migrate these projects to Pi4. A simple Hello World project (.NET Core) is running on Pi4 machine successfully. However, When I try to run my project (.NET core or .NET Framework) is not running on Pi4. Pi4 is saying COM is not supported.

在Google中寻找解决方案后,我尝试在Windows环境中使用MSBuild进行构建.我也在这里看到类似的错误.该错误是:错误:MSB4803:任务"ResolveComReference"被执行.MSBuild的.NET Core版本不支持.请使用MSBuild的.NET Framework版本.

I tried to build using MSBuild in my windows environment after looking for solutions in the google. I see similar error here also. 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:无法从"ResolvedFiles"检索任务的输出.范围.对象与目标类型不匹配.

.NET Framework project also giving similar error. error MSB4028: The "ResolveComReference" task's outputs could not be retrieved from the "ResolvedFiles" parameter. Object does not match target type.

有人遇到类似的问题吗?希望有人能给出答案.谢谢.

Is anyone got similar issues?. Hope someone will give the answer. Thank you.

推荐答案

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"已完成.MSBuild的.NET Core版本不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆