-
[WPF] PropertyGroupC#/WPF 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'C# > WPF' 카테고리의 다른 글
[WPF] GridSplitter bug (0) 2024.11.01 [WPF] Build 시 폴더 OutDir 복사 (1) 2024.10.29 [WPF] Get Solution Directory (0) 2024.10.17 [WPF] Call Async Method (0) 2024.10.04 [WPF] Sentry.io (0) 2024.08.22 댓글