Skip to content

Commit 596c756

Browse files
author
Justin
committed
Fixing weird nuget dependency issues with workaround
1 parent 47da2e2 commit 596c756

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/SteamWebAPI2/SteamWebAPI2.csproj

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,31 @@
22

33
<PropertyGroup>
44
<Description>This is a .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.</Description>
5-
<VersionPrefix>4.1.0</VersionPrefix>
5+
<VersionPrefix>4.1.1</VersionPrefix>
66
<Authors>Justin Skiles</Authors>
77
<AssemblyName>SteamWebAPI2</AssemblyName>
88
<PackageId>SteamWebAPI2</PackageId>
99
<PackageProjectUrl>https://github.com/babelshift/SteamWebAPI2</PackageProjectUrl>
10-
<PackageLicenseUrl>https://raw.githubusercontent.com/babelshift/SteamWebAPI2/master/LICENSE</PackageLicenseUrl>
10+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<TargetFramework>netstandard2.0</TargetFramework>
1212
</PropertyGroup>
13-
13+
<PropertyGroup>
14+
<!-- https://github.com/nuget/home/issues/3891 -->
15+
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
16+
</PropertyGroup>
1417
<ItemGroup>
1518
<PackageReference Include="automapper" Version="9.0.0" />
1619
<PackageReference Include="newtonsoft.json" Version="12.0.3" />
1720
</ItemGroup>
1821

1922
<ItemGroup>
20-
<ProjectReference Include="..\Steam.Models\Steam.Models.csproj" />
23+
<ProjectReference Include="..\Steam.Models\Steam.Models.csproj" PrivateAssets="all" />
2124
</ItemGroup>
2225

26+
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
27+
<ItemGroup>
28+
<!-- https://github.com/nuget/home/issues/3891 -->
29+
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))"/>
30+
</ItemGroup>
31+
</Target>
2332
</Project>

0 commit comments

Comments
 (0)