不知道出於什麼目的,.netcore項目默認編譯時生成的文件要多加一層"netcoreapp3.0"或"netcoreapp2.1",這應該不符合大多數開發者的習慣吧?app
不過微軟爲咱們提供了配置來取消這個目錄。ide
編輯項目文件ui
<PropertyGroup> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> </PropertyGroup>