2018-03-01 03:33:26 +03:00
<Project>
2018-03-02 00:50:34 +03:00
<Import Project="Directory.Build.targets" />
2018-03-01 03:33:26 +03:00
<ItemGroup>
<!-- everything under the `Template` directory is not to be considered part of the project -->
<Compile Remove="**\Template\**" />
<EmbeddedResource Remove="**\Template\**" />
<None Remove="**\Template\**" />
</ItemGroup>
<Target Name="CoreCompile" />
2018-12-19 07:57:02 +03:00
<!-- The templates have to build to directories relative to their projects, this target copies the relevant files to the appropriate output location. -->
<Target Name="CopyTemplatesToOutputDirectory"
AfterTargets="Build">
<PropertyGroup>
<TemplatesRootPath>$(OutputPath)$(TemplateCategory)\FSharp</TemplatesRootPath>
<TemplatesRootPath Condition="!$([System.IO.Path]::IsPathRooted('$(TemplatesRootPath)'))">$(MSBuildProjectDirectory)\$(TemplatesRootPath)</TemplatesRootPath>
</PropertyGroup>
<ItemGroup>
<Templates Include="$(TemplatesRootPath)\**\*.zip" />
</ItemGroup>
<Copy SourceFiles="@(Templates)" DestinationFolder="$(ArtifactsBinDir)\$(MSBuildProjectName)\$(Configuration)\%(Templates.RecursiveDir)" />
</Target>
2018-03-01 03:33:26 +03:00
</Project>