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

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

 

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

编辑项目文件

<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

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-12-28
  • 2021-11-25
  • 2021-12-31
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案