summaryrefslogtreecommitdiff
path: root/templates/vc8csharp.mpd
blob: 31d48416d3ddd04301e9c514dfa1d205ab52a2bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<%if(xmlheader)%><?xml version="1.0" encoding="utf-8"?>
<%endif%><Project<%if(toolsversion)%> ToolsVersion="<%toolsversion%>"<%endif%> DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ProjectType>Local</ProjectType>
    <ProductVersion><%prversion("8.0.50727")%></ProductVersion>
    <SchemaVersion><%schemaversion("2.0")%></SchemaVersion>
    <ProjectGuid>{<%guid%>}</ProjectGuid>
<%if(UICulture)%>
    <UICulture><%UICulture%></UICulture>
<%endif%>
<%foreach(configurations)%>
<%if(forfirst)%>
    <Configuration Condition=" '$(Configuration)' == '' "><%configuration%></Configuration>
<%endif%>
<%endfor%>
<%foreach(platforms)%>
<%if(forfirst)%>
    <Platform Condition=" '$(Platform)' == '' "><%platform%></Platform>
<%endif%>
<%endfor%>
<%if(ico_files)%>
<%foreach(ico_files)%>
<%if(forfirst)%>
    <ApplicationIcon><%ico_file%></ApplicationIcon>
<%endif%>
<%endfor%>
<%endif%>
    <AssemblyKeyContainerName>
    </AssemblyKeyContainerName>
<%if(exename || sharedname || staticname)%>
    <AssemblyName><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%></AssemblyName>
<%endif%>
    <AssemblyOriginatorKeyFile><%keyfile%></AssemblyOriginatorKeyFile>
<%if(keyfile)%>
    <SignAssembly>true</SignAssembly>
<%endif%>
    <DefaultClientScript>JScript</DefaultClientScript>
    <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
    <DefaultTargetSchema>IE50</DefaultTargetSchema>
    <DelaySign><%DelaySign("false")%></DelaySign>
<%if(exename || sharedname || staticname)%>
    <OutputType><%if(exename)%><%if(winapp)%>Win<%endif%>Exe<%else%>Library<%endif%></OutputType>
<%endif%>
    <RootNamespace><%project_name%></RootNamespace>
    <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
    <StartupObject><%startupobject%></StartupObject>
    <ReferencePath><%foreach(libpaths)%><%libpath%><%fornotlast(";")%><%endfor%></ReferencePath>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
<%if(TargetFrameworkVersion)%>
    <TargetFrameworkVersion>v<%TargetFrameworkVersion%></TargetFrameworkVersion>
<%endif%>
<%if(TargetFrameworkProfile)%>
    <TargetFrameworkProfile><%TargetFrameworkProfile%></TargetFrameworkProfile>
<%endif%>
  </PropertyGroup>
<%foreach(platforms)%>
<%foreach(configurations)%>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == '<%configuration%>|<%platform%>' ">
<%if(exename || sharedname || staticname)%>
    <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>
<%endif%>
    <AllowUnsafeBlocks><%allowunsafeblocks(false)%></AllowUnsafeBlocks>
    <BaseAddress>285212672</BaseAddress>
    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
    <ConfigurationOverrideFile>
    </ConfigurationOverrideFile>
    <DefineConstants><%foreach(defines common_defines macros)%><%define%>;<%endfor%><%if(!optimize)%>DESIGN;DEBUG;<%endif%><%if(trace)%>TRACE<%endif%></DefineConstants>
    <DocumentationFile>
    </DocumentationFile>
    <DebugSymbols><%if(optimize)%>false<%else%>true<%endif%></DebugSymbols>
    <FileAlignment>4096</FileAlignment>
    <NoStdLib>false</NoStdLib>
<%if(DisableSpecificWarnings)%>
    <NoWarn><%foreach(DisableSpecificWarnings)%><%DisableSpecificWarning%><%fornotlast(";")%><%endfor%></NoWarn>
<%endif%>
    <Optimize><%if(optimize)%>true<%else%>false<%endif%></Optimize>
    <RegisterForComInterop><%RegisterForComInterop("false")%></RegisterForComInterop>
    <RemoveIntegerChecks>false</RemoveIntegerChecks>
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <WarningLevel><%warning_level("4")%></WarningLevel>
    <DebugType><%if(optimize)%>none<%else%>full<%endif%></DebugType>
    <ErrorReport>prompt</ErrorReport>
<%if(PlatformTarget)%>
    <PlatformTarget><%PlatformTarget%></PlatformTarget>
<%endif%>
<%if(Prefer32Bit)%>
    <Prefer32Bit><%Prefer32Bit%></Prefer32Bit>
<%endif%>
  </PropertyGroup>
<%endfor%>
<%endfor%>
<%if(!compares(vcversion, 8.00))%>
<%foreach(source_files)%>
<%if(ends_with(source_file, \.manifest))%>
  <PropertyGroup>
    <ApplicationManifest><%source_file%></ApplicationManifest>
  </PropertyGroup>
<%endif%>
<%endfor%>
<%endif%>
  <ItemGroup>
<%if(after)%>
    <!-- MPC ADD DEPENDENCIES -->
<%endif%>
<%if(TargetFrameworkVersion)%>
    <Reference Include="System.Core">
      <RequiredTargetFramework><%TargetFrameworkVersion%></RequiredTargetFramework>
    </Reference>
<%endif%>
<%foreach(libs)%>
    <Reference Include="<%libname_prefix%><%lib%>">
      <Name><%libname_prefix%><%lib%></Name>
    </Reference>
<%endfor%>
<%foreach(lib, sort(lit_libs pure_libs))%>
    <Reference Include="<%lib%>">
      <Name><%lib%></Name>
    </Reference>
