Skip to content

Conversation

Copy link

Copilot AI commented Sep 5, 2025

This PR updates the project configuration files to support .NET 10 preview, ensuring that NuGet package resolution works correctly with the actual available preview versions.

Problem

The repository's global.json was configured to use .NET 10 preview SDK (10.0.100-preview.7.25380.108), but the package references were using shortened version numbers like 10.0.0-preview.7 which don't exist in NuGet. This caused package restoration to fail with errors like:

Version 10.0.0-preview.7 of package dotnet-ef is not found in NuGet feeds

Solution

Updated all .NET 10 preview package references to use the correct full version numbers that are actually available on NuGet:

Directory.Packages.props

  • Updated EFCoreVersion range from [10.0.0-preview.7,10.0.999] to [10.0.0-preview.7.25380.108,10.0.999]
  • Updated Microsoft.AspNetCore.* packages to use 10.0.0-preview.7.25380.108
  • Updated Microsoft.Extensions.* packages to use 10.0.0-preview.7.25380.108
  • Updated System.* packages to use 10.0.0-preview.7.25380.108

Directory.Build.props

  • Updated all target framework properties from net9.0 to net10.0

dotnet-tools.json

  • Updated dotnet-ef tool from 10.0.0-preview.7 to 10.0.0-preview.7.25380.108

The changes align all configuration files to use the correct .NET 10 preview versions that match what's available on NuGet, enabling proper package restoration and tool functionality.

Fixes #80.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update to net10 preview Update configuration files for .NET 10 preview compatibility Sep 5, 2025
Copilot AI requested a review from renemadsen September 5, 2025 11:11
@renemadsen
Copy link
Member

@copilot it gives this error:
Version 10.0.0-preview.7 of package dotnet-ef is not found in NuGet feeds https://api.nuget.org/v3/index.json

Copy link
Author

Copilot AI commented Sep 5, 2025

@copilot it gives this error:
Version 10.0.0-preview.7 of package dotnet-ef is not found in NuGet feeds https://api.nuget.org/v3/index.json

You're absolutely right! The issue was that I used the shortened version 10.0.0-preview.7 which doesn't exist in NuGet. The actual available version is 10.0.0-preview.7.25380.108.

I've fixed this in commit deea6a5 by updating:

  • dotnet-tools.json to use 10.0.0-preview.7.25380.108
  • All Microsoft.AspNetCore., Microsoft.Extensions., and System.* packages in Directory.Packages.props to use the full version number
  • The EFCoreVersion range to start from the correct full version

The versions now match what's actually available on NuGet and should resolve the package not found errors.

Copilot AI changed the title Update configuration files for .NET 10 preview compatibility Fix NuGet package versions to use correct .NET 10 preview build numbers Sep 5, 2025
@renemadsen renemadsen marked this pull request as ready for review September 5, 2025 11:24
@renemadsen renemadsen merged commit a3e8eb7 into master Sep 5, 2025
1 of 55 checks passed
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.

Update to net10 preview

2 participants