Revised Registration
All checks were successful
Registration / build-deploy (push) Successful in 9m8s

This commit is contained in:
Grae Jones
2026-03-22 09:37:28 -07:00
parent 8de463cd17
commit fae2226581
6 changed files with 389 additions and 215 deletions

View File

@@ -1,50 +1,54 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Registration</RootNamespace>
<!-- SWAP: Azure Functions only — remove for AspNetCore -->
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<!-- SWAP: AzureFunctionsVersion removed for ASP.NET Core mode. -->
<!-- To restore Azure Functions: add back <AzureFunctionsVersion>v4</AzureFunctionsVersion> -->
<!-- and change Sdk above to Microsoft.NET.Sdk -->
</PropertyGroup>
<!--
═══════════════════════════════════════════════════════════════════════════
SWAP: Azure Functions packages (active)
To switch to AspNetCore: comment this ItemGroup, uncomment the one below,
and remove <AzureFunctionsVersion> from PropertyGroup above.
SWAP: ASP.NET Core packages ◄ ACTIVE
Microsoft.NET.Sdk.Web pulls in Microsoft.AspNetCore.App automatically —
no explicit FrameworkReference needed here.
═══════════════════════════════════════════════════════════════════════════
-->
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.50.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.4" />
<PackageReference Include="Microsoft.Identity.Web" Version="4.5.0" />
</ItemGroup>
<!--
═══════════════════════════════════════════════════════════════════════════
SWAP: ASP.NET Core packages
To switch to AspNetCore: uncomment this ItemGroup, comment the one above,
and remove <AzureFunctionsVersion> from PropertyGroup above.
SWAP: Azure Functions packages ◄ INACTIVE — uncomment to restore
To switch back to Azure Functions:
1. Uncomment this ItemGroup
2. Comment the ASP.NET Core ItemGroup above
3. Restore <AzureFunctionsVersion>v4</AzureFunctionsVersion> in PropertyGroup
4. Change Sdk to Microsoft.NET.Sdk
5. Uncomment the Functions block in Program.cs
6. Swap class declaration and method signatures in RegistrationFunctions.cs
═══════════════════════════════════════════════════════════════════════════
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.50.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.4" />
<PackageReference Include="Microsoft.Identity.Web" Version="4.5.0" />
</ItemGroup>
-->
<!--
Azure Functions host files — present in both modes, ignored in AspNetCore.
host.json and local.settings.json are inert when running as a plain web app.
host.json and local.settings.json are inert in ASP.NET Core mode.
Kept in the repo so the Azure Functions SWAP path remains intact.
-->
<ItemGroup>
<None Update="host.json">
@@ -56,4 +60,4 @@
</None>
</ItemGroup>
</Project>
</Project>