Issue
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.
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 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.
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.
Answered By - Mohan