Open lukedukeus opened 1 year ago
Demo projects to reproduce the issue:
The workaround is fine even for .NET 8 but, unlike csproj TargetFramework, you must add the minor version
Not working
<RtForceTargetFramework>net8</RtForceTargetFramework>
Working
<RtForceTargetFramework>net8.0</RtForceTargetFramework>
Attached are two demo projects. The first one (TestDotNetCore) compiles fine, however the second one (TestDotNetCoreWindows) fails with the following error:
The only difference in the two projects is that the first one targets net7.0, and the second targets net7.0-windows. I've found that this issue is being caused by the
GetProperRtcliPath
method inReinforced.Typings.Integrate
, which does not remove the platform identifier, meaning it it looks forrtcli.exe
inC:\Users\Luke\.nuget\packages\reinforced.typings\1.6.2\tools\net7.0-windows\rtcli.dll
rather thanC:\Users\Luke\.nuget\packages\reinforced.typings\1.6.2\tools\net7.0\rtcli.dll
(where it is actually located)You can get around this by setting
<RtForceTargetFramework>net7.0</RtForceTargetFramework>
, or I've opened a PR which fixes this issue.