Skip to content

Commit 4e2b868

Browse files
committed
Remove solution file and update project files to target .NET 10.0; upgrade package references for compatibility.
1 parent 563af7b commit 4e2b868

File tree

5 files changed

+14
-45
lines changed

5 files changed

+14
-45
lines changed

containerizing-dotnet.sln

Lines changed: 0 additions & 37 deletions
This file was deleted.

containerizing-dotnet.slnx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Solution>
2+
<Folder Name="/src/">
3+
<Project Path="src/hello-containers/hello-containers.csproj" />
4+
<Project Path="src/SampleApi/SampleApi.csproj" />
5+
</Folder>
6+
</Solution>

demos.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ dotnet publish -t:PublishContainer -p ContainerImageTag=aot -p ContainerFamily=n
2525

2626
--- packages
2727

28-
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:9.0 | grep dotnet | wc -l
29-
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:9.0 | grep deb | wc -l
28+
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:10.0 | grep dotnet | wc -l
29+
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:10.0 | grep deb | wc -l
3030

31-
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:9.0-noble-chiseled | grep dotnet | wc -l
32-
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:9.0-noble-chiseled | grep deb | wc -l
31+
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:10.0-noble-chiseled | grep dotnet | wc -l
32+
docker run --rm anchore/syft mcr.microsoft.com/dotnet/runtime:10.0-noble-chiseled | grep deb | wc -l
3333

3434
--- security
3535

src/SampleApi/SampleApi.csproj

Lines changed: 3 additions & 3 deletions
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
<InvariantGlobalization>true</InvariantGlobalization>
@@ -10,8 +10,8 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.12" />
14-
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
14+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
1515
</ItemGroup>
1616

1717
</Project>

src/hello-containers/hello-containers.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<RootNamespace>hello_containers</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)