Skip to content

Commit

Permalink
Don't reuse global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 16, 2024
1 parent 70aba73 commit 2a8d7f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crates/cli/src/subcommands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ pub async fn exec_init_csharp(args: &ArgMatches) -> anyhow::Result<()> {
(include_str!("project/csharp/StdbModule._csproj"), "StdbModule.csproj"),
(include_str!("project/csharp/Lib._cs"), "Lib.cs"),
(include_str!("project/csharp/_gitignore"), ".gitignore"),
// Reuse global.json from modules instead of a separate template to ensure that we stay in sync.
(include_str!("../../../../modules/global.json"), "global.json"),
(include_str!("project/csharp/global._json"), "global.json"),
];

// Check all dependencies
Expand Down
6 changes: 6 additions & 0 deletions crates/cli/src/subcommands/project/csharp/global._json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.400",
"rollForward": "latestMinor"
}
}

0 comments on commit 2a8d7f2

Please sign in to comment.