Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

ASP.NET Core projects create many subdirectories like:

bin\Debug\ne47\win81-x64

I found that one of them can be disabled with the secret AppendTargetFrameworkToOutputPath and I now have:

bin\Debug\win81-x64

but I'd like it to just be the old

bin\Debug

so I tried to find something similar in learn.microsoft.com but there is not even the first option.

Why is this so secret that it's nowhere documented? Is there such an option for the other subdirectory too?

I guess this is comming from the

<RuntimeIdentifier>win81-x64</RuntimeIdentifier>

but why? I didn't ask for it.

like image 374
t3chb0t Avatar asked Jan 28 '23 01:01

t3chb0t


1 Answers

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

You can disable this behavior by setting:

<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

This behavior comes from the .NET Core RID Catalog.

Hope this helps.

like image 85
Leo Liu-MSFT Avatar answered Feb 02 '23 07:02

Leo Liu-MSFT