<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->


<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <CopyZipOutputToOutputDirectory>false</CopyZipOutputToOutputDirectory>
    <CopyVsixManifestToOutput>false</CopyVsixManifestToOutput>
    <DeployExtension>false</DeployExtension>
    <DeployVSTemplates>false</DeployVSTemplates>
    <CreateVsixContainer>false</CreateVsixContainer>
    <GeneratePkgDefFile>false</GeneratePkgDefFile>
    <RegisterOutputPackage>false</RegisterOutputPackage>
    <RegisterWithCodebase>true</RegisterWithCodebase>
    <VsTemplateLanguage>WiX</VsTemplateLanguage>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <DefineConstants>$(DefineConstants);CCI_TRACING;Enable_CCIDiagnostics;Enable_CCIFileOutput</DefineConstants>
  </PropertyGroup>

  <Import Project="$(VS2010SdkTargetsPath)" Condition=" !$(VS2012SdkAvailable) and !$(VS2013SdkAvailable) and !$(VS2015SdkAvailable)" />
  <Import Project="$(VS2012SdkTargetsPath)" Condition=" $(VS2012SdkAvailable) and !$(VS2013SdkAvailable) and !$(VS2015SdkAvailable)" />
  <Import Project="$(VS2013SdkTargetsPath)" Condition=" $(VS2013SdkAvailable) and !$(VS2015SdkAvailable)" />
  <Import Project="$(VS2015SdkTargetsPath)" Condition=" $(VS2015SdkAvailable) " />

  <Target Name="FindSDKInstallation" />
  <Target Name="FindSourceVsixManifest">
    <ItemGroup>
      <SourceVsixManifest Include="extension.vsixmanifest" />
    </ItemGroup>
  </Target>

  <PropertyGroup>
    <PrepareForRunDependsOn>
      $(PrepareForRunDependsOn);
      CopyZippedProjectsAndItems
    </PrepareForRunDependsOn>
  </PropertyGroup>
  <Target Name="CopyZippedProjectsAndItems"
          Inputs="@(IntermediateZipProject);@(IntermediateZipItem)"
          Outputs="@(IntermediateZipProject->'$(OutDir)$(MSBuildProjectName)\%(Filename)%(Extension)');@(IntermediateZipItem->'$(OutDir)$(MSBuildProjectName)\%(Filename)%(Extension)')"
          Condition=" '@(IntermediateZipProject)@(IntermediateZipItem)'!='' ">
    <Copy SourceFiles="@(IntermediateZipProject);@(IntermediateZipItem)"
          DestinationFolder="$(OutDir)$(MSBuildProjectName)\"
          SkipUnchangedFiles="true" />
  </Target>
</Project>
