Skip to content

Commit d4f2e3a

Browse files
authored
Merge pull request #173 from sboldyreva/dotnet-nuget
Add NuGet info for .NET
2 parents 1c98f0a + 331c827 commit d4f2e3a

File tree

1 file changed

+60
-10
lines changed

1 file changed

+60
-10
lines changed

docs/els-for-languages/dotnet/README.md

Lines changed: 60 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Endless Lifecycle Support (ELS) for .NET 6 from TuxCare provides security fixes
1313

1414
## Supported .NET 6 Versions
1515

16-
**SDK 6.0.428**
16+
**SDK 6.0.x**
1717
The .NET SDK (Software Development Kit) is the recommended option if you plan to develop, build, test, or publish .NET 6 applications. It includes:
1818

1919
* The .NET Runtime, which is required to run .NET apps.
@@ -22,15 +22,15 @@ The .NET SDK (Software Development Kit) is the recommended option if you plan to
2222

2323
With the SDK, you won't need to install separate runtimes for ASP.NET Core or the Desktop environment - everything is bundled together to streamline development and deployment.
2424

25-
**ASP.NET Core Runtime 6.0.36**
25+
**ASP.NET Core Runtime 6.0.x**
2626
The ASP.NET Core Runtime contains the components needed to run ASP.NET Core web applications on .NET 6. It includes libraries and features for building dynamic web pages, RESTful APIs, and real-time communication with SignalR.
2727

2828
*Note:* If you install the full .NET SDK, you already get the ASP.NET Core Runtime.
2929

30-
**.NET Desktop Runtime 6.0.36**
30+
**.NET Desktop Runtime 6.0.x**
3131
The .NET Desktop Runtime allows you to run Windows desktop applications built with Windows Forms or WPF (Windows Presentation Foundation). It focuses on providing a smooth experience for traditional graphical apps on Windows platforms.
3232

33-
**.NET Runtime 6.0.36**
33+
**.NET Runtime 6.0.x**
3434
The .NET Runtime is the base runtime required to run console or server-based .NET applications. It's more lightweight than the SDK, since it does not include compilers, build tools, or additional libraries for web or desktop development.
3535

3636
TuxCare applies security patches to .NET 6 for the above OS versions, ensuring continued stability and security even beyond the official end-of-life date.
@@ -89,10 +89,14 @@ Note: This feature is under consideration for future development and may be avai
8989
* Check if you have .NET already installed on your system:
9090
* Open *Command Prompt* (type `cmd` in the search bar) or *PowerShell* (type `powershell` in the search bar) and run the following command:
9191

92+
<CodeWithCopy>
93+
9294
```text
9395
dotnet --version
9496
```
9597
98+
</CodeWithCopy>
99+
96100
* If .NET is already installed, the command will return the version number. If it’s not installed, you’ll see an error message.
97101
* It’s recommended that you first install the latest version of .NET before uninstalling the old one. This ensures a smooth transition without breaking the dependencies.
98102
@@ -127,14 +131,18 @@ Note: The following steps use the .NET SDK installation as an example. If you ar
127131
* Once the installation is finished, click **Close**.
128132
* Verify the installation. Open *Command Prompt* (type `cmd` in the search bar) or *PowerShell* (type `powershell` in the search bar) to confirm that .NET was installed successfully:
129133
134+
<CodeWithCopy>
135+
130136
```text
131137
dotnet --version
132138
```
133139

140+
</CodeWithCopy>
141+
134142
Example output:
135143

136144
```text
137-
6.0.428
145+
6.0.429
138146
```
139147

140148
## Start Using .NET
@@ -150,16 +158,20 @@ For a quick start, you can follow this example to create and run a simple consol
150158
* Open *Command Prompt* (type `cmd` in the search bar) or *PowerShell* (type `powershell` in the search bar).
151159
* Run the following command to create a new console application:
152160

161+
<CodeWithCopy>
162+
153163
```text
154164
dotnet new console -o MyTestApp
155165
```
156166

167+
</CodeWithCopy>
168+
157169
Example output:
158170

159171
```text
160172
Welcome to .NET 6.0!
161173
---------------------
162-
SDK Version: 6.0.428
174+
SDK Version: 6.0.429
163175
164176
----------------------------------------------------------------------------
165177
The template "Console App" was created successfully.
@@ -173,16 +185,24 @@ For a quick start, you can follow this example to create and run a simple consol
173185

174186
* Navigate to the newly created folder:
175187

188+
<CodeWithCopy>
189+
176190
```text
177191
cd MyTestApp
178192
```
179193

194+
</CodeWithCopy>
195+
180196
* Build and run the application:
181197

198+
<CodeWithCopy>
199+
182200
```text
183201
dotnet run
184202
```
185203

204+
</CodeWithCopy>
205+
186206
When executed, you should see the following output:
187207

188208
```text
@@ -195,10 +215,14 @@ The following commands are useful for managing and troubleshooting .NET installa
195215

196216
* `where.exe` dotnet locates the dotnet executable on the system. The output shows the exact path where the dotnet command is installed. By default, the .NET installation is placed in the Program Files\dotnet folder, unless a different destination is chosen during setup.
197217

218+
<CodeWithCopy>
219+
198220
```text
199221
where.exe dotnet
200222
```
201223

224+
</CodeWithCopy>
225+
202226
Example output:
203227

204228
```text
@@ -207,23 +231,27 @@ The following commands are useful for managing and troubleshooting .NET installa
207231

208232
* `dontet --info` displays information about the installed .NET SDKs, runtimes and your OS. It also verifies the .NET is correctly set up.
209233

234+
<CodeWithCopy>
235+
210236
```text
211237
dotnet --info
212238
```
213239

240+
</CodeWithCopy>
241+
214242
Example output:
215243

216244
```text
217245
.NET SDK (reflecting any global.json):
218-
Version: 6.0.428
246+
Version: 6.0.429
219247
Commit: ef6f5ce48c
220248
221249
Runtime Environment:
222250
OS Name: Windows
223251
OS Version: 10.0.22631
224252
OS Platform: Windows
225253
RID: win10-x64
226-
Base Path: C:\Program Files\dotnet\sdk\6.0.428\
254+
Base Path: C:\Program Files\dotnet\sdk\6.0.429\
227255
228256
global.json file:
229257
Not found
@@ -234,7 +262,7 @@ The following commands are useful for managing and troubleshooting .NET installa
234262
Commit: N/A
235263
236264
.NET SDKs installed:
237-
6.0.428 [C:\Program Files\dotnet\sdk]
265+
6.0.429 [C:\Program Files\dotnet\sdk]
238266
239267
.NET runtimes installed:
240268
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
@@ -250,16 +278,38 @@ The following commands are useful for managing and troubleshooting .NET installa
250278

251279
* `dotnet –list-sdks` command lists all the .NET SDKs installed on your system. It’s recommended to uninstall the old .NET version after you install a new one.
252280

281+
<CodeWithCopy>
282+
253283
```text
254284
dotnet --list-sdks
255285
```
256286

287+
</CodeWithCopy>
288+
257289
Example output:
258290

259291
```text
260-
6.0.428 [C:\Program Files\dotnet\sdk]
292+
6.0.429 [C:\Program Files\dotnet\sdk]
261293
```
262294

295+
## NuGet Repository (Optional)
296+
297+
Developers working on .NET projects may need a NuGet repository to manage and share packages across projects. TuxCare provides a shared NuGet repository, which you can add with a simple command:
298+
299+
<CodeWithCopy>
300+
301+
```text
302+
dotnet nuget add source \
303+
https://nexus.repo.tuxcare.com/repository/els_dotnet/index.json \
304+
--name TuxCare \
305+
--username $USERNAME \
306+
--password $PASSWORD
307+
```
308+
309+
</CodeWithCopy>
310+
311+
Replace `$USERNAME` and `$PASSWORD` with the credentials provided by [[email protected]](mailto:[email protected]).
312+
263313
## Uninstall ELS for .NET 6
264314

265315
### Uninstall via Windows Settings

0 commit comments

Comments
 (0)