错误:MSB4803:任务“ResolveComReference";.NET Core 版本的 MSBuil

36

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

问题描述

限时送ChatGPT账号..

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

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

参数计数与调用不匹配?
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)...
2023-11-11 C#/.NET开发问题
26

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

没有 EndInvoke 的 C# 异步调用?
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)...
2023-11-11 C#/.NET开发问题
2

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14