Skip to content

Commit 589188f

Browse files
authored
Upgrade to dotnet 10 and fix warnings (#50403)
* Upgrade to dotnet 10 and fix warnings
1 parent 605e69d commit 589188f

File tree

29 files changed

+41
-36
lines changed

29 files changed

+41
-36
lines changed

docs/azure/sdk/snippets/aspnetcore-guidance/BlazorSample/BlazorSample.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

docs/azure/sdk/snippets/aspnetcore-guidance/MinApiSample/MinApiSample.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

docs/azure/sdk/snippets/authentication/additional-auth/interactive/InteractiveBrokeredAuth.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net9.0-windows</TargetFramework>
5+
<TargetFramework>net10.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UseWindowsForms>true</UseWindowsForms>
88
<ImplicitUsings>enable</ImplicitUsings>

docs/azure/sdk/snippets/authentication/best-practices/CCA/ConfidentialClientApp.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<ProjectUISubcaption>ASP.NET Core</ProjectUISubcaption>

docs/azure/sdk/snippets/authentication/best-practices/PCA/PublicClientApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net9.0-windows</TargetFramework>
5+
<TargetFramework>net10.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<UseWPF>true</UseWPF>

docs/azure/sdk/snippets/authentication/brokered/console-app/BrokeredConsole.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ProjectUISubcaption>Linux</ProjectUISubcaption>
77
</PropertyGroup>

docs/azure/sdk/snippets/authentication/brokered/console-app/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/// Get the handle of the console window for Linux
1111
/// </summary>
1212
[DllImport("libX11")]
13-
static extern IntPtr XOpenDisplay(string display);
13+
static extern IntPtr XOpenDisplay(string? display);
1414

1515
[DllImport("libX11")]
1616
static extern IntPtr XRootWindow(IntPtr display, int screen);

docs/azure/sdk/snippets/authentication/credential-chains/CredentialChains.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

docs/azure/sdk/snippets/authentication/local-dev-account/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
summaries[Random.Shared.Next(summaries.Length)]
3636
))
3737
.ToArray();
38-
return blobs.FirstOrDefault().Name;
38+
return blobs.FirstOrDefault()?.Name ?? string.Empty;
3939
})
4040
.WithName("GetWeatherForecast")
4141
.WithOpenApi();

docs/azure/sdk/snippets/authentication/local-dev-service-principal/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
summaries[Random.Shared.Next(summaries.Length)]
3737
))
3838
.ToArray();
39-
return blobs.FirstOrDefault().Name;
39+
return blobs.FirstOrDefault()?.Name ?? string.Empty;
4040
})
4141
.WithName("GetWeatherForecast")
4242
.WithOpenApi();

0 commit comments

Comments
 (0)