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


How do I resolve this error? "C:\Program Files\dotnet\sdk\6.0.100\Microsoft.Common.CurrentVersion.targets(2929,5): error : MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild. Please use the .NET Framework version of MSBuild."



Login to See the Rest of the Answer

Answer:
There is an issue with Asp.Net 6 working with COM References, if you have any references for COM Libraries remove them.

Steps:

1. Navigate to your Project.csproj file and find any references for COM Libraries. see the code example below:

<!--<ItemGroup>
    <COMReference Include="{d37e2a3e-8545-3a39-9f4f-31827c9124ab}">
      <WrapperTool>tlbimp</WrapperTool>
      <VersionMinor>4</VersionMinor>
      <VersionMajor>2</VersionMajor>
      <Guid>d37e2a3e-8545-3a39-9f4f-31827c9124ab</Guid>
    </COMReference>
  </ItemGroup>-->





For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]