Use dotnet pack and update versions accordingly

This commit is contained in:
Jonas Dellinger 2019-07-17 17:26:35 +02:00
parent b94c76f038
commit 0a9499c7d1
5 changed files with 45 additions and 79 deletions

View File

@ -1,7 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>SpotifyAPI.Web.Auth</PackageId>
<Title>SpotifyAPI.Web.Auth</Title>
<Authors>Jonas Dellinger</Authors>
<PackageLicenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<Description>
Authorization Flows for the Spotify's Web API, written in .NET
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
</Description>
<PackageTags>
spotify api music .net c# spotify-client
</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@ -15,11 +29,13 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EmbedIO" Version="2.9.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SpotifyAPI.Web\SpotifyAPI.Web.csproj" />
<PackageReference Include="EmbedIO" Version="2.9.1">
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<ProjectReference Include="..\SpotifyAPI.Web\SpotifyAPI.Web.csproj">
<SpecificVersion>False</SpecificVersion>
<PrivateAssets>None</PrivateAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>SpotifyAPI.Web.Auth</id>
<version>3.0.0</version>
<title>SpotifyAPI.Web.Auth</title>
<authors>JohnnyCrazy</authors>
<owners>JohnnyCrazy</owners>
<licenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>
Authorization Flows for the Spotify's Web API, written in .NET
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
</description>
<language />
<tags>spotify api music .net c# spotify-client</tags>
<dependencies>
<dependency id="SpotifyAPI.Web" version="3.0.0" />
<dependency id="EmbedIO" version="2.2.7" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.dll" target="lib\netstandard2.0\SpotifyAPI.Web.Auth.dll" />
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.xml" target="lib\netstandard2.0\SpotifyAPI.Web.Auth.xml" />
</files>
</package>

View File

@ -1,7 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>SpotifyAPI.Web</PackageId>
<Title>SpotifyAPI.Web</Title>
<Authors>Jonas Dellinger</Authors>
<PackageLicenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<Description>
An API for Spotify's Web API, written in .NET
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
</Description>
<PackageTags>
spotify api music .net c# spotify-client
</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@ -15,12 +29,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2">
<PrivateAssets>None</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<Reference Include="System.Net" />
<Reference Include="System.Net.Http" />
</ItemGroup>
</Project>

View File

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>SpotifyAPI.Web</id>
<version>3.0.0</version>
<title>SpotifyAPI.Web</title>
<authors>JohnnyCrazy</authors>
<owners>JohnnyCrazy</owners>
<licenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>
An API for Spotify's Web API, written in .NET
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
</description>
<language />
<tags>spotify api music .net c# spotify-client</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="12.0.1" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.dll" target="lib\netstandard2.0\SpotifyAPI.Web.dll" />
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.xml" target="lib\netstandard2.0\SpotifyAPI.Web.xml" />
<file src="bin\Release\net46\SpotifyAPI.Web.dll" target="lib\net46\SpotifyAPI.Web.dll" />
<file src="bin\Release\net46\SpotifyAPI.Web.xml" target="lib\net46\SpotifyAPI.Web.xml" />
</files>
</package>

View File

@ -1,14 +1,13 @@
if "%APPVEYOR_REPO_TAG%" == "true" (
echo Publishing...
cd ./SpotifyAPI.Web
nuget pack ./SpotifyAPI.Web.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
nuget push ./SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
dotnet pack -c Release SpotifyAPI.Web.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
cd ../SpotifyAPI.Web.Auth
nuget pack ./SpotifyAPI.Web.Auth.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
nuget push ./SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
dotnet pack -c Release SpotifyAPI.Web.Auth.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
cd ..