Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support xcopied sdk #11530

Merged
merged 7 commits into from
May 11, 2021
Merged

Support xcopied sdk #11530

merged 7 commits into from
May 11, 2021

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented May 6, 2021

Fixes: #11522

An xcopied sdk is often used in ci's to ensure that the build is not dependent on the version of dotnetsdk installed on the vm. It makes things more reproducible.

On Windows an xcopied sdk can cause things like pack and sdk directories may exist in two locations, 1. the xcopied sdk, and 2. the global Sdk.

This PR updates how we probe for dotnet.exe and how we probe for pack and sdk directories.

Todo:

  1. Review what to do for linux, is DOTNET_MULTILEVEL_LOOKUP relevent there.
  2. Review implementationAssemblyDir : https://github.com/dotnet/fsharp/blob/main/src/fsharp/FxResolver.fs#L207

Edit: I also updated the global.json to use the arcade specified dotnetsdk in the ci.

@KevinRansom KevinRansom closed this May 7, 2021
@KevinRansom KevinRansom reopened this May 7, 2021
@KevinRansom KevinRansom requested a review from brettfo May 7, 2021 20:57
@KevinRansom KevinRansom changed the title WIP: Support xcopied sdk Support xcopied sdk May 8, 2021
@vzarytovskii
Copy link
Member

@brettfo if you're fine with it, I would love to have it in main, so resolver can work with preview versions of sdk (which will allow us to upgrade to 6.0-preview).

@KevinRansom KevinRansom merged commit cb7a9d2 into dotnet:main May 11, 2021
@KevinRansom KevinRansom deleted the sdkprobe branch January 21, 2022 09:08
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.

fsi / fsc do not work well getting default framework types when run from xcopied sdk
3 participants