Conversation
|
test? |
It's still a draft :-) |
|
/azp run |
|
Pull request contains merge conflicts. |
ITranslator methods now take an ObjectTranslator delegate which can translate an object in both directions, as opposed to requiring that objects implement ITranslatable and that a factory be passed in. The TranslatorHelpers class includes extension methods which support the old APIs, so call sites that use ITranslatable objects and NodePacketValueFactory still work.
- Return any number of paths (zero, one, or many) in a successful result - Return MSBuild items and properties to add to the evaluation result Resolves dotnet#5239
This helps support local dev cycles consuming those packages
48fe2e1 to
1c0fba7
Compare
|
@rainersigwald @Forgind @benvillalobos I think this is basically ready for review. I think I still need to update the XML documentation for the new and refactored APIs, but otherwise this should be ready. |
rainersigwald
left a comment
There was a problem hiding this comment.
Haven't looked at tests in detail yet. This seems generally ok to me, though.
src/Build/Evaluation/Evaluator.cs
Outdated
There was a problem hiding this comment.
Can you add a test for this where the resolver produces some horrible special-character nonsense?
There was a problem hiding this comment.
Are there any existing tests for horrible special characters that I can get the nonsense from? :-)
There was a problem hiding this comment.
src\Build.UnitTests\EscapingInProjects_Tests.cs has a bunch related to tasks.
Returning properties/items/metadata with %-followed-by-two-digits and validating it doesn't get unescaped is probably sufficient.
c9d0b11 to
86b98c7
Compare
Forgind
left a comment
There was a problem hiding this comment.
I mostly looked at tests, although I didn't understand all of them. Looks good to me.
src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs
Outdated
Show resolved
Hide resolved
src/Build/Evaluation/Evaluator.cs
Outdated
There was a problem hiding this comment.
src\Build.UnitTests\EscapingInProjects_Tests.cs has a bunch related to tasks.
Returning properties/items/metadata with %-followed-by-two-digits and validating it doesn't get unescaped is probably sufficient.
1b1c52c to
75b8f4f
Compare
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
75b8f4f to
e804355
Compare
|
@rainersigwald @Forgind I think I've addressed all the feedback and this is ready to merge. I'd appreciate a signoff. Thanks! |
|
@dsplaisted did this merge to 16.7 for a specific reason? Most of our development is in master. |
Add more abilities to SDK resolvers
Resolves #5239