gpt4 book ai didi

c# - 禁用 ASP.NET Core 输出路径中的 'RuntimeIdentifier' 子文件夹

转载 作者:行者123 更新时间:2023-12-03 20:16:18 24 4
gpt4 key购买 nike

ASP.NET Core 项目创建了许多子目录,例如:

bin\Debug\ne47\win81-x64


我发现其中一个可以用 secret AppendTargetFrameworkToOutputPath 禁用。我现在有:

bin\Debug\win81-x64


但我希望它只是旧的

bin\Debug


所以我试图在 docs.microsoft.com 中找到类似的东西但甚至没有第一个选项。

为什么这如此 secret 以至于无处记录?其他子目录也有这样的选项吗?

我想这是来自

<RuntimeIdentifier>win81-x64</RuntimeIdentifier>


但为什么?我没有要求。

最佳答案

Disable 'RuntimeIdentifier' subfolder in ASP.NET Core output path



您可以通过设置禁用此行为:
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

此行为来自 .NET Core RID Catalog .

希望这可以帮助。

关于c# - 禁用 ASP.NET Core 输出路径中的 'RuntimeIdentifier' 子文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53657621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com