<%endfor%>
<%foreach(comreferences)%>
    <COMReference Include="<%comreference->_default%>">
      <Guid>{<%uc(comreference->guid)%>}</Guid>
      <VersionMajor><%comreference->majorver("1")%></VersionMajor>
      <VersionMinor><%comreference->minorver("0")%></VersionMinor>
      <Lcid><%comreference->lcid("0")%></Lcid>
      <WrapperTool><%comreference->wrapper("tlbimp")%></WrapperTool>
      <Isolated><%comreference->isolated("False")%></Isolated>
      <Private><%comreference->copylocal("False")%></Private>
<%if(comreference->embed)%>
      <EmbedInteropTypes><%comreference->embed%></EmbedInteropTypes>
<%endif%>
    </COMReference>
<%endfor%>
  </ItemGroup>
  <ItemGroup>
<%foreach(appdef_files)%>
    <ApplicationDefinition Include="<%appdef_file%>">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </ApplicationDefinition>
<%endfor%>
<%foreach(source_files)%>
<%if(contains(flag_overrides(source_file, subtype), ^(Form|Component|UserControl)$))%>
    <Compile Include="<%source_file%>">
      <SubType><%flag_overrides(source_file, subtype)%></SubType>
<%if(flag_overrides(source_file, dependent_upon))%>
      <DependentUpon><%flag_overrides(source_file, dependent_upon)%></DependentUpon>
<%endif%>
    </Compile>
<%if(remove_from(source_files, \.Designer\.cs, source_file, \.cs))%>
    <Compile Include="<%noextension(source_file)%>.Designer.cs">
      <DependentUpon><%basename(source_file)%></DependentUpon>
    </Compile>
<%endif%>
<%if(remove_from(resx_files, resx, source_file, cs))%>
    <EmbeddedResource Include="<%noextension(source_file)%>.resx">
      <SubType>Designer</SubType>
      <DependentUpon><%basename(source_file)%></DependentUpon>
    </EmbeddedResource>
<%endif%>
<%foreach(removed, 1, remove_from(resx_files, .*\.resx, source_file, cs))%>
    <EmbeddedResource Include="<%removed%>">
      <SubType>Designer</SubType>
      <DependentUpon><%basename(source_file)%></DependentUpon>
    </EmbeddedResource>
<%endfor%>
<%endif%>
<%endfor%>
<%foreach(source_files)%>
<%if(!contains(flag_overrides(source_file, subtype), ^(Form|Component|UserControl)$))%>
<%if(!compares(vcversion, 8.00) && ends_with(source_file, \.manifest))%>
    <None Include="<%source_file%>" />
<%else%>
    <Compile Include="<%source_file%>">
<%if(flag_overrides(source_file, dependent_upon))%>
      <DependentUpon><%flag_overrides(source_file, dependent_upon)%></DependentUpon>
<%endif%>
    </Compile>
<%endif%>
<%endif%>
<%endfor%>
<%foreach(custom_types)%>
<%foreach(custom_type->input_files)%>
<%if(custom_type->input_file->output_files)%>
    <Compile Include="<%custom_type->input_file%>">
      <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>
    </Compile>
<%else%>
    <None Include="<%custom_type->input_file%>" />
<%endif%>
<%endfor%>
<%endfor%>
<%foreach(page_files)%>
    <Page Include="<%page_file%>">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
<%endfor%>
<%foreach(resx_files)%>
    <EmbeddedResource Include="<%resx_file%>">
<%if(flag_overrides(resx_file, subtype))%>
      <SubType><%flag_overrides(resx_file, subtype)%></SubType>
<%endif%>
<%if(flag_overrides(resx_file, generates_source))%>
<%if(compares(flag_overrides(resx_file, generates_source), 1))%>
<%if(ends_with(resx_file, \.settings))%>
      <Generator>SettingsSingleFileGenerator</Generator>
<%else%>
      <Generator>ResXFileCodeGenerator</Generator>
<%endif%>
<%else%>
      <Generator><%flag_overrides(resx_file, generates_source)%></Generator>
<%endif%>
      <LastGenOutput><%basenoextension(resx_file)%>.Designer.cs</LastGenOutput>
<%endif%>
<%if(flag_overrides(resx_file, dependent_upon))%>
      <DependentUpon><%flag_overrides(resx_file, dependent_upon)%></DependentUpon>
<%endif%>
    </EmbeddedResource>
<%if(flag_overrides(resx_file, generates_source))%>
    <Compile Include="<%noextension(resx_file)%>.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon><%basename(resx_file)%></DependentUpon>
    </Compile>
<%endif%>
<%endfor%>
<%foreach(embedded_resource_files)%>
    <EmbeddedResource Include="<%embedded_resource_file%>" />
<%endfor%>
<%foreach(resource_files)%>
    <Resource Include="<%resource_file%>" />
<%endfor%>
<%foreach(ico_files)%>
    <Content Include="<%ico_file%>" />
<%endfor%>
<%foreach(config_files)%>
<%if(flag_overrides(config_file, generates_source))%>
    <Compile Include="<%noextension(config_file)%>.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon><%basename(config_file)%></DependentUpon>
    </Compile>
<%else%>
    <None Include="<%config_file%>" />
<%endif%>
<%endfor%>
<%foreach(documentation_files)%>
    <None Include="<%documentation_file%>" />
<%endfor%>
<%foreach(splash_files)%>
    <SplashScreen Include="<%splash_file%>" />
<%endfor%>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <PropertyGroup>
    <PreBuildEvent><%if(prebuild)%><%eval(prebuild)%><%endif%></PreBuildEvent>
    <PostBuildEvent><%if(postbuild)%><%eval(postbuild)%><%endif%></PostBuildEvent>
  </PropertyGroup>
</Project>