Open nathan-alden-hp opened 2 years ago
Investigating this: https://github.com/dotnet/sourcelink/issues/488
Hi @nathan-alden-hp! As suggested in your later comment, this appears to be a SourceLink issue. We recently released a new version of reproducible-builds that includes a newer version of SourceLink. Would you mind updating and seeing if this issue still repos?
This warning message isn't very informative, so I don't know what conditions to resolve.
I borrowed a method for referencing packages in SDK-style from Tanner Gooding to prevent developers from accidentally removing important package references. I have a solution with cascading
Directory.Build.props
andDirectory.Build.targets
files. In my repo'ssource/Directory.Build.props
file, I initially define the NuGet package reference in SDK style:Then, in
source/Directory.Build.targets
, I define the version numbers used by the package:I originally defined
<RepositoryUrl>
myself in the rootDirectory.Build.props
(imported beforesource/Directory.Build.props
), but I took that out thinking its presence might have been causing the problem. It didn't help.I also unsuccessfully tried referencing the package as normal inside
source/Directory.Build.props
:Git shows the correct origin URL:
I am not sure what else to try.