Use dotnet pack to pack AspNetCore file
This commit is contained in:
parent
afba2d05ae
commit
4d35489e85
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="PackagePublisher" Version="2.0.0-*" />
|
||||
<PackageReference Include="NuGet.CommandLine" Version="$(NuGetCommandLineVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="_LocateMSBuildExe">
|
||||
|
|
@ -35,11 +34,14 @@
|
|||
|
||||
<Target Name="PackageProjects">
|
||||
<PropertyGroup>
|
||||
<NuGetExePath>$([MSBuild]::EnsureTrailingSlash('$(NuGetPackageRoot)'))nuget.commandline\$(NuGetCommandLineVersion)\tools\nuget.exe</NuGetExePath>
|
||||
<NuspecPath>$(RepositoryRoot)nuget\AspNetCore.nuspec</NuspecPath>
|
||||
<PackageVersion>1.0.0-pre-$(BuildNumber)</PackageVersion>
|
||||
<PackageOutputPath>$(ArtifactsDir)build\</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Exec Command=""$(NuGetExePath)" pack "$(NuspecPath)" -OutputDirectory "$(ArtifactsDir)\build" -prop Version=1.0.0-pre-$(BuildNumber)" />
|
||||
<MSBuild
|
||||
Projects="$(MSBuildThisFileDirectory)../nuget/AspNetCore.csproj"
|
||||
Targets="Pack"
|
||||
Properties="PackageVersion=$(PackageVersion);PackageOutputPath=$(PackageOutputPath)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishPackage"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
|
||||
<add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
|
||||
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.0</TargetFramework>
|
||||
<NuspecFile>$(MSBuildThisFileDirectory)AspNetCore.nuspec</NuspecFile>
|
||||
<NuspecProperties>version=$(PackageVersion)</NuspecProperties>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Loading…
Reference in New Issue