Repository navigation
Allow SDK Version in explicit project imports - #2895
Merged
Merged
Conversation
All the code was here but the attribute was not allowed on the Import element at project parse time for Version or MinimumVersion. This change allows those attributes and rest of the code worked as expected. Added tests for the scenario and a few others.
jeffkl
approved these changes
Jan 23, 2018
rainersigwald
approved these changes
Jan 23, 2018
|
|
||
| private SdkReference GetParsedSdk(ProjectImportElement element) | ||
| { | ||
| PropertyInfo parsedSdkInfo = typeof(ProjectImportElement).GetProperty("ParsedSdkReference", BindingFlags.Instance | BindingFlags.NonPublic); |
Member
There was a problem hiding this comment.
Isn't the point of this test assembly to not have to depend on internals?
Contributor
Author
There was a problem hiding this comment.
Yeah, but for verification I thought this was cleaner than anything else. I was concerned mainly with parsing, and using this allows me to assert that the data going to the resolver from the evaluator is exactly what was intended. It might mean there's not enough disambiguation in the OM since I think some of the internals have changed since it was originally exposed. But not something that I wanted to change at this point.
Contributor
Author
|
@dotnet-bot test Ubuntu14.04 Build for CoreCLR please |
1 similar comment
Contributor
Author
|
@dotnet-bot test Ubuntu14.04 Build for CoreCLR please |
radical
pushed a commit
to radical/msbuild
that referenced
this pull request
Jan 30, 2018
All the code was here but the attribute was not allowed on the Import element at project parse time for Version or MinimumVersion. This change allows those attributes and rest of the code worked as expected. Added tests for the scenario and a few others.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
All the code was here but the attribute was not allowed on the Import
element at project parse time for Version or MinimumVersion. This change
allows those attributes and rest of the code worked as expected. Added
tests for the scenario and a few others.