.net core编译时设置不自动生成“netcoreapp3.0”目录

不知道出于什么目的,.netcore项目默认编译时生成的文件要多加一层"netcoreapp3.0"或"netcoreapp2.1",这应该不符合大多数开发者的习惯吧?

 

 不过微软为我们提供了配置来取消这个目录。

编辑项目文件

<PropertyGroup>
  <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

 

https://docs.microsoft.com/zh-cn/visualstudio/ide/how-to-change-the-build-output-directory?view=vs-2017

posted @ 2020-02-06 23:41  陈国良  阅读(891)  评论(0编辑  收藏  举报