30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||
|
<PropertyGroup>
|
||
|
<SymbolsProjectFileName>$(MSBuildThisFileDirectory)/Symbols.csproj</SymbolsProjectFileName>
|
||
|
<SymbolsNupkgPackageId>runtime.$(ProductMonikerRid).Microsoft.DotNet.SDK</SymbolsNupkgPackageId>
|
||
|
</PropertyGroup>
|
||
|
|
||
|
<Target Name="GenerateSymbolsNugetPackages"
|
||
|
DependsOnTargets="RestoreSymbolsProject;GenerateSymbolsNuget">
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="GenerateSymbolsNuget"
|
||
|
DependsOnTargets="RestoreSymbolsProject">
|
||
|
<DotNetPack NoBuild="True"
|
||
|
IncludeSymbols="False"
|
||
|
Output="$(PackagesDirectory)"
|
||
|
ProjectPath=""$(SymbolsProjectFileName)""
|
||
|
ToolPath="$(PreviousStageDirectory)" />
|
||
|
|
||
|
<Move SourceFiles="$(PackagesDirectory)\$(SymbolsNupkgPackageId).$(SdkVersion).nupkg" DestinationFiles="$(PackagesDirectory)\$(SymbolsNupkgPackageId).$(SdkVersion).symbols.nupkg" />
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="RestoreSymbolsProject"
|
||
|
DependsOnTargets="Init; SetupProjectsToPack">
|
||
|
<DotNetRestore ProjectPath=""$(SymbolsProjectFileName)""
|
||
|
ToolPath="$(PreviousStageDirectory)" />
|
||
|
</Target>
|
||
|
|
||
|
</Project>
|