问题描述:
对C#的控制台程序进行打包的时候,运行程序会到netcoreappxx的目录下。
解决方案:
双击解决方案的名称,可以看到工程的配置文件,在配置文件的代码中添加以下代码即可。
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>