Skip to content

Commit

Permalink
Merge pull request #11 from sharwell/package-folders
Browse files Browse the repository at this point in the history
Use all NuGet package folders to support fallback locations
  • Loading branch information
sharwell authored Sep 4, 2019
2 parents 7993c44 + a1ad983 commit c6ca2b0
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@
<Target Name="RestoreTargetFrameworkDirectory"
Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'"
BeforeTargets="ResolveAvailableReferenceAssemblies">
<ItemGroup>
<_NuGetPackageFoldersItems Include="$(NuGetPackageFolders)" />
<_NetStandardNuGetPackageFolders Include="$([MSBuild]::NormalizeDirectory('%(_NuGetPackageFoldersItems.Identity)', 'netstandard.library', '$(NETStandardLibraryPackageVersion)', 'build', 'netstandard2.0', 'ref'))" />
</ItemGroup>

<PropertyGroup>
<TargetFrameworkDirectory>$(NuGetPackageRoot)netstandard.library\$(NETStandardLibraryPackageVersion)\build\netstandard2.0\ref\</TargetFrameworkDirectory>
<TargetFrameworkDirectory>@(_NetStandardNuGetPackageFolders)</TargetFrameworkDirectory>
</PropertyGroup>
</Target>

Expand Down Expand Up @@ -118,10 +123,6 @@
<Reference Include="@(UnannotatedReferenceAssembly->'%(OutputAssembly)')"
Condition="'%(UnannotatedReferenceAssembly.IsNetStandard)' == 'True' AND Exists('%(UnannotatedReferenceAssembly.OutputAssembly)')" />
</ItemGroup>

<PropertyGroup>
<TargetFrameworkDirectory>$(NuGetPackageRoot)netstandard.library\$(NETStandardLibraryPackageVersion)\build\netstandard2.0\ref\</TargetFrameworkDirectory>
</PropertyGroup>
</Target>

</Project>

0 comments on commit c6ca2b0

Please sign in to comment.