Skip to content

Commit 922d847

Browse files
authored
Remove leftover modified push configuration if necessary (#1246)
1 parent 1084fa6 commit 922d847

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

build/nuke/Build.Support.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,21 @@ Dictionary<string, object> ProcessedMsbuildProperties
110110
}
111111
}
112112

113-
Target Prerequisites => _ => _.Executes(GenerateSolution);
113+
Target Prerequisites => _ => _.Executes
114+
(
115+
() =>
116+
{
117+
try
118+
{
119+
DotNet("dotnet nuget remove source \"Silk-PushPackages\"");
120+
}
121+
catch
122+
{
123+
// probably hasn't existed yet, don't care.
124+
}
125+
GenerateSolution();
126+
}
127+
);
114128

115129
AbsolutePath SourceDirectory => RootDirectory / "src";
116130

0 commit comments

Comments
 (0)