Skip to content

Commit 3b56d1a

Browse files
committed
Updates ASP.NET webservice sample to .Net 8
1 parent f25e1b6 commit 3b56d1a

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

Samples/asp.net-webservice/Demo.csproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<UserSecretsId>Demo-99C23405-82C0-4B27-8A15-F3B0744E06BE</UserSecretsId>
66
<WebProject_DirectoryAccessLevelKey>0</WebProject_DirectoryAccessLevelKey>
77
<RootNamespace>Demo</RootNamespace>
@@ -14,24 +14,24 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" />
18-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Certificate" Version="6.0.6" />
19-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.5" />
20-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.5" />
21-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.6">
17+
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
18+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Certificate" Version="8.0.16" />
19+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.16" />
20+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.16" />
21+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.16">
2222
<PrivateAssets>all</PrivateAssets>
2323
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2424
</PackageReference>
25-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.5" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.5">
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.16" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.16">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>
30-
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="7.0.2" />
30+
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="8.0.16" />
3131
<PackageReference Include="Microsoft.Graph" Version="4.31.0" />
32-
<PackageReference Include="Microsoft.Identity.Web" Version="1.25.1" />
33-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.24.1" />
34-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.9" />
32+
<PackageReference Include="Microsoft.Identity.Web" Version="3.9.1" />
33+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.9.1" />
34+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.7" />
3535
</ItemGroup>
3636

3737
<ItemGroup>

Samples/asp.net-webservice/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This application demonstrates the basic flow to work with SharePoint Embedded co
2424
* An onboarded application id (sometimes called client id) and its corresponding ContainerTypeId
2525
* The application client secret, or a client certificate if you want to create application owned containers.
2626
These can be generated/uploaded in [Azure's Active Directory (AzureAD or AAD) portal](https://portal.azure.com).
27-
* Visual Studio and/or .Net Framework installed (.NET 6.0 SDK is needed).
27+
* Visual Studio and/or .Net installed (.NET 8.0 or higher SDK is needed).
2828
* A ContainerType
2929
* Having the application registered in the consuming tenant (even if the owner of the application is the same as the consuming)
3030
* Having the containerType registered in the consuming tenant (even if the owner of the CT is the same as the consuming)

Samples/asp.net-webservice/appsettings.baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"ContainerTypeId": "[ContainerTypeId]"
2929
},
3030
"ConnectionStrings": {
31-
"AppDBConnStr": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=DemoAppDb;Integrated Security=True;Connect Timeout=30;",
31+
"AppDBConnStr": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=DemoAppDb;Integrated Security=True;Connect Timeout=30;"
3232
},
3333
"Urls": "https://localhost:57750"
3434
}

0 commit comments

Comments
 (0)