Search code examples
c#.netvisual-studioraspberry-pivisual-studio-2017

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?


Solution

  • 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.