[dotnet] [build] Simplify how we pack nuget package#17270
[dotnet] [build] Simplify how we pack nuget package#17270nvborisenko merged 7 commits intoSeleniumHQ:trunkfrom
Conversation
Review Summary by QodoSimplify NuGet package creation by eliminating intermediate zip
WalkthroughsDescription• Removed intermediate zip file step during NuGet packaging • Refactored file layout logic using direct file copying • Consolidated .csproj template generation with reusable string • Removed unused property_group_vars attribute and _zip tool • Simplified _guess_dotnet_version function by removing label parameter File Changes1. dotnet/private/nuget_pack.bzl
|
Code Review by Qodo
1.
|
Eliminate unnecessary zipping.
💥 What does this PR do?
This pull request refactors and simplifies the NuGet packaging logic in
dotnet/private/nuget_pack.bzlby removing the intermediate zip step, streamlining the file layout process, and cleaning up unused attributes. The changes improve maintainability and efficiency by directly copying files into the package structure and generating the.csprojtemplate in a more reusable way.NuGet packaging process simplification:
pathsdictionary with alayoutdictionary for clearer intent and easier management of files within the package..csprojfile generation by introducing a reusable_CSPROJ_TEMPLATEstring, and removed the redundantproperty_group_varsattribute from the rule and its usages. [1] [2] [3] [4]Code and rule cleanup:
_ziptool and related logic from the rule definition, as zipping is no longer necessary. [1] [2]_guess_dotnet_versionfunction by removing the unusedlabelparameter and improving comments for maintainability.🔄 Types of changes