-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add environment variable support to SDK resolvers #12023
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me!
For logging maybe only log success message "SdkEnvironmentVariableSet" because there would be a lot of repetitions of messages like above. Haven't thought of a better way.
@baronfel , @rainersigwald is my understanding correct that next steps are the following?
@surayya-MS exactly! |
We should probably make the requirement for 3 explicit: 2.5. Wait until that SDK resolver is inserted into VS int preview. |
Enable dotnet/roslyn#78939 by adding the ability for SDK resolvers to return environment variables.
The environment variables are set during execution, because they cannot be reliably set during evaluation, which may be happening concurrently within a process. The value is also set as a regular property for ease of access during evaluation time.