Skip to content

Commit 0a9499c

Browse files
committed
Use dotnet pack and update versions accordingly
1 parent b94c76f commit 0a9499c

File tree

5 files changed

+45
-79
lines changed

5 files changed

+45
-79
lines changed

SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
5+
<PackageId>SpotifyAPI.Web.Auth</PackageId>
6+
<Title>SpotifyAPI.Web.Auth</Title>
7+
<Authors>Jonas Dellinger</Authors>
8+
<PackageLicenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</PackageLicenseUrl>
9+
<PackageProjectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</PackageProjectUrl>
10+
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
11+
<Description>
12+
Authorization Flows for the Spotify's Web API, written in .NET
13+
14+
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
15+
</Description>
16+
<PackageTags>
17+
spotify api music .net c# spotify-client
18+
</PackageTags>
519
</PropertyGroup>
620

721
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -13,13 +27,15 @@
1327
<DocumentationFile>bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.xml</DocumentationFile>
1428
<NoWarn>1701;1702;1705;1591</NoWarn>
1529
</PropertyGroup>
16-
17-
<ItemGroup>
18-
<PackageReference Include="EmbedIO" Version="2.9.1" />
19-
</ItemGroup>
20-
30+
2131
<ItemGroup>
22-
<ProjectReference Include="..\SpotifyAPI.Web\SpotifyAPI.Web.csproj" />
32+
<PackageReference Include="EmbedIO" Version="2.9.1">
33+
<PrivateAssets>None</PrivateAssets>
34+
</PackageReference>
35+
<ProjectReference Include="..\SpotifyAPI.Web\SpotifyAPI.Web.csproj">
36+
<SpecificVersion>False</SpecificVersion>
37+
<PrivateAssets>None</PrivateAssets>
38+
</ProjectReference>
2339
</ItemGroup>
2440

2541
<ItemGroup>

SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec

Lines changed: 0 additions & 29 deletions
This file was deleted.

SpotifyAPI.Web/SpotifyAPI.Web.csproj

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
5+
<PackageId>SpotifyAPI.Web</PackageId>
6+
<Title>SpotifyAPI.Web</Title>
7+
<Authors>Jonas Dellinger</Authors>
8+
<PackageLicenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</PackageLicenseUrl>
9+
<PackageProjectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</PackageProjectUrl>
10+
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
11+
<Description>
12+
An API for Spotify's Web API, written in .NET
13+
14+
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET
15+
</Description>
16+
<PackageTags>
17+
spotify api music .net c# spotify-client
18+
</PackageTags>
519
</PropertyGroup>
620

721
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -15,12 +29,8 @@
1529
</PropertyGroup>
1630

1731
<ItemGroup>
18-
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
19-
</ItemGroup>
20-
21-
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
22-
<Reference Include="System.Net" />
23-
<Reference Include="System.Net.Http" />
32+
<PackageReference Include="Newtonsoft.Json" Version="12.0.2">
33+
<PrivateAssets>None</PrivateAssets>
34+
</PackageReference>
2435
</ItemGroup>
25-
2636
</Project>

SpotifyAPI.Web/SpotifyAPI.Web.nuspec

Lines changed: 0 additions & 30 deletions
This file was deleted.

publish.cmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
if "%APPVEYOR_REPO_TAG%" == "true" (
22

33
echo Publishing...
4-
54
cd ./SpotifyAPI.Web
6-
nuget pack ./SpotifyAPI.Web.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
7-
nuget push ./SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
5+
dotnet pack -c Release SpotifyAPI.Web.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
6+
nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
87

98
cd ../SpotifyAPI.Web.Auth
10-
nuget pack ./SpotifyAPI.Web.Auth.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
11-
nuget push ./SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
9+
dotnet pack -c Release SpotifyAPI.Web.Auth.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
10+
nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
1211

1312
cd ..
1413

0 commit comments

Comments
 (0)