Skip to content

Commit b453d31

Browse files
committed
global.json generation: fixed issue with PostSharp.Engineering.Sdk.
1 parent 2937543 commit b453d31

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/PostSharp.Engineering.BuildTools/Build/Model/Product.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,13 @@ internal bool TryGenerateGlobalJson( BuildContext context, string? overrideSdkVe
14141414
return false;
14151415
}
14161416

1417+
if ( this.GenerateNuGetConfig )
1418+
{
1419+
context.Console.WriteError( $"If GenerateNuGetConfig is set, GlobalJson must be set too." );
1420+
1421+
return false;
1422+
}
1423+
14171424
return true;
14181425
}
14191426

src/PostSharp.Engineering.BuildTools/Dependencies/Definitions/DevelopmentDependencies.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,5 @@ public static class DevelopmentDependencies
3232
BuildConfiguration.Debug,
3333
BuildConfiguration.Debug ),
3434
BuildOrder = int.MinValue,
35-
36-
// We intentionally exclude PostSharp.Engineering.Sdk because it is referenced from global.json
37-
// which is not automatically updated when referencing PostSharp.Engineering locally, so exact the package version
38-
// is not present in the local artifact directory.
39-
PackagePatterns = ["PostSharp.Engineering.BuildTools", "PostSharp.Engineering.DocFx"]
4035
};
4136
}

0 commit comments

Comments
 (0)