Skip to content

Commit

Permalink
Fix global solution generation
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Mar 29, 2023
1 parent 15c3f7e commit a2360d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Thanks to Thomas Frenzel (https://github.com/dotnet/sdk/issues/1151#issuecomment-385133284) -->
<PropertyGroup>
<ReplacePackageReferences Condition="$(ReplacePackageReferences) == ''">true</ReplacePackageReferences>
<SolutionPath>$(MSBuildThisFileDirectory)\nuke-common.sln</SolutionPath>
<SolutionPath>$(MSBuildThisFileDirectory)\nuke-global.sln</SolutionPath>
</PropertyGroup>

<Choose>
Expand Down
3 changes: 1 addition & 2 deletions build/Build.GlobalSolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ partial class Build
{
[Parameter] readonly bool UseHttps;

Nuke.Common.ProjectModel.Solution GlobalSolution = (RootDirectory / "nuke-global.sln").ExistingFile()?.ReadSolution();

AbsolutePath GlobalSolution => RootDirectory / "nuke-global.sln";
AbsolutePath ExternalRepositoriesDirectory => RootDirectory / "external";
AbsolutePath ExternalRepositoriesFile => ExternalRepositoriesDirectory / "repositories.yml";

Expand Down
2 changes: 1 addition & 1 deletion external/repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
- https://github.com/nuke-build/tweets.git
- https://github.com/nuke-build/visualstudio.git
- https://github.com/nuke-build/vscode.git
- https://github.com/nuke-build/web.git
- https://github.com/nuke-build/website.git

0 comments on commit a2360d6

Please sign in to comment.