C
C#3mo ago
strikeouts27

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
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-8.0.203-win-x64.exe -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-8.0.203-win-x64.exe -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
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
Pobiega
Pobiega3mo ago
uhm those are linux instructions just run the .exe as you would any other exe file
strikeouts27
strikeouts273mo ago
!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
Pobiega
Pobiega3mo ago
dotnet new console C# is project based, not file based I recommend $hellworld $helloworld
Lex Li
Lex Li3mo ago
As 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.
Pobiega
Pobiega3mo ago
Thats not really helpful here. You know as well as I do that modern C# requires a project for it to actually do anything.
strikeouts27
strikeouts273mo ago
Ty
Want results from more Discord servers?
Add your server
More Posts