C# .net 5 에서 output 경로에 플랫폼정보를 빼는 방법

반응형

https://learn.microsoft.com/en-us/answers/questions/202445/output-path-ignored-with-net-5-c-classes-lib

 

output path ignored with .net 5 C# classes lib - Microsoft Q&A

<p>Hello, </p> <p>I updated a .net framwework project (a library of windows forms controls in C#) to .net 5. Eveything seems ok except that the ouput path of the buid, specified in the project properties, is ignored. For instance, for the Debug config the

learn.microsoft.com

 

Question

Hello,

I updated a .net framwework project (a library of windows forms controls in C#) to .net 5. Eveything seems ok except that the ouput path of the buid, specified in the project properties, is ignored. For instance, for the Debug config the ouput path is always 'bin\Debug\net5.0-windows' and 'bin\Release\net5.0-windows' for the Release config. I don't want vs2019ce (version 16.8.3) add/create the folder 'net5.0-windows'.

Is this a bug?

regards

Answer

<PropertyGroup>  
  <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>  
  <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>  
</PropertyGroup>  

 

반응형