Merge pull request #129 from jwillemsen/jwi-cancelprevious
[MPC.git] / templates / vc8csharp.mpd
blob31d48416d3ddd04301e9c514dfa1d205ab52a2bf
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">
3   <PropertyGroup>
4     <ProjectType>Local</ProjectType>
5     <ProductVersion><%prversion("8.0.50727")%></ProductVersion>
6     <SchemaVersion><%schemaversion("2.0")%></SchemaVersion>
7     <ProjectGuid>{<%guid%>}</ProjectGuid>
8 <%if(UICulture)%>
9     <UICulture><%UICulture%></UICulture>
10 <%endif%>
11 <%foreach(configurations)%>
12 <%if(forfirst)%>
13     <Configuration Condition=" '$(Configuration)' == '' "><%configuration%></Configuration>
14 <%endif%>
15 <%endfor%>
16 <%foreach(platforms)%>
17 <%if(forfirst)%>
18     <Platform Condition=" '$(Platform)' == '' "><%platform%></Platform>
19 <%endif%>
20 <%endfor%>
21 <%if(ico_files)%>
22 <%foreach(ico_files)%>
23 <%if(forfirst)%>
24     <ApplicationIcon><%ico_file%></ApplicationIcon>
25 <%endif%>
26 <%endfor%>
27 <%endif%>
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>
32 <%endif%>
33     <AssemblyOriginatorKeyFile><%keyfile%></AssemblyOriginatorKeyFile>
34 <%if(keyfile)%>
35     <SignAssembly>true</SignAssembly>
36 <%endif%>
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>
43 <%endif%>
44     <RootNamespace><%project_name%></RootNamespace>
45     <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
46     <StartupObject><%startupobject%></StartupObject>
47     <ReferencePath><%foreach(libpaths)%><%libpath%><%fornotlast(";")%><%endfor%></ReferencePath>
48     <FileUpgradeFlags>
49     </FileUpgradeFlags>
50     <UpgradeBackupLocation>
51     </UpgradeBackupLocation>
52 <%if(TargetFrameworkVersion)%>
53     <TargetFrameworkVersion>v<%TargetFrameworkVersion%></TargetFrameworkVersion>
54 <%endif%>
55 <%if(TargetFrameworkProfile)%>
56     <TargetFrameworkProfile><%TargetFrameworkProfile%></TargetFrameworkProfile>
57 <%endif%>
58   </PropertyGroup>
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>
64 <%endif%>
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>
71     <DocumentationFile>
72     </DocumentationFile>
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>
78 <%endif%>
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>
88 <%endif%>
89 <%if(Prefer32Bit)%>
90     <Prefer32Bit><%Prefer32Bit%></Prefer32Bit>
91 <%endif%>
92   </PropertyGroup>
93 <%endfor%>
94 <%endfor%>
95 <%if(!compares(vcversion, 8.00))%>
96 <%foreach(source_files)%>
97 <%if(ends_with(source_file, \.manifest))%>
98   <PropertyGroup>
99     <ApplicationManifest><%source_file%></ApplicationManifest>
100   </PropertyGroup>
101 <%endif%>
102 <%endfor%>
103 <%endif%>
104   <ItemGroup>
105 <%if(after)%>
106     <!-- MPC ADD DEPENDENCIES -->
107 <%endif%>
108 <%if(TargetFrameworkVersion)%>
109     <Reference Include="System.Core">
110       <RequiredTargetFramework><%TargetFrameworkVersion%></RequiredTargetFramework>
111     </Reference>
112 <%endif%>
113 <%foreach(libs)%>
114     <Reference Include="<%libname_prefix%><%lib%>">
115       <Name><%libname_prefix%><%lib%></Name>
116     </Reference>
117 <%endfor%>
118 <%foreach(lib, sort(lit_libs pure_libs))%>
119     <Reference Include="<%lib%>">
120       <Name><%lib%></Name>
121     </Reference>
122 <%endfor%>
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>
134 <%endif%>
135     </COMReference>
136 <%endfor%>
137   </ItemGroup>
138   <ItemGroup>
139 <%foreach(appdef_files)%>
140     <ApplicationDefinition Include="<%appdef_file%>">
141       <Generator>MSBuild:Compile</Generator>
142       <SubType>Designer</SubType>
143     </ApplicationDefinition>
144 <%endfor%>
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>
151 <%endif%>
152     </Compile>
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>
156     </Compile>
157 <%endif%>
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>
162     </EmbeddedResource>
163 <%endif%>
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>
168     </EmbeddedResource>
169 <%endfor%>
170 <%endif%>
171 <%endfor%>
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%>" />
176 <%else%>
177     <Compile Include="<%source_file%>">
178 <%if(flag_overrides(source_file, dependent_upon))%>
179       <DependentUpon><%flag_overrides(source_file, dependent_upon)%></DependentUpon>
180 <%endif%>
181     </Compile>
182 <%endif%>
183 <%endif%>
184 <%endfor%>
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%>&#x0D;&#x0A;<%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)%>&#x0D;&#x0A;<%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)%>&amp;&amp;<%flag_overrides(custom_type->input_file, postcommand)%><%endfor%><%else%><%if(custom_type->postcommand)%><%foreach(custom_type->input_file)%>&amp;&amp;<%custom_type->postcommand%><%endfor%><%endif%><%endif%></Generator>
190     </Compile>
191 <%else%>
192     <None Include="<%custom_type->input_file%>" />
193 <%endif%>
194 <%endfor%>
195 <%endfor%>
196 <%foreach(page_files)%>
197     <Page Include="<%page_file%>">
198       <SubType>Designer</SubType>
199       <Generator>MSBuild:Compile</Generator>
200     </Page>
201 <%endfor%>
202 <%foreach(resx_files)%>
203     <EmbeddedResource Include="<%resx_file%>">
204 <%if(flag_overrides(resx_file, subtype))%>
205       <SubType><%flag_overrides(resx_file, subtype)%></SubType>
206 <%endif%>
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>
211 <%else%>
212       <Generator>ResXFileCodeGenerator</Generator>
213 <%endif%>
214 <%else%>
215       <Generator><%flag_overrides(resx_file, generates_source)%></Generator>
216 <%endif%>
217       <LastGenOutput><%basenoextension(resx_file)%>.Designer.cs</LastGenOutput>
218 <%endif%>
219 <%if(flag_overrides(resx_file, dependent_upon))%>
220       <DependentUpon><%flag_overrides(resx_file, dependent_upon)%></DependentUpon>
221 <%endif%>
222     </EmbeddedResource>
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>
228     </Compile>
229 <%endif%>
230 <%endfor%>
231 <%foreach(embedded_resource_files)%>
232     <EmbeddedResource Include="<%embedded_resource_file%>" />
233 <%endfor%>
234 <%foreach(resource_files)%>
235     <Resource Include="<%resource_file%>" />
236 <%endfor%>
237 <%foreach(ico_files)%>
238     <Content Include="<%ico_file%>" />
239 <%endfor%>
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>
246     </Compile>
247 <%else%>
248     <None Include="<%config_file%>" />
249 <%endif%>
250 <%endfor%>
251 <%foreach(documentation_files)%>
252     <None Include="<%documentation_file%>" />
253 <%endfor%>
254 <%foreach(splash_files)%>
255     <SplashScreen Include="<%splash_file%>" />
256 <%endfor%>
257   </ItemGroup>
258   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
259   <PropertyGroup>
260     <PreBuildEvent><%if(prebuild)%><%eval(prebuild)%><%endif%></PreBuildEvent>
261     <PostBuildEvent><%if(postbuild)%><%eval(postbuild)%><%endif%></PostBuildEvent>
262   </PropertyGroup>
263 </Project>