Skip to content

Conversation

@jonfortescue
Copy link
Contributor

Doc I wrote on Friday but forgot to post as a PR for some reason. Realized I should have a doc explaining migration that I can link to in the email so that's what this is.

@jonfortescue jonfortescue requested review from MattGal and garath July 6, 2022 16:48
@jonfortescue jonfortescue self-assigned this Jul 6, 2022
MattGal
MattGal previously approved these changes Jul 6, 2022
2. Modify your `global.json`'s `native-tools` section to change the version of your tools to one of the following values:
- `latest` (e.g. `"cmake": "latest"`) – Grabs the latest version of the tool on the machine; this should be what you use in the majority of cases
- Major version (e.g. `"cmake": "3"`) – Grabs the latest minor & patch version of a particular major version on the machine; this is useful artifacts you want to pin to a specific major version
- Minor version (e.g. `"python": "3.10"`) – Grabs the latest patch version of a particular minor version on the machine; this is useful for artifacts you want to pin to a specific minor version (such as Python)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually provide multiple pythons ? WHy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this was just an example of a minor version specification. Python's the only case I could think of for that lol, but hypothetically there are other cases where you'd want to pin a minor version.

- Major version (e.g. `"cmake": "3"`) – Grabs the latest minor & patch version of a particular major version on the machine; this is useful artifacts you want to pin to a specific major version
- Minor version (e.g. `"python": "3.10"`) – Grabs the latest patch version of a particular minor version on the machine; this is useful for artifacts you want to pin to a specific minor version (such as Python)
3. Adjust any usage of the artifacts on the machines in your scripts. The artifacts you specify in your `global.json` are promoted to the path,
so in general simply calling `cmake` will work. However, if you need the specific locations of tools, `InitializeNativeTools` will return those to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider combining lines here, this may look odd on some column widths.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do separate lines so it's easy to pinpoint comments in a PR; it all looks the same when it's rendered in markdown

@jonfortescue jonfortescue merged commit 54a00a8 into dotnet:main Jul 8, 2022
@jonfortescue jonfortescue deleted the NativeToolsOnMachineDoc branch July 8, 2022 21:40
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.

3 participants