Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error : MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild

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.

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.

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.

Does anyone have similar issues?

like image 960
Mohan Avatar asked Jan 30 '26 11:01

Mohan


1 Answers

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.

like image 104
Mohan Avatar answered Feb 01 '26 03:02

Mohan