32 строки
1.1 KiB
XML
32 строки
1.1 KiB
XML
<Project>
|
|
|
|
<Import Project="Directory.Build.targets" />
|
|
|
|
<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" />
|
|
|
|
<!-- 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>
|
|
|
|
</Project>
|