Skip to content

Migrate solution to .NET 10 - #102

Merged
Purva-Patki merged 18 commits into
mainfrom
Purva-Patki/migrate-net10
Jul 31, 2026
Merged

Purva-Patki merged 18 commits into
mainfrom
Purva-Patki/migrate-net10

Conversation

@Purva-Patki

Copy link
Copy Markdown
Contributor
  • Retarget all projects to net10.0 (was netstandard2.1 / net6.0 / netcoreapp3.1)

  • Replace legacy ASP.NET Core 2.2 package refs with FrameworkReference Microsoft.AspNetCore.App

  • Bump JwtBearer and System.Drawing.Common to satisfy MISE 1.35.0 transitive requirements

  • Remove dead 'using static HostingApplication' imports removed after ASP.NET Core 2.2

  • Update CI and Azure DevOps pipelines to install .NET 10 SDK

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Purva-Patki and others added 13 commits July 23, 2026 12:54
- Retarget all projects to net10.0 (was netstandard2.1 / net6.0 / netcoreapp3.1)

- Replace legacy ASP.NET Core 2.2 package refs with FrameworkReference Microsoft.AspNetCore.App

- Bump JwtBearer and System.Drawing.Common to satisfy MISE 1.35.0 transitive requirements

- Remove dead 'using static HostingApplication' imports removed after ASP.NET Core 2.2

- Update CI and Azure DevOps pipelines to install .NET 10 SDK

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Removes NU1510-flagged PackageReferences now supplied by the runtime/ASP.NET Core shared framework: Microsoft.AspNetCore.Hosting.Abstractions, Microsoft.AspNetCore.Http.Abstractions, Microsoft.Extensions.Logging.Debug, Microsoft.Extensions.Configuration.Binder, System.Text.Encodings.Web.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
…mps)

Bump non-breaking package versions across all projects and align transitive
floors surfaced by NU1605:
- Azure SDKs: Identity 1.21.0, AppConfiguration 1.10.0, Storage.Blobs 12.29.1,
  Cosmos 3.62.0, KeyVault.Secrets 4.11.0, Security config secrets 1.5.1
- Newtonsoft.Json 13.0.4, System.Linq.Dynamic.Core 1.7.3, UnifiedRedisPlatform 1.0.4
- Microsoft.Extensions.* + JwtBearer + System.Drawing.Common -> 10.0.10
- IdentityModel.Validators 8.21.0, Identity.Client 4.84.2 (Azure.Core 1.59 floor)
- NuGet.Packaging/Protocol 6.12.1 (CodeGeneration.Design 10.0.2 floor)
- Test stack: Microsoft.NET.Test.Sdk 18.8.1, Moq 4.20.72, coverlet 10.0.1,
  MSTest.TestAdapter/Framework 4.3.2

Migrate 3 [ExpectedException] usages to Assert.ThrowsExactly/ThrowsExactlyAsync
(removed in MSTest 4).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
MISE 2.x is a breaking redesign. Changes:
- Bump Microsoft.Identity.ServiceEssentials.AspNetCore + .Caching to 2.5.3
- Drop Microsoft.Identity.ServiceEssentials.Extensions.AspNetCoreMiddleware
  (no 2.x; middleware folded into the AspNetCore metapackage)
- ServicesExtensions.AddAuthentication: AddMiseWithDefaultAuthentication ->
  AddMiseWithDefaultModules; options now set via MiseOptions.AzureAd
  (Authority/Audiences/ClientId/Instance/TenantId)
- Auth scheme constant S2SAuthenticationDefaults.AuthenticationScheme ->
  MiseAuthenticationDefaults.AuthenticationScheme (same value 'S2SAuthentication';
  MISE 2.x no longer pulls the S2S package transitively)
- UseMise namespace: ...Extensions.AspNetCoreMiddleware -> Microsoft.Identity.ServiceEssentials

Builds clean; all 219 unit tests pass. NOTE: token validation/auth wiring is
not exercised by unit tests - integration/auth testing recommended before merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
…R 2003349)

Aligns the MISE 2.x auth setup with the reviewed CE-FS-FExP-PageTour MISE 2.X
compliance implementation:
- Configure MiseInboundPolicyOptions with a Bearer protocol accepting both app
  and user tokens (AppToken/UserToken/AllowMissingIdTypeClaim). MISE 2.x needs an
  explicit inbound policy - AzureAd audiences alone do not validate inbound tokens.
