dotnet/TorchSharp

Builds fail after package validation PR merged

NiklasGustafsson opened this issue · 2 comments

Seems like the build is restoring the previous version of the package to

Installed TorchAudio 0.102.6 from https://api.nuget.org/v3/index.json to C:\Users\VssAdministrator\.nuget\packages\torchaudio\0.102.6

But then passing in a different path when validating the package:

 Package 'D:\a\1\s\pkg\TorchAudio\torchaudio\0.102.6\torchaudio.0.102.6.nupkg' not found. Please provide a valid package path. [D:\a\1\s\pkg\TorchAudio\TorchAudio.nupkgproj::TargetFramework=netstandard2.0]

I suspect the problem here is that the property the SDK uses to construct the path to the baseline package, NuGetPackageRoot is not set.
https://github.com/dotnet/sdk/blob/70248bd6a95c9a0c8fdb3bbcad5fede004cdf0b1/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.ValidatePackage.targets#L29

That's causing it to look in the project directory.