11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+
4+ <!-- Import common properties -->
35 <Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
6+
7+ <!-- General Property Group -->
48 <PropertyGroup >
59 <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
610 <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
1620 <AssemblyOriginatorKeyFile >CalibreImportKey.snk</AssemblyOriginatorKeyFile >
1721 <SignAssembly >true</SignAssembly >
1822 </PropertyGroup >
23+
24+ <!-- Debug Configuration Property Group -->
1925 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
2026 <DebugSymbols >true</DebugSymbols >
2127 <DebugType >full</DebugType >
2531 <ErrorReport >prompt</ErrorReport >
2632 <WarningLevel >4</WarningLevel >
2733 </PropertyGroup >
34+
35+ <!-- Release Configuration Property Group -->
2836 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
2937 <DebugType >pdbonly</DebugType >
3038 <Optimize >true</Optimize >
3341 <ErrorReport >prompt</ErrorReport >
3442 <WarningLevel >4</WarningLevel >
3543 </PropertyGroup >
44+
45+ <!-- Debug x64 Configuration Property Group -->
3646 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|x64'" >
3747 <DebugSymbols >true</DebugSymbols >
3848 <OutputPath >bin\x64\Debug\</OutputPath >
4353 <Optimize >false</Optimize >
4454 <AllowUnsafeBlocks >false</AllowUnsafeBlocks >
4555 </PropertyGroup >
56+
57+ <!-- Release x64 Configuration Property Group -->
4658 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|x64'" >
4759 <OutputPath >bin\x64\Release\</OutputPath >
4860 <DefineConstants >TRACE</DefineConstants >
5163 <PlatformTarget >x64</PlatformTarget >
5264 <ErrorReport >prompt</ErrorReport >
5365 </PropertyGroup >
66+
67+ <!-- References -->
5468 <ItemGroup >
5569 <Reference Include =" System" />
5670 <Reference Include =" System.Configuration" />
6377 <Reference Include =" System.Configuration.Install" />
6478 <Reference Include =" System.Xml" />
6579 </ItemGroup >
80+
81+ <!-- NuGet Package References -->
6682 <ItemGroup >
6783 <PackageReference Include =" ILRepack" >
6884 <Version >2.0.40</Version >
7995 <Version >9.0.3</Version >
8096 </PackageReference >
8197 </ItemGroup >
98+
99+ <!-- C# files being compiled -->
82100 <ItemGroup >
83101 <Compile Include =" AutomergeOption.cs" />
84102 <Compile Include =" BorderlessGroupBox.cs" >
111129 <DependentUpon >SettingsForm.cs</DependentUpon >
112130 </Compile >
113131 </ItemGroup >
132+
133+ <!-- Resources for the Forms -->
114134 <ItemGroup >
115135 <EmbeddedResource Include =" ImportForm.resx" >
116136 <DependentUpon >ImportForm.cs</DependentUpon >
137+ <SubType >Designer</SubType >
117138 </EmbeddedResource >
118139 <EmbeddedResource Include =" SettingsForm.resx" >
119140 <DependentUpon >SettingsForm.cs</DependentUpon >
120141 <SubType >Designer</SubType >
121142 </EmbeddedResource >
122143 </ItemGroup >
123- <ItemGroup >
124- <None Include =" app.config" />
125- <None Include =" CalibreImportKey.snk" />
126- <None Include =" PostBuild.ps1" />
127- <None Include =" Properties\Settings.settings" >
128- <Generator >SettingsSingleFileGenerator</Generator >
129- <LastGenOutput >Settings.Designer.cs</LastGenOutput >
130- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
131- </None >
132- <None Include =" Setup.ps1" />
133- </ItemGroup >
144+
145+ <!-- Extra Files included in the Project (some in the Output too)-->
146+ <ItemGroup >
147+ <None Include =" app.config" />
148+ <None Include =" CalibreImportKey.snk" />
149+ <None Include =" PostBuild.ps1" />
150+ <None Include =" Properties\Settings.settings" >
151+ <Generator >SettingsSingleFileGenerator</Generator >
152+ <LastGenOutput >Settings.Designer.cs</LastGenOutput >
153+ </None >
154+ <None Include =" Setup.ps1" >
155+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
156+ </None >
157+ <None Include =" CustomSettings.config" >
158+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
159+ </None >
160+ </ItemGroup >
161+
162+ <!-- Folder Item Group -->
134163 <ItemGroup >
135164 <Folder Include =" ReleaseFiles\" />
136165 </ItemGroup >
166+
167+ <!-- Import CSharp targets -->
137168 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
169+
170+ <!-- PostBuild Target (runs a powershell postbuiold script which contains repack instructions-->
138171 <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" >
139172 <Message Text =" Running PostBuild script..." Importance =" high" />
140173 <Exec Command =" powershell -ExecutionPolicy Bypass -File " $(ProjectDir)PostBuild.ps1" -TargetDir " $(TargetDir.TrimEnd('\" '))" -ProjectDir " $(ProjectDir.TrimEnd('\" '))" " />
141174 <Message Text =" PostBuild script completed." Importance =" high" />
142175 </Target >
143- </Project >
176+
177+ </Project >
0 commit comments