- Set AzureAd.Audience (single) and expand Audiences to include api:// URI forms
  and the client id (v1.0/v2.0 token audience formats), plus AdditionalAudiences
  in both raw and api:// forms.
- Drop explicit Authority; rely on Instance + TenantId (MISE-derived authority),
  matching the reference.
- Remove redundant app.UseMise(); the AddMiseWithDefaultModules handler validates
  inbound tokens via UseAuthentication + AuthenticateAsync (reference does the same).

OpenTelemetry.Exporter.Geneva 1.11.2 (the transitive dep the reference pinned) is
already resolved automatically here (no central package pinning in this repo).

Builds clean; all 219 unit tests pass. Auth behavior still needs integration
validation before merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Dropped the Swashbuckle.AspNetCore package reference, the AddSwagger
service registration and its UseSwagger/UseSwaggerUI middleware, and the
associated Microsoft.OpenApi usings. Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
…tion 7.2.0 -> 11.0.2

Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Microsoft.Azure.AppConfiguration.AspNetCore and
Microsoft.Extensions.Configuration.AzureAppConfiguration both to 8.5.0.
Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Bumped Microsoft.FeatureManagement 2.6.1 -> 4.6.0 (Domain + API) and
Microsoft.FeatureManagement.AspNetCore 2.4.0 -> 4.6.0 (API). Filter API
(IFeatureFilter/FeatureFilterEvaluationContext/IFilterParametersBinder)
remained source-compatible. Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Bumped across all 7 project/test references to the latest public stable
on nuget.org. The 16.0.14415.15073 reported by 'dotnet list --outdated'
is an internal-feed-only build not available on nuget.org, so it was
intentionally not used to keep this public repo restorable from nuget.org.
Build clean, all 219 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Migrated GraphGroupVerificationService to the Graph SDK v6 (Kiota) API:
- IGraphServiceClient -> GraphServiceClient
- Replaced removed DelegateAuthenticationProvider with a custom
  IAuthenticationProvider (MsalConfidentialClientAuthenticationProvider)
  that sets the bearer token from the MSAL confidential client
- Replaced removed .Request()/NextPageRequest fluent+paging with
  GetAsync() + PageIterator<DirectoryObject, DirectoryObjectCollectionResponse>
- Models now from Microsoft.Graph.Models (User, DirectoryObject)

Build clean, all 219 tests pass. Graph request/paging/auth paths are not
unit-tested (require live Graph); integration verification recommended.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c975713-01f9-4b4a-a6d9-3fc334559698
Purva-Patki and others added 5 commits July 24, 2026 20:27
- GetFeatureNamesQueryHandler: single-quote Tenant/Environment string
  literals and lowercase the environment in the Cosmos query, fixing
  CosmosDbException (400 BadRequest "Identifier could not be resolved").
- CosmosDbRepository: quote the id value in GET_DOC_BY_ID_QUERY (same
  latent unquoted-literal bug).
- GraphGroupVerificationService: build GraphServiceClient directly from
  AzureCliCredential in DEBUG (no cert/secret); remove dead GetCertificate.
- ManagedIdentityHelper: correct comment to reflect AzureCliCredential.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 779235d5-4bf9-42f6-8f09-f436c7bbc0ed
…tial Provider

Restore was failing with NU1301 401 Unauthorized because src/service/NuGet.Config
targets only the private PS-GCM-FieldExperiencePlatform feed, which GitHub-hosted
runners cannot access. Install the Azure Artifacts Credential Provider and supply
credentials via VSS_NUGET_EXTERNAL_FEED_ENDPOINTS using the AZURE_DEVOPS_PAT secret.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 885f5240-946a-49c2-bcad-a787598b62cc
… restore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 885f5240-946a-49c2-bcad-a787598b62cc
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 885f5240-946a-49c2-bcad-a787598b62cc
Unauthenticated requests now receive a proper 401 Unauthorized instead of
a thrown exception (which surfaced as a debugger break on launch and a 500
to callers). Also set the local launchUrl to the anonymous probe endpoint
so F5 lands on api/probe/ping without a token.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 885f5240-946a-49c2-bcad-a787598b62cc
@Purva-Patki
Purva-Patki merged commit 56578ff into main Jul 31, 2026
5 of 6 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.

3 participants