Repository navigation
Fix preprocessor when imported documents specify Sdk - #2904
Merged
Merged
Conversation
rainersigwald
approved these changes
Jan 24, 2018
rainersigwald
left a comment
Member
There was a problem hiding this comment.
Looks fine but I'm sad that we support this situation at all.
Member
There was a problem hiding this comment.
Weren't we going to make importing a project that itself had an Sdk element an error? That seems way clearer . . . but is it done in the wild?
Implicit imports for imported projects are shown in the preprocessor at the top and bottom of the top level project rather than the imported project. To fix this, I've created a mapping of which documents contain the implicit imports. Before processing a document, the imports are then added to that document rather than the top level one.
radical
pushed a commit
to radical/msbuild
that referenced
this pull request
Jan 30, 2018
* Fix preprocessor when imported documents specify Sdk Implicit imports for imported projects are shown in the preprocessor at the top and bottom of the top level project rather than the imported project. To fix this, I've created a mapping of which documents contain the implicit imports. Before processing a document, the imports are then added to that document rather than the top level one. * Add unit test
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.
Implicit imports for imported projects are shown in the preprocessor at the top and bottom of the top level project rather than the imported project.
To fix this, I've created a mapping of which documents contain the implicit imports. Before processing a document, the imports are then added to that document rather than the top level one.