-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Provide nice error when an environment variable is not expanded on the command line, including the full command line for all switch errors Fixes #7210 #7213
Merged
Forgind
merged 28 commits into
dotnet:main
from
Forgind:ignore-environment-variable-switches
Feb 18, 2022
Merged
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
66ae06a
Ignore env variable switches
Forgind df38393
Log command line on switch error
Forgind ab4b6ba
Add hack to string
Forgind 4bf3613
Always point to the environment variable
Forgind 11a2359
Create new error
Forgind 062b313
Move check earlier
Forgind 41427e4
Add test for new behavior
Forgind 76afef4
Delete unused method
Forgind 44a87c9
Include rsps in command line
Forgind 4d9d090
Use TestEnvironment
Forgind ba4283c
Include response file paths in command line
Forgind 1e9d5c7
Fix resource string
Forgind 6174c75
Build
Forgind ad31551
Adjust format
Forgind 4753c7d
Merge branch 'main' into ignore-environment-variable-switches
Forgind af1f39c
Make it easier on the loc team
Forgind 596a7c1
Even easier
Forgind 5af7815
Properly make easier
Forgind 55e9955
Release properly
Forgind 7fcf177
Use ' ' and make tests pass
Forgind e624a5e
Merge branch 'main' into ignore-environment-variable-switches
Forgind 5113a67
PR comments + added test
Forgind f50182a
Little TestEnvironment cleanup
Forgind 50894f0
GC SwitchesFromResponseFile
Forgind 4244db2
Ensure initialized
Forgind 1c6c2c3
Keep switches in order
Forgind af3d14b
Merge branch 'main' into ignore-environment-variable-switches
Forgind 0d7e80f
Add commandLine arg
Forgind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: Can this use the
TestEnvironment
class? Similar to this:msbuild/src/Build.OM.UnitTests/Definition/Project_Tests.cs
Lines 4104 to 4106 in 797fd82