Skip to content

Add global.json to specify SDK version and ensure consistent builds - #211

Closed
Richard Murillo (rjmurillo) wants to merge 2 commits into
microsoft:mainfrom
rjmurillo:global_json
Closed

Richard Murillo (rjmurillo) wants to merge 2 commits into
microsoft:mainfrom
rjmurillo:global_json

Conversation

@rjmurillo

@rjmurillo Richard Murillo (rjmurillo) commented Nov 10, 2023 •

Copy link
Copy Markdown
Contributor

To maintain consistency across all development and build environments, a global.json file is added to the repository. This file specifies the exact .NET SDK version to be used, which helps to avoid discrepancies that can arise from developers using different versions of the SDK. This ensures that all builds, whether on local machines or build servers, use the same version of the SDK, reducing the "it works on my machine" or "it doesn't work on my machine" syndrome. It also aids in smoother transitions between SDK versions by providing explicit control over the upgrade process in a coordinated manner across all environments.

Fixes #212

@yangpanMS

Copy link
Copy Markdown
Contributor

Added global json as part of #214

@rjmurillo
Richard Murillo (rjmurillo) marked this pull request as draft November 16, 2023 17:45
To maintain consistency across all development and build environments, a global.json file is added to the repository. This file specifies the exact .NET SDK version to be used, which helps to avoid discrepancies that can arise from developers using different versions of the SDK. This ensures that all builds, whether on local machines or build servers, use the same version of the SDK, reducing the "it works on my machine" or "it doesn't work on my machine" syndrome. It also aids in smoother transitions between SDK versions by providing explicit control over the upgrade process in a coordinated manner across all environments.

Signed-off-by: Richard Murillo <richard.murillo@microsoft.com>
Signed-off-by: Richard Murillo <richard.murillo@microsoft.com>
@rjmurillo

Copy link
Copy Markdown
Contributor Author

Closing this PR since the file is added in #214 and updates to .NET 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build inconsistent with different .NET SDK versions installed (example: .NET 8 RC2)

2 participants