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
Copy file name to clipboardExpand all lines: docs/els-for-languages/dotnet/README.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,14 @@ Note: This feature is under consideration for future development and may be avai
89
89
* Check if you have .NET already installed on your system:
90
90
* Open *Command Prompt* (type `cmd` in the search bar) or *PowerShell* (type `powershell` in the search bar) and run the following command:
91
91
92
+
<CodeWithCopy>
93
+
92
94
```text
93
95
dotnet --version
94
96
```
95
97
98
+
</CodeWithCopy>
99
+
96
100
* If .NET is already installed, the command will return the version number. If it’s not installed, you’ll see an error message.
97
101
* 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.
98
102
@@ -127,10 +131,14 @@ Note: The following steps use the .NET SDK installation as an example. If you ar
127
131
* Once the installation is finished, click **Close**.
128
132
* 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:
129
133
134
+
<CodeWithCopy>
135
+
130
136
```text
131
137
dotnet --version
132
138
```
133
139
140
+
</CodeWithCopy>
141
+
134
142
Example output:
135
143
136
144
```text
@@ -150,10 +158,14 @@ For a quick start, you can follow this example to create and run a simple consol
150
158
* Open *Command Prompt* (type `cmd` in the search bar) or *PowerShell* (type `powershell` in the search bar).
151
159
* Run the following command to create a new console application:
152
160
161
+
<CodeWithCopy>
162
+
153
163
```text
154
164
dotnet new console -o MyTestApp
155
165
```
156
166
167
+
</CodeWithCopy>
168
+
157
169
Example output:
158
170
159
171
```text
@@ -173,16 +185,24 @@ For a quick start, you can follow this example to create and run a simple consol
173
185
174
186
* Navigate to the newly created folder:
175
187
188
+
<CodeWithCopy>
189
+
176
190
```text
177
191
cd MyTestApp
178
192
```
179
193
194
+
</CodeWithCopy>
195
+
180
196
* Build and run the application:
181
197
198
+
<CodeWithCopy>
199
+
182
200
```text
183
201
dotnet run
184
202
```
185
203
204
+
</CodeWithCopy>
205
+
186
206
When executed, you should see the following output:
187
207
188
208
```text
@@ -195,10 +215,14 @@ The following commands are useful for managing and troubleshooting .NET installa
195
215
196
216
*`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.
197
217
218
+
<CodeWithCopy>
219
+
198
220
```text
199
221
where.exe dotnet
200
222
```
201
223
224
+
</CodeWithCopy>
225
+
202
226
Example output:
203
227
204
228
```text
@@ -207,10 +231,14 @@ The following commands are useful for managing and troubleshooting .NET installa
207
231
208
232
*`dontet --info` displays information about the installed .NET SDKs, runtimes and your OS. It also verifies the .NET is correctly set up.
209
233
234
+
<CodeWithCopy>
235
+
210
236
```text
211
237
dotnet --info
212
238
```
213
239
240
+
</CodeWithCopy>
241
+
214
242
Example output:
215
243
216
244
```text
@@ -250,16 +278,38 @@ The following commands are useful for managing and troubleshooting .NET installa
250
278
251
279
*`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.
252
280
281
+
<CodeWithCopy>
282
+
253
283
```text
254
284
dotnet --list-sdks
255
285
```
256
286
287
+
</CodeWithCopy>
288
+
257
289
Example output:
258
290
259
291
```text
260
292
6.0.428 [C:\Program Files\dotnet\sdk]
261
293
```
262
294
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:
0 commit comments