Skip to content
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

Pack NuGet.Localization in RTM builds #4320

Merged
merged 2 commits into from
Oct 22, 2021
Merged

Conversation

zivkan
Copy link
Member

@zivkan zivkan commented Oct 22, 2021

Bug

Fixes: NuGet/Home#11328

Regression? LNo

Description

Pack NuGet.Localization in RTM builds

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception: no product changes
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@zivkan zivkan requested a review from a team as a code owner October 22, 2021 15:37
@@ -32,7 +32,7 @@
============================================================
-->

<Target Name="MoveLocalizedFilesToLocalizedArtifacts" Condition="'$(BuildRTM)' == 'false' AND Exists($(LocalizationRootDirectory)) " BeforeTargets="GenerateNuspec">
<Target Name="MoveLocalizedFilesToLocalizedArtifacts" Condition="Exists($(LocalizationRootDirectory)) " BeforeTargets="GenerateNuspec">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check we actually localize for RTM?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the build pipeline doesn't condition the localize task on anything, so it will localize on both RTM and NonRTM builds:

- task: MSBuild@1
displayName: "Localize Assemblies"
inputs:
solution: "build\\loc.proj"
configuration: "$(BuildConfiguration)"
msbuildArguments: "/t:AfterBuild"

I also checked the build artifacts to make sure that NuGet.Localization.{version}.nupkg is generated, and contains what appears to be the correct files.

@zivkan zivkan merged commit 3d7abe7 into dev Oct 22, 2021
@zivkan zivkan deleted the dev-zivkan-pack-localization-rtm branch October 22, 2021 20:16
zivkan added a commit that referenced this pull request Oct 22, 2021
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.

[Bug]: NuGet.Localization isn't generated
5 participants