admin管理员组文章数量:1406942
<PropertyGroup>
<TargetFrameworks>net48;net8.0-windows</TargetFrameworks>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net48'">
<RuntimeIdentifiers>win7-x64;win7-x86</RuntimeIdentifiers>
</PropertyGroup>
After running dotnet restore
I see win-x86
in project.assets.json while I would expect only win7-..
targets.
"targets": {
".NETFramework,Version=v4.8": {},
".NETFramework,Version=v4.8/win-x86": {},
".NETFramework,Version=v4.8/win7-x64": {},
".NETFramework,Version=v4.8/win7-x86": {},
"net8.0-windows7.0": {},
"net8.0-windows7.0/win-x86": {},
"net8.0-windows7.0/win7-x64": {},
"net8.0-windows7.0/win7-x86": {}
},
And then on build I'm getting
error NETSDK1047: Assets file '...\obj\project.assets.json' doesn't have a target for 'net48/win-x86'.
How to solve this error?
本文标签: netUnexpected targets in projectassetsjsonStack Overflow
版权声明:本文标题:.net - Unexpected targets in project.assets.json - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744965797a2634939.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论