dotnet-installer/build/package/Symbols.targets
John Beisner dbcd83075c
Creating and publishing 'symbols.nuget' to the blob feed. (#8712)
* Creating and publishing '*.symbols.nuget' to the blob feed.

* Reverting 'generatenupkg' methodology.

* Fixing formatting...

* Overwrite should = 'false'

* Second draft - Creating and publishing '*.symbols.nuget' to the blob feed.

* Fixing a VS auto-update.

* Removing the 'Microsoft.SymbolUploader.Build.Task' modifications; need to make a PR just for this.

* Change "sdk.*.Microsoft.DotNet.SDK.*.symbols.nupkg" to "runtime.*.Microsoft.DotNet.SDK.*.symbols.nupkg"; removing the 'DotNetRestore' on the Symbols.csproj

* Removing a 'todo' comment...

* Putting back the 'dotnet restore'

* Fixing a typo...

* Logical separation of the 'nupkg' from the 'symbols.nupkg' enumeration; fixed 'swr' pattern.

* Add "BLOBFEED_STORAGE_CONTAINER"
2018-03-13 08:19:15 -07:00

29 lines
1.2 KiB
XML

<?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="&quot;$(SymbolsProjectFileName)&quot;"
ToolPath="$(PreviousStageDirectory)" />
<Move SourceFiles="$(PackagesDirectory)\$(SymbolsNupkgPackageId).$(SdkVersion).nupkg" DestinationFiles="$(PackagesDirectory)\$(SymbolsNupkgPackageId).$(SdkVersion).symbols.nupkg" />
</Target>
<Target Name="RestoreSymbolsProject"
DependsOnTargets="Init; SetupProjectsToPack">
<DotNetRestore ProjectPath="&quot;$(SymbolsProjectFileName)&quot;"
ToolPath="$(PreviousStageDirectory)" />
</Target>
</Project>