-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add fixes to prevent potential build failures due to redist copying #1775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| DependsOnTargets="DownloadDnnModelFiles"> | ||
| <Message Importance="High" Text="Copying external model files... @(ModelFileCopy->'%(TargetPath)')" /> | ||
| <Copy SourceFiles="@(ModelFileCopy)" | ||
| Condition="'$(SkipRIDAgnosticAssets)' == ''" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Condition checking in MSBuild is a little different. Typically "boolean" properties will have 3 values: empty, true, and false. So generally, you pick empty (the default) to be considered the same as either 'true' or 'false'. In our case here, the default for SkipRIDAgnosticAssets should be false. So instead it is best to write this condition as:
Condition="'$(SkipRIDAgnosticAssets)' != 'true'"
That way someone can explicitly set /p:SkipRIDAgnosticAssets=false, and it still works correctly. #Resolved
eerhardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - with just one minor condition-writing suggestion.
eerhardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! thanks.
|
Let's get this in, since 2 more builds just failed because of this. |
safern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a new build script flag that allows specifying that certain RID agnostic files inside redist should not be built/executed. This is used to prevent the DNNImageFeaturizer models from being copied on each leg causing possible build failures. Instead, the copying only happens on Windows x64. Fixes #1775