dotnet-installer/old/build/package/Layout.targets

69 lines
3.3 KiB
Text
Raw Normal View History

2016-06-28 01:26:57 +00:00
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2017-02-23 18:37:48 +00:00
<PropertyGroup>
<CombinedHostHostFxrFrameworkSdkOutputDirectory>$(LayoutDirectory)/$(ArtifactNameCombinedHostHostFxrFrameworkSdk)</CombinedHostHostFxrFrameworkSdkOutputDirectory>
</PropertyGroup>
2016-06-28 01:26:57 +00:00
2017-02-23 18:37:48 +00:00
<Target DependsOnTargets="Init" Name="SetupLayoutInputsOutputs" >
2016-06-28 01:26:57 +00:00
<!-- Set up Items with Layout Input Files -->
<ItemGroup>
<SdkLayoutInput Include="$(OutputDirectory)/sdk/**/*" />
2016-07-01 14:04:40 +00:00
<CombinedHostHostFxrFrameworkSdkInput Include="$(OutputDirectory)/**/*" />
<AspNetRuntimeFilesInput Include="$(AspNetCoreSharedFxPublishDirectory)/**/*" />
<MSBuildExtensionsInput Include="$(MSBuildExtensionsLayoutDirectory)/msbuildExtensions/**/*" />
<MSBuildExtensionsVerInput Include="$(MSBuildExtensionsLayoutDirectory)/msbuildExtensions-ver/**/*" />
<CombinedMSBuildExtensionsInput Include="@(MSBuildExtensionsInput)" />
<CombinedMSBuildExtensionsInput Include="@(MSBuildExtensionsVerInput)" />
2016-06-28 01:26:57 +00:00
</ItemGroup>
2016-06-29 23:21:46 +00:00
<MakeRelative
2017-02-27 19:06:44 +00:00
Path1="$(OutputDirectory)/"
2016-06-29 23:21:46 +00:00
Path2="%(SdkLayoutInput.Identity)" >
<Output TaskParameter="RelativePath" ItemName="SdkRelativeOutputFiles" />
</MakeRelative>
<MakeRelative
2017-02-27 19:06:44 +00:00
Path1="$(OutputDirectory)/"
2016-06-29 23:21:46 +00:00
Path2="%(CombinedHostHostFxrFrameworkSdkInput.Identity)" >
<Output TaskParameter="RelativePath" ItemName="CombinedHostHostFxrFrameworkSdkRelativeOutputFiles" />
</MakeRelative>
<ItemGroup>
<CombinedMSBuildExtensionsRelativeOutputFiles Include="@(MSBuildExtensionsRelativeOutputFiles)" />
<CombinedMSBuildExtensionsRelativeOutputFiles Include="@(MSBuildExtensionsVerRelativeOutputFiles -> '14.0/%(Identity)')" />
</ItemGroup>
2016-06-28 01:26:57 +00:00
<!-- Set up Items Defining Layouts for easy change -->
<ItemGroup>
2016-07-01 14:04:40 +00:00
<LayoutDefinition Include="Sdk">
2016-06-28 01:26:57 +00:00
<InputFiles>@(SdkLayoutInput)</InputFiles>
2016-06-29 23:21:46 +00:00
<OutputFiles>@(SdkRelativeOutputFiles -> '$(SdkLayoutOutputDirectory)/%(Identity)')</OutputFiles>
2016-06-28 01:26:57 +00:00
<NameWithVersion>$(ArtifactNameWithVersionSdk)</NameWithVersion>
<Name>$(ArtifactNameSdk)</Name>
</LayoutDefinition>
<LayoutDefinition Include="CombinedHostHostFxrFrameworkSdk">
<InputFiles>@(CombinedHostHostFxrFrameworkSdkInput)</InputFiles>
<OutputFiles>@(CombinedHostHostFxrFrameworkSdkRelativeOutputFiles -> '$(CombinedHostHostFxrFrameworkSdkOutputDirectory)/%(Identity)')</OutputFiles>
2016-06-28 01:26:57 +00:00
<NameWithVersion>$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)</NameWithVersion>
<Name>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)</Name>
<ExcludePatterns Condition=" '$(OSName)' == 'win' ">$(WindowsSatelliteAssembliesRegEx)</ExcludePatterns>
<ExcludePatterns Condition=" '$(OSName)' != 'win' ">$(SatelliteAssemblies)</ExcludePatterns>
</LayoutDefinition>
2016-06-28 01:26:57 +00:00
</ItemGroup>
</Target>
<Target Name="Layout"
2016-07-01 14:04:40 +00:00
DependsOnTargets="Init;SetupLayoutInputsOutputs"
Inputs="@(LayoutDefinition -> '%(InputFiles)')"
2016-06-28 01:26:57 +00:00
Outputs="@(LayoutDefinition -> '%(OutputFiles)')" >
<!-- Copy Files to layout directories based on defintiions -->
<Copy SourceFiles="%(LayoutDefinition.InputFiles)"
2016-06-28 01:26:57 +00:00
DestinationFiles="%(LayoutDefinition.OutputFiles)"
SkipUnchangedFiles="true" />
</Target>
</Project>