64 lines
3.4 KiB
XML
64 lines
3.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<RootNamespace>Registration</RootNamespace>
|
|
<!-- 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: ASP.NET Core packages ◄ ACTIVE
|
|
Microsoft.NET.Sdk.Web pulls in Microsoft.AspNetCore.App automatically —
|
|
no explicit FrameworkReference needed here.
|
|
═══════════════════════════════════════════════════════════════════════════
|
|
-->
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.4" />
|
|
<PackageReference Include="Microsoft.Identity.Web" Version="4.5.0" />
|
|
</ItemGroup>
|
|
|
|
<!--
|
|
═══════════════════════════════════════════════════════════════════════════
|
|
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>
|
|
-->
|
|
|
|
<!--
|
|
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">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="local.settings.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
</Project>
|