<%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>
