NET项目生成时含多平台环境问题
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<SelfContained>false</SelfContained> 需要指定false
<RuntimeIdentifier>win-x64</RuntimeIdentifier>指定运行环境
</PropertyGroup>

浙公网安备 33010602011771号