Skip to content

use BuildDependsOn for CopyLocalizationResources dependency - #3356

Merged
KevinRansom merged 1 commit into
dotnet:masterfrom
RickKra:master
Jul 21, 2017
Merged

KevinRansom merged 1 commit into
dotnet:masterfrom
RickKra:master

Conversation

@RickKra

@RickKra RickKra commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

This change fixes the build errors that the MicroBuild Localization Plugin experienced when we tried to deploy a newer version.
The problem is that the Localize task now has a DependsOnTargets attribute for a target that computes its inputs and outputs. Those targets actually run before any BeforeTargets=“Localize” targets run, and since CopyLocalizationResources needs to run before that to put a required file in the correct place one of the new targets failed because that file was missing.
I was able to fix this by changing to a BuildDependsOn pattern instead of BeforeTargets. This works with both the older version of the plugin and the newer version. I validated this was a modified FSharp-Microbuild build definition. You can see the results here:

Old Plugin Build
New Plugin Build

@msftclas

Copy link
Copy Markdown

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@KevinRansom

Copy link
Copy Markdown
Contributor

@RickKra thanks for this... nice

/cc @brettfo

@KevinRansom
KevinRansom merged commit 30109be into dotnet:master Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants