Skip to content

Conversation

@surayya-MS
Copy link
Member

Fixes #

Context

Changes Made

Testing

Notes

Mariana Dematte and others added 3 commits April 10, 2025 20:38
DownloadFile should not rely on the remote server response headers. Unless the DestinationFileName task parameter is specified - let's just fallback to the request URI - which is as well the publicly documented behavior.
revert 10725 to unblock VS insertions by matching 17.8 VS versions.
We're doing a version bump so all branches have up-to-date opt-prof runs.

[Opt-prof version](https://dev.azure.com/devdiv/_apps/hub/ms-vscs-artifact.build-tasks.drop-hub-group-explorer-hub?name=OptimizationData/DotNet-msbuild-Trusted/internal/vs17.8/20250416.5/11417138/1)

----
#### AI description  (iteration 1)
#### PR Classification
Version update.

#### PR Summary
This pull request updates the version prefix in the project configuration.
- `eng/Versions.props`: Updated `<VersionPrefix>` from `17.8.28` to `17.8.29`.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Copilot AI review requested due to automatic review settings May 19, 2025 17:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR merges tag v17.8.29 by bumping the MSBuild version, updating binding redirects and package versions, and refactoring file‐download logic.

  • Refactored DownloadFile.TryGetFileName to take a Uri instead of HttpResponseMessage
  • Updated binding redirects and codeBase entries for various assemblies to 7.x versions
  • Bumped <VersionPrefix> and dependency versions in props and XML baseline files

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Tasks/DownloadFile.cs Changed TryGetFileName to use Uri; removed header-based filename lookup
src/MSBuild/app.config Updated redirects to 7.x and inadvertently removed Microsoft.IO.Redist block
src/MSBuild/app.amd64.config Updated redirects and codeBase versions to 7.x
eng/Versions.props Bumped VersionPrefix and dependency version props
eng/Version.Details.xml Updated dependency URIs, SHAs, and versions to 7.x
eng/SourceBuildPrebuiltBaseline.xml Adjusted ignore patterns for System.Text.Json
eng/Packages.props Removed System.Formats.Asn1 package reference
Comments suppressed due to low confidence (3)

src/Tasks/DownloadFile.cs:312

  • New fallback logic for filename extraction from URI should be covered by unit tests to validate behavior when destination is user-specified versus when falling back to Path.GetFileName.
private bool TryGetFileName(Uri requestUri, out string filename)

src/Tasks/DownloadFile.cs:171

  • The logic no longer attempts to read the Content-Disposition header, so filenames provided by the server will be ignored. Consider overloading or restoring header-based lookup if that behavior is still needed.
if (!TryGetFileName(uri, out string filename))

src/MSBuild/app.config:44

  • The dependentAssembly block for Microsoft.IO.Redist was removed in this hunk. Re-add its <dependentAssembly> block to maintain the required binding redirect.
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />

@surayya-MS surayya-MS closed this May 20, 2025
@surayya-MS surayya-MS deleted the msbuild/vs17.8 branch May 20, 2025 10:30
@surayya-MS surayya-MS restored the msbuild/vs17.8 branch May 20, 2025 10:37
@surayya-MS surayya-MS reopened this May 20, 2025
@dotnet-policy-service
Copy link
Contributor

Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version.

Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

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

lgtm. Please merge, do not squash.

@surayya-MS surayya-MS merged commit 2e2d89a into dotnet:vs17.8 May 26, 2025
9 checks passed
@surayya-MS surayya-MS deleted the msbuild/vs17.8 branch May 26, 2025 08:46
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.

4 participants