<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{{pyproj.GUID|MSGUID}}</ProjectGuid>
    <ProjectHome>{{pyproj.ProjectHomeRelative}}</ProjectHome>
{% if pyproj.StartupFile %}
    <StartupFile>{{pyproj.StartupFileRelative}}</StartupFile>
{% else %}
    <StartupFile />
{% endif %}
{% if pyproj.SearchPath %}
    <SearchPath>{{pyproj.SearchPathRelative|join(';')}}</SearchPath>
{% else %}
    <SearchPath />
{% endif %}
    <WorkingDirectory>{{pyproj.WorkingDirectoryRelative}}</WorkingDirectory>
    <OutputPath>{{pyproj.OutputPathRelative}}</OutputPath>
    <ProjectTypeGuids>{888888A0-9F3D-457C-B088-3A5042F75D52}</ProjectTypeGuids>
    <RootNamespace>{{pyproj.RootNamespace}}</RootNamespace>
    <IsWindowsApplication>{{pyproj.IsWindowsApplication}}</IsWindowsApplication>
    <Environment>{{pyproj.EnvironmentVariables|join('\n')}}</Environment>
    <LaunchProvider>Standard Python launcher</LaunchProvider>
{% if pyproj.ProjectInterpreterDefault: %}
    <InterpreterId>{{pyproj.ProjectInterpreterDefault.GUID|MSGUID}}</InterpreterId>
    <InterpreterVersion>{{pyproj.ProjectInterpreterDefault.Version}}</InterpreterVersion>    
{% endif %}
{% if pyproj.CommandLineArguments %}
    <SearchPath>{{pyproj.CommandLineArguments|join(' ')}}</SearchPath>
{% else %}
    <CommandLineArguments />
{% endif %}
{% if pyproj.Interpretter %}
{% else %}
    <InterpreterPath />
{% endif %}
{% if pyproj.PythonInterpreterArgs %}
    <InterpreterArguments>{{pyproj.PythonInterpreterArgs|join(' ')}}</InterpreterArguments>
{% else %}
    <InterpreterArguments>-B -3</InterpreterArguments>
{% endif %}
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
  <PropertyGroup Condition="'$(Configuration)' == 'Release'" />
  <PropertyGroup>
    <VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
    <PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
  </PropertyGroup>
  <ItemGroup>
{% for file in pyproj.ContentFilesRelative %}
    <Content Include="{{file}}" />
{% endfor %}
  </ItemGroup>
  <ItemGroup>
{% for file in pyproj.CompileFilesRelative %}
    <Compile Include="{{file}}" />
{% endfor %}
  </ItemGroup>
  <ItemGroup>
{% for dir in pyproj.DirectoriesRelative %}
    <Folder Include="{{dir}}" />
{% endfor %}
  </ItemGroup>
{% if pyproj.PythonInterpreters %}
  <ItemGroup>
{% for interpreter in pyproj.PythonInterpreters %}
    <InterpreterReference Include="{{interpreter.BaseInterpreter|MSGUID}}\{{interpreter.Version}}" />
{% endfor %}
  </ItemGroup>
{% endif %}
{% if pyproj.VirtualEnvironments %}
  <ItemGroup>
{% for venv in pyproj.VirtualEnvironments %}
    <Interpreter Include="{{venv.Path|relprojhome}}">
      <Id>{{venv.GUID|MSGUID}}</Id>
      <Description>{{venv.Description}}</Description>
      <BaseInterpreter>{{venv.GUID|MSGUID}}</BaseInterpreter>
      <InterpreterPath>{{venv.InterpreterPath}}</InterpreterPath>
      <WindowsInterpreterPath>{{venv.WindowsInterpreterPath}}</WindowsInterpreterPath>
      <LibraryPath>{{venv.LibraryPath}}</LibraryPath>
      <Version>{{venv.Version}}</Version>
      <Architecture>{{venv.Architecture}}</Architecture>
      <PathEnvironmentVariable>{{venv.PathEnvironmentVariable}}</PathEnvironmentVariable>
    </Interpreter>
{% endfor %}
  </ItemGroup>
{% endif %}
  <Import Project="$(PtvsTargetsFile)" Condition="Exists($(PtvsTargetsFile))" />
  <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="!Exists($(PtvsTargetsFile))" />
</Project>
