You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and Directory.Build.targets files. In my repo's source/Directory.Build.props file, I initially define the NuGet package reference in SDK style:
<ItemGroupCondition="'$(Configuration)' == 'Release'">
<!-- IsImplicitlyDefined causes Visual Studio to treat this package as an SDK package, meaning developers cannot accidentally remove it -->
<PackageReferenceInclude="DotNet.ReproducibleBuilds"IsImplicitlyDefined="true"PrivateAssets="all"IncludeAssets="runtime; build; native; contentfiles; analyzers" />
</ItemGroup>
Then, in source/Directory.Build.targets, I define the version numbers used by the package:
I originally defined <RepositoryUrl> myself in the root Directory.Build.props (imported before source/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:
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.
The text was updated successfully, but these errors were encountered: