You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this tutorial, you create a simple utility library that contains a single string-handling method.
12
12
13
-
A *class library* defines types and methods that are called by an application. If the library targets .NET Standard 2.0, it can be called by any .NET implementation (including .NET Framework) that supports .NET Standard 2.0. If the library targets .NET 8, it can be called by any application that targets .NET 8. This tutorial shows how to target .NET 8.
13
+
A *class library* defines types and methods that are called by an application. If the library targets .NET Standard 2.0, it can be called by any .NET implementation (including .NET Framework) that supports .NET Standard 2.0. If the library targets .NET 9, it can be called by any application that targets .NET 9. This tutorial shows how to target .NET 9.
14
14
15
15
When you create a class library, you can distribute it as a third-party component or as a bundled component with one or more applications.
16
16
@@ -20,7 +20,7 @@ When you create a class library, you can distribute it as a third-party componen
20
20
21
21
For information about how to install extensions on Visual Studio Code, see [VS Code Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery).
22
22
23
-
* The [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0).
23
+
* The [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0).
24
24
25
25
## Create a class library project
26
26
@@ -36,21 +36,21 @@ Start by creating a .NET class library project named "StringLibrary" and an asso
36
36
37
37
1. Then select the location where you would like the new project to be created: Create a folder named `ClassLibraryProjects` and select it.
38
38
39
-
1. Name the project **StringLibrary**, select **Show all template options**, select **.NET 8** and select **Create Project**.
39
+
1. Name the project **StringLibrary**, select **Show all template options**, select **.NET 9** and select **Create Project**.
40
40
41
41
1. Name the project **StringLibrary** and select **Create Project**.
42
42
43
43
1. Press Enter at the prompt **Project will be created in \<path>**.
44
44
45
-
1. Check to make sure that the library targets .NET 8. In **Explorer**, open *StringLibrary/StringLibrary.csproj*.
45
+
1. Check to make sure that the library targets .NET 9. In **Explorer**, open *StringLibrary/StringLibrary.csproj*.
46
46
47
-
The `TargetFramework` element shows that the project targets .NET 8.0.
47
+
The `TargetFramework` element shows that the project targets .NET 9.0.
48
48
49
49
```xml
50
50
<ProjectSdk="Microsoft.NET.Sdk">
51
51
52
52
<PropertyGroup>
53
-
<TargetFramework>net8.0</TargetFramework>
53
+
<TargetFramework>net9.0</TargetFramework>
54
54
</PropertyGroup>
55
55
56
56
</Project>
@@ -77,7 +77,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso
77
77
Copyright (C) Microsoft Corporation. All rights reserved.
0 commit comments