不知道出于什么目的,.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