8000 [Blazor] Disable custom cache in .NET 10 by maraf · Pull Request #49183 · dotnet/sdk · GitHub
[go: up one dir, main page]

Skip to content

[Blazor] Disable custom cache in .NET 10 #49183

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

Merged
merged 1 commit into from
May 29, 2025
Merged

Conversation

maraf
Copy link
Member
@maraf maraf commented May 28, 2025

Disable custom cache in .NET 10 as we plan to completely remove it.

Contributes to dotnet/runtime#85775 and is required by dotnet/runtime#114901

@maraf maraf added this to the 10.0.1xx milestone May 28, 2025
@maraf maraf self-assigned this May 28, 2025
@Copilot Copilot AI review requested due to automatic review settings May 28, 2025 16:09
@maraf maraf added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label May 28, 2025
@maraf maraf requested a review from a team as a code owner May 28, 2025 16:09
Copy link
Contributor
@Copilot 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 disables the custom caching mechanism in .NET 10 by updating MSBuild conditions to differentiate between target framework versions.

  • Introduces new properties (_TargetingNETBefore80, _TargetingNET80OrLater, _TargetingNETBefore100, _TargetingNET100OrLater) to accurately detect framework versions.
  • Updates the condition for BlazorCacheBootResources to disable caching on .NET 10 and later.
  • Removes duplicate property group declarations to streamline the target file.
Comments suppressed due to low confidence (1)

src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets:56

  • Ensure that the condition effectively disables caching for .NET 10 and later as intended. Consider verifying the logic against future framework changes.
    <BlazorCacheBootResources Condition="'$(BlazorCacheBootResources)' == '' and '$(_TargetingNET100OrLater)' != 'true'">true</BlazorCacheBootResources>

Copy link
Contributor

Thanks for your PR, @@maraf.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

@maraf maraf merged commit 7a4d106 into main May 29, 2025
32 checks passed
@maraf maraf deleted the maraf/BlazorCacheDisableIn10 branch May 29, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0