C#/WPF
[WPF] PropertyGroup
딸기우유중독
2024. 10. 28. 08:22
EX)
<PropertyGroup Condition="'$(Configuration)' == 'DEBUG'" >
<Optimization>false</Optimization>
<Obfuscate>false</Obfuscate>
<OutputPath>$(OutputPath)\debug</OutputPath>
</PropertyGroup>
EX)
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
https://learn.microsoft.com/ko-kr/visualstudio/msbuild/propertygroup-element-msbuild?view=vs-2022
PropertyGroup 요소(MSBuild) - MSBuild
사용자 정의 속성 요소 집합을 포함하는 MSBuild PropertyGroup 요소에 대해 알아봅니다.
learn.microsoft.com
https://aakinshin.net/posts/msbuild-configurations/
Setting up build configuration in .NET | Andrey Akinshin
You get two default build configurations: Debug and Release, when creating a new project in Visual Studio. And it’s enough for most small projects. But there can appear a necessity to extend it with the additional configurations. It’s ok if you need to
aakinshin.net
728x90