Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions build/targets/reproducible/Reproducible.targets
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
<Project>
<Target Name="SetRepositoryBranch" BeforeTargets="GenerateNuspec">
<!--
DotNet.ReproducibleBuilds tries to set the `$(RepositoryBranch)` for SourceLink, but only in CI scenarios.
This results in a difference in nuspec between local and CI tests (which breaks the Verify.Nupkg tests).

To prevent the difference in behavior, set a default value directly from git.

Filed https://github.com/dotnet/sourcelink/issues/1243 to see if this could be moved into the base SourceLink
package.
-->
<Exec
Condition="'$(RepositoryBranch)' == ''"
ConsoleToMSBuild="true"
Command="git rev-parse --abbrev-ref HEAD">
<Output TaskParameter="ConsoleOutput" PropertyName="RepositoryBranch" />
</Exec>
</Target>
</Project>
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.400",
"version": "9.0.100-rc.1.24452.12",
"rollForward": "disable"
},
"msbuild-sdks": {
Expand Down