Trying to install C# need help troubleshooting
I am trying to install C# on my windows machine using the following instructions.
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.203-windows-x64-installer
I have downloaded the installer and have attempted step2 to verify the installation. When I run the commands I get the following error message
C:\Users\Andrew>mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-8.0.203-win-x64.exe -C $HOME/dotnet
The syntax of the command is incorrect.
C:\Users\Andrew>export DOTNET_ROOT=$HOME/dotnet
'export' is not recognized as an internal or external command,
operable program or batch file.
7 Replies
uhm
those are linux instructions
just run the .exe as you would any other exe file
!closed
!solved
I need help trying to figure out how to create a new c# file that is not the on in the tutorial. Can you explain the fundamentals on how to do it? I have searched the visual studio code documentation and all I know how to do are the tutorials and not my own projects
dotnet new console
C# is project based, not file based
I recommend $hellworld
$helloworldAs that's too fundamental, I doubt any tutorial will even cover that.
1. Create a file. 2. Change its file extension to
.cs
for C#. 3. Write anything meaningful in it.Thats not really helpful here. You know as well as I do that modern C# requires a project for it to actually do anything.
Ty