Skip to content

Commit f3209d2

Browse files
committed
Add NuGet info for .NET
1 parent bb42ca3 commit f3209d2

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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,10 +131,14 @@ 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
@@ -150,10 +158,14 @@ 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
@@ -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,10 +231,14 @@ 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
@@ -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
260292
6.0.428 [C:\Program Files\dotnet\sdk]
261293
```
262294

295+
## NuGet Repository
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)