Re-enable test that was blocking codeflow #41135
Merged
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.
This test is running
GetValuesCommand
withPublishTrimmed
set totrue
in the generated<project>.WriteValuesToFile.g.targets
. In the failure case,ImportProjectExtensionProps
is false (due tohttps://github.com/dotnet/msbuild/blob/147ecadd19ae031d5a511ad55908cff9bcdc17c5/src/Tasks/Microsoft.Common.props#L68 imported from full framework MSBuild props) during restore, so this file isn't imported, we don't set
PublishTrimmed
, Microsoft.NET.ILLink.Tasks isn't restored, and thenILLinkTargetsPath
never gets set.I was wondering why this wasn't failing in main on .NET Core, and found that the
GetValuesCommand
behavior was fixed as part of #39088 to not rely onImportProjectExtensionProps
. So an alternative fix would be to backport the GetValuesCommand fix.This change is just a simpler fix to set
PublishTrimmed
in the project file for this testcase.fixes #40882