2021-06-24 16:36:04 -05:00
|
|
|
<Project>
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<!-- Package version is pinned to what CoreFX expects because CoreFX doesn't take an override property. -->
|
|
|
|
<ILLinkTasksPackageId>Microsoft.NET.ILLink.Tasks</ILLinkTasksPackageId>
|
|
|
|
|
2021-06-28 14:24:48 -05:00
|
|
|
<BuildCommand>$(StandardSourceBuildCommand) $(StandardSourceBuildArgs)</BuildCommand>
|
2021-06-24 16:36:04 -05:00
|
|
|
|
|
|
|
<RepoApiImplemented>false</RepoApiImplemented>
|
2021-06-30 11:21:05 -05:00
|
|
|
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile>
|
2021-06-24 16:36:04 -05:00
|
|
|
<DeterministicBuildOptOut>true</DeterministicBuildOptOut>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- Extract this package into packages dir, because repos assume it's restored as a tool. -->
|
|
|
|
<!-- TODO: Determine if this is still required. See https://github.com/dotnet/source-build/issues/2291 -->
|
|
|
|
<!-- <Target Name="ExtractLinkerPackageToCache"
|
|
|
|
AfterTargets="Package"
|
|
|
|
Inputs="$(MSBuildProjectFullPath)"
|
|
|
|
Outputs="$(RepoCompletedSemaphorePath)ExtractLinkerPackageToCache.complete">
|
|
|
|
<PropertyGroup>
|
|
|
|
<ILLinkTasksPackageFile>$(PackagesOutput)/$(ILLinkTasksPackageId).$(OutputPackageVersion).nupkg</ILLinkTasksPackageFile>
|
|
|
|
<ILLinkTasksPackageIdToLower>$(ILLinkTasksPackageId.ToLowerInvariant())</ILLinkTasksPackageIdToLower>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<Message Importance="high" Text="Extracting $(ILLinkTasksPackageFile) to package cache..." />
|
|
|
|
|
|
|
|
<ZipFileExtractToDirectory SourceArchive="$(ILLinkTasksPackageFile)"
|
|
|
|
DestinationDirectory="$(PackagesDir)$(ILLinkTasksPackageIdToLower)/$(OutputPackageVersion)/"
|
|
|
|
OverwriteDestination="true" />
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)ExtractLinkerPackageToCache.complete" Overwrite="true" />
|
|
|
|
</Target> -->
|
|
|
|
|
|
|
|
<!-- Replace file includes in nuspec as recommended in the linker repo's ./corebuild/README.md -->
|
|
|
|
<Target Name="ReplaceNuspecDllIncludeLines" BeforeTargets="Build" Condition="'$(TargetOS)' != 'Windows_NT'">
|
|
|
|
<PropertyGroup>
|
|
|
|
<LinkerTasksNuspecFile>$(ProjectDirectory)src/ILLink.Tasks/ILLink.Tasks.nuspec</LinkerTasksNuspecFile>
|
|
|
|
<NuspecFileContents>
|
|
|
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
|
|
|
<metadata>
|
|
|
|
<id>$id$</id>
|
|
|
|
<version>$version$</version>
|
|
|
|
<authors>$authors$</authors>
|
|
|
|
<description>$description$</description>
|
|
|
|
</metadata>
|
|
|
|
<files>
|
|
|
|
<file src="ILLink.Tasks.targets" target="build" />
|
|
|
|
<file src="ILLink.CrossGen.targets" target="build" />
|
|
|
|
<file src="netcoreapp2.0/**/*.dll" target="tools/netcoreapp2.0" />
|
|
|
|
</files>
|
|
|
|
</package>
|
|
|
|
]]>
|
|
|
|
</NuspecFileContents>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(LinkerTasksNuspecFile)"
|
|
|
|
Lines="$(NuspecFileContents)"
|
|
|
|
Overwrite="true" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
</Project>
|