Replace PackNuspec with a dummy .csproj file

This commit is contained in:
Nate McMaster 2018-12-05 17:55:10 -08:00
parent 0588b13f5b
commit 1b9a6b093d
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
3 changed files with 38 additions and 33 deletions

View File

@ -402,26 +402,19 @@
<SymbolsPackageId>runtime.$(SharedFxRID).$(SymbolsNuspecIdSuffix)</SymbolsPackageId>
</PropertyGroup>
<ItemGroup>
<_SymbolFiles Include="$(SymbolsWorkDir)**\*.pdb;$(SymbolsWorkDir)**\*.map;$(SymbolsWorkDir)**\*.dll" />
<SymbolFiles Include="@(_SymbolFiles)">
<PackagePath>%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</SymbolFiles>
</ItemGroup>
<!-- Create Layout -->
<Copy
SourceFiles="$(_TemplatesDir)SharedFxSymbols\SharedFrameworkSymbols.nuspec"
DestinationFiles="$(SymbolsWorkDir)$(SymbolsPackageId).nuspec"
SourceFiles="$(_TemplatesDir)SharedFxSymbols\SharedFrameworkSymbols.csproj"
DestinationFiles="$(SymbolsWorkDir)$(SymbolsPackageId).csproj"
OverwriteReadOnlyFiles="True" />
<!-- Produce symbols nupkg -->
<PackNuspec NuspecPath="$(SymbolsWorkDir)$(SymbolsPackageId).nuspec"
OutputPath="$([MSBuild]::NormalizeDirectory($(ArtifactsDir)))symbols\$(SymbolsPackageId).$(PackageVersion).symbols.nupkg"
Properties="version=$(PackageVersion);id=$(SymbolsPackageId);description=$(Description);Configuration=$(Configuration)"
Overwrite="true"
PackageFiles="@(SymbolFiles)"
BasePath="$(SymbolsWorkDir)" />
<MSBuild Projects="$(SymbolsWorkDir)$(SymbolsPackageId).csproj"
Targets="Restore;Pack"
Properties="SymbolsWorkDir=$(SymbolsWorkDir);PackageId=$(SymbolsPackageId);PackageVersion=$(PackageVersion);PackageOutputPath=$(IntermediateDir);PackageDescription=$(Description)" />
<Copy
SourceFiles="$(IntermediateDir)$(SymbolsPackageId).$(PackageVersion).symbols.nupkg"
DestinationFolder="$([MSBuild]::NormalizeDirectory($(ArtifactsDir)))symbols\" />
</Target>
<Target Name="PackSharedFx" DependsOnTargets="DefineSharedFxPrerequisites" >

View File

@ -0,0 +1,30 @@
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Authors>Microsoft</Authors>
<Copyright>Copyright © Microsoft Corporation</Copyright>
<PackageLicenseUrl>https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt</PackageLicenseUrl>
<PackageIconUrl>https://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://asp.net</PackageProjectUrl>
<IncludeSymbols>true</IncludeSymbols>
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageTags>aspnetcore</PackageTags>
<ContentTargetFolders></ContentTargetFolders>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>
<ItemGroup>
<_SymbolFiles Include="$(SymbolsWorkDir)**\*.pdb;$(SymbolsWorkDir)**\*.map;$(SymbolsWorkDir)**\*.dll" />
<Content Include="@(_SymbolFiles)">
<PackagePath>%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</Content>
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Target Name="Compile" />
<Target Name="CopyFilesToOutputDirectory" />
</Project>

View File

@ -1,18 +0,0 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>$ID$</id>
<version>$VERSION$</version>
<description>$DESCRIPTION$</description>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<copyright>Copyright © Microsoft Corporation</copyright>
<licenseUrl>https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt</licenseUrl>
<iconUrl>https://go.microsoft.com/fwlink/?LinkID=288859</iconUrl>
<projectUrl>https://asp.net</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<serviceable Condition="'$(Configuration)' == 'Release'">true</serviceable>
<tags>aspnetcore</tags>
</metadata>
<files />
</package>