错误:MSB4803:任务“ResolveComReference";.NET Core 版本的 MSBuild 不支持

编程入门 行业动态 更新时间:2024-10-15 14:15:14
本文介绍了错误: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.

有人有类似的问题吗?

推荐答案

github/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 不支持

本文发布于:2023-11-15 10:58:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1593817.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不支持   错误   版本   ResolveComReference   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!