1 <%if(xmlheader)%><?xml version="1.0" encoding="utf-8"?>
2 <%endif%><Project<%if(toolsversion)%> ToolsVersion="<%toolsversion%>"<%endif%> DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <ProjectType>Local</ProjectType>
5 <ProductVersion><%prversion("8.0.50727")%></ProductVersion>
6 <SchemaVersion><%schemaversion("2.0")%></SchemaVersion>
7 <ProjectGuid>{<%guid%>}</ProjectGuid>
9 <UICulture><%UICulture%></UICulture>
11 <%foreach(configurations)%>
13 <Configuration Condition=" '$(Configuration)' == '' "><%configuration%></Configuration>
16 <%foreach(platforms)%>
18 <Platform Condition=" '$(Platform)' == '' "><%platform%></Platform>
22 <%foreach(ico_files)%>
24 <ApplicationIcon><%ico_file%></ApplicationIcon>
28 <AssemblyKeyContainerName>
29 </AssemblyKeyContainerName>
30 <%if(exename || sharedname || staticname)%>
31 <AssemblyName><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%></AssemblyName>
33 <AssemblyOriginatorKeyFile><%keyfile%></AssemblyOriginatorKeyFile>
35 <SignAssembly>true</SignAssembly>
37 <DefaultClientScript>JScript</DefaultClientScript>
38 <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
39 <DefaultTargetSchema>IE50</DefaultTargetSchema>
40 <DelaySign><%DelaySign("false")%></DelaySign>
41 <%if(exename || sharedname || staticname)%>
42 <OutputType><%if(exename)%><%if(winapp)%>Win<%endif%>Exe<%else%>Library<%endif%></OutputType>
44 <RootNamespace><%project_name%></RootNamespace>
45 <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
46 <StartupObject><%startupobject%></StartupObject>
47 <ReferencePath><%foreach(libpaths)%><%libpath%><%fornotlast(";")%><%endfor%></ReferencePath>
50 <UpgradeBackupLocation>
51 </UpgradeBackupLocation>
52 <%if(TargetFrameworkVersion)%>
53 <TargetFrameworkVersion>v<%TargetFrameworkVersion%></TargetFrameworkVersion>
55 <%if(TargetFrameworkProfile)%>
56 <TargetFrameworkProfile><%TargetFrameworkProfile%></TargetFrameworkProfile>
59 <%foreach(platforms)%>
60 <%foreach(configurations)%>
61 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == '<%configuration%>|<%platform%>' ">
62 <%if(exename || sharedname || staticname)%>
63 <OutputPath><%if(exename)%><%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir%><%endif%><%else%>.\<%output_dir%><%endif%><%else%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%output_dir%><%endif%>\</OutputPath>
65 <AllowUnsafeBlocks><%allowunsafeblocks(false)%></AllowUnsafeBlocks>
66 <BaseAddress>285212672</BaseAddress>
67 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
68 <ConfigurationOverrideFile>
69 </ConfigurationOverrideFile>
70 <DefineConstants><%foreach(defines common_defines macros)%><%define%>;<%endfor%><%if(!optimize)%>DESIGN;DEBUG;<%endif%><%if(trace)%>TRACE<%endif%></DefineConstants>
73 <DebugSymbols><%if(optimize)%>false<%else%>true<%endif%></DebugSymbols>
74 <FileAlignment>4096</FileAlignment>
75 <NoStdLib>false</NoStdLib>
76 <%if(DisableSpecificWarnings)%>
77 <NoWarn><%foreach(DisableSpecificWarnings)%><%DisableSpecificWarning%><%fornotlast(";")%><%endfor%></NoWarn>
79 <Optimize><%if(optimize)%>true<%else%>false<%endif%></Optimize>
80 <RegisterForComInterop><%RegisterForComInterop("false")%></RegisterForComInterop>
81 <RemoveIntegerChecks>false</RemoveIntegerChecks>
82 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
83 <WarningLevel><%warning_level("4")%></WarningLevel>
84 <DebugType><%if(optimize)%>none<%else%>full<%endif%></DebugType>
85 <ErrorReport>prompt</ErrorReport>
86 <%if(PlatformTarget)%>
87 <PlatformTarget><%PlatformTarget%></PlatformTarget>
90 <Prefer32Bit><%Prefer32Bit%></Prefer32Bit>
95 <%if(!compares(vcversion, 8.00))%>
96 <%foreach(source_files)%>
97 <%if(ends_with(source_file, \.manifest))%>
99 <ApplicationManifest><%source_file%></ApplicationManifest>
106 <!-- MPC ADD DEPENDENCIES -->
108 <%if(TargetFrameworkVersion)%>
109 <Reference Include="System.Core">
110 <RequiredTargetFramework><%TargetFrameworkVersion%></RequiredTargetFramework>
114 <Reference Include="<%libname_prefix%><%lib%>">
115 <Name><%libname_prefix%><%lib%></Name>
118 <%foreach(lib, sort(lit_libs pure_libs))%>
119 <Reference Include="<%lib%>">
123 <%foreach(comreferences)%>
124 <COMReference Include="<%comreference->_default%>">
125 <Guid>{<%uc(comreference->guid)%>}</Guid>
126 <VersionMajor><%comreference->majorver("1")%></VersionMajor>
127 <VersionMinor><%comreference->minorver("0")%></VersionMinor>
128 <Lcid><%comreference->lcid("0")%></Lcid>
129 <WrapperTool><%comreference->wrapper("tlbimp")%></WrapperTool>
130 <Isolated><%comreference->isolated("False")%></Isolated>
131 <Private><%comreference->copylocal("False")%></Private>
132 <%if(comreference->embed)%>
133 <EmbedInteropTypes><%comreference->embed%></EmbedInteropTypes>
139 <%foreach(appdef_files)%>
140 <ApplicationDefinition Include="<%appdef_file%>">
141 <Generator>MSBuild:Compile</Generator>
142 <SubType>Designer</SubType>
143 </ApplicationDefinition>
145 <%foreach(source_files)%>
146 <%if(contains(flag_overrides(source_file, subtype), ^(Form|Component|UserControl)$))%>
147 <Compile Include="<%source_file%>">
148 <SubType><%flag_overrides(source_file, subtype)%></SubType>
149 <%if(flag_overrides(source_file, dependent_upon))%>
150 <DependentUpon><%flag_overrides(source_file, dependent_upon)%></DependentUpon>
153 <%if(remove_from(source_files, \.Designer\.cs, source_file, \.cs))%>
154 <Compile Include="<%noextension(source_file)%>.Designer.cs">
155 <DependentUpon><%basename(source_file)%></DependentUpon>
158 <%if(remove_from(resx_files, resx, source_file, cs))%>
159 <EmbeddedResource Include="<%noextension(source_file)%>.resx">
160 <SubType>Designer</SubType>
161 <DependentUpon><%basename(source_file)%></DependentUpon>
164 <%foreach(removed, 1, remove_from(resx_files, .*\.resx, source_file, cs))%>
165 <EmbeddedResource Include="<%removed%>">
166 <SubType>Designer</SubType>
167 <DependentUpon><%basename(source_file)%></DependentUpon>
172 <%foreach(source_files)%>
173 <%if(!contains(flag_overrides(source_file, subtype), ^(Form|Component|UserControl)$))%>
174 <%if(!compares(vcversion, 8.00) && ends_with(source_file, \.manifest))%>
175 <None Include="<%source_file%>" />
177 <Compile Include="<%source_file%>">
178 <%if(flag_overrides(source_file, dependent_upon))%>
179 <DependentUpon><%flag_overrides(source_file, dependent_upon)%></DependentUpon>
185 <%foreach(custom_types)%>
186 <%foreach(custom_type->input_files)%>
187 <%if(custom_type->input_file->output_files)%>
188 <Compile Include="<%custom_type->input_file%>">
189 <Generator><%if(custom_type->libpath)%>PATH=%PATH%;<%custom_type->libpath%>
<%endif%><%if(flag_overrides(custom_type->input_file, gendir))%>if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
<%endif%><%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%if(custom_type->output_option)%><%custom_type->input_file%> <%custom_type->output_option%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_files)%><%else%><%custom_type->input_file->output_files%><%endif%><%else%><%custom_type->input_file%><%endif%><%if(flag_overrides(custom_type->input_file, postcommand))%><%foreach(custom_type->input_file)%>&&<%flag_overrides(custom_type->input_file, postcommand)%><%endfor%><%else%><%if(custom_type->postcommand)%><%foreach(custom_type->input_file)%>&&<%custom_type->postcommand%><%endfor%><%endif%><%endif%></Generator>
192 <None Include="<%custom_type->input_file%>" />
196 <%foreach(page_files)%>
197 <Page Include="<%page_file%>">
198 <SubType>Designer</SubType>
199 <Generator>MSBuild:Compile</Generator>
202 <%foreach(resx_files)%>
203 <EmbeddedResource Include="<%resx_file%>">
204 <%if(flag_overrides(resx_file, subtype))%>
205 <SubType><%flag_overrides(resx_file, subtype)%></SubType>
207 <%if(flag_overrides(resx_file, generates_source))%>
208 <%if(compares(flag_overrides(resx_file, generates_source), 1))%>
209 <%if(ends_with(resx_file, \.settings))%>
210 <Generator>SettingsSingleFileGenerator</Generator>
212 <Generator>ResXFileCodeGenerator</Generator>
215 <Generator><%flag_overrides(resx_file, generates_source)%></Generator>
217 <LastGenOutput><%basenoextension(resx_file)%>.Designer.cs</LastGenOutput>
219 <%if(flag_overrides(resx_file, dependent_upon))%>
220 <DependentUpon><%flag_overrides(resx_file, dependent_upon)%></DependentUpon>
223 <%if(flag_overrides(resx_file, generates_source))%>
224 <Compile Include="<%noextension(resx_file)%>.Designer.cs">
225 <AutoGen>True</AutoGen>
226 <DesignTime>True</DesignTime>
227 <DependentUpon><%basename(resx_file)%></DependentUpon>
231 <%foreach(embedded_resource_files)%>
232 <EmbeddedResource Include="<%embedded_resource_file%>" />
234 <%foreach(resource_files)%>
235 <Resource Include="<%resource_file%>" />
237 <%foreach(ico_files)%>
238 <Content Include="<%ico_file%>" />
240 <%foreach(config_files)%>
241 <%if(flag_overrides(config_file, generates_source))%>
242 <Compile Include="<%noextension(config_file)%>.Designer.cs">
243 <AutoGen>True</AutoGen>
244 <DesignTimeSharedInput>True</DesignTimeSharedInput>
245 <DependentUpon><%basename(config_file)%></DependentUpon>
248 <None Include="<%config_file%>" />
251 <%foreach(documentation_files)%>
252 <None Include="<%documentation_file%>" />
254 <%foreach(splash_files)%>
255 <SplashScreen Include="<%splash_file%>" />
258 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
260 <PreBuildEvent><%if(prebuild)%><%eval(prebuild)%><%endif%></PreBuildEvent>
261 <PostBuildEvent><%if(postbuild)%><%eval(postbuild)%><%endif%></PostBuildEvent>