Skip to content

Fix .NET 10 preview compatibility issues#69

Merged
isc30 merged 1 commit intoisc30:masterfrom
martinalderson:fix/dotnet-10-compatibility
Aug 3, 2025
Merged

Fix .NET 10 preview compatibility issues#69
isc30 merged 1 commit intoisc30:masterfrom
martinalderson:fix/dotnet-10-compatibility

Conversation

@martinalderson
Copy link
Contributor

Summary

  • Fixes ApplyCompressionNegotiation task failure when building with .NET 10 preview
  • Adds proper static web assets configuration for modern .NET versions
  • Updates GitVersion to latest version compatible with .NET 10

Changes Made

  • Add StaticWebAssetProjectMode configuration for .NET 8+ compatibility
  • Configure explicit StaticWebAsset for blazor-analytics.js inclusion
  • Upgrade from deprecated GitVersionTask 5.3.7 to GitVersion.MsBuild 6.3.0
  • Update GitVersion.yml configuration format for version 6.x compatibility
  • Replace tag with label and update prevent-increment syntax

Test Plan

  • Build succeeds with .NET 10 preview
  • NuGet package creation works without errors
  • Static web assets properly included in package (staticwebassets/blazor-analytics.js)
  • GitVersion generates correct version numbers

Resolves the issue reported where endpoints were not found for the static web asset blazor-analytics.js when using .NET 10 preview.

- Add StaticWebAssetProjectMode configuration for .NET 8+ compatibility
- Configure explicit StaticWebAsset for blazor-analytics.js
- Upgrade from GitVersionTask 5.3.7 to GitVersion.MsBuild 6.3.0
- Update GitVersion.yml configuration format for version 6.x compatibility
- Replace 'tag' with 'label' and update prevent-increment syntax

Fixes ApplyCompressionNegotiation task failure with static web assets.
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.

2 participants