当指定 net5.0-windows 时,Reinforced.Typings 失败并显示 MSB6006
Reinforced.Typings fails with MSB6006 when net5.0-windows specified
我使用 Reinforced.Typings
并将我的项目定位为 net5.0-windows
。
构建失败并出现以下错误,因为没有针对这样的名字对象:tools
文件夹包含 net5.0
等,但不包含 net5.0-windows
.
C:\Users\username\.nuget\packages\reinforced.typings.6.1\build\Reinforced.Typings.targets(61,3): error MSB6006: "" exited with code 1.
C:\Program Files\dotnet\dotnet.exe "C:\Users\username\.nuget\packages\reinforced.typings.6.1\tools\net5.0-windows\rtcli.dll" profile "C:\Users\username\AppData\Local\Temp\tmp813E.tmp"
Could not execute because the specified command or file was not found.
是否也可以针对此框架@pavel-b-novikov?
关于如何强制 MSBuild Reinforced.Typings
从 net5.0-windows
“重定向”到 net5.0
的任何其他想法?
或者这可能是可以在 MSBuild 级别配置的东西?
显然,如果我将目标更改为 net5.0
,显而易见的解决方案是,但不幸的是,目前由于其他依赖项,这是不可能的。
解决方法是指定RtForceTargetFramework
为per documentation:
<PropertyGroup>
<RtForceTargetFramework>net5.0</RtForceTargetFramework>
</PropertyGroup>
我使用 Reinforced.Typings
并将我的项目定位为 net5.0-windows
。
构建失败并出现以下错误,因为没有针对这样的名字对象:tools
文件夹包含 net5.0
等,但不包含 net5.0-windows
.
C:\Users\username\.nuget\packages\reinforced.typings.6.1\build\Reinforced.Typings.targets(61,3): error MSB6006: "" exited with code 1.
C:\Program Files\dotnet\dotnet.exe "C:\Users\username\.nuget\packages\reinforced.typings.6.1\tools\net5.0-windows\rtcli.dll" profile "C:\Users\username\AppData\Local\Temp\tmp813E.tmp"
Could not execute because the specified command or file was not found.
是否也可以针对此框架@pavel-b-novikov?
关于如何强制 MSBuild Reinforced.Typings
从 net5.0-windows
“重定向”到 net5.0
的任何其他想法?
或者这可能是可以在 MSBuild 级别配置的东西?
显然,如果我将目标更改为 net5.0
,显而易见的解决方案是,但不幸的是,目前由于其他依赖项,这是不可能的。
解决方法是指定RtForceTargetFramework
为per documentation:
<PropertyGroup>
<RtForceTargetFramework>net5.0</RtForceTargetFramework>
</PropertyGroup>