Creating Files in Visual Studio

My teacher wanted me to create other files that are cs similar to his in the screenshot. Although when I go to create the file I don't have the same option
No description
No description
35 Replies
x0rld
x0rld8mo ago
you have to open the solution, you've open the folder you can double click on the sln file from your windows explorer
Angius
Angius8mo ago
Did you create the project via VS? Close VS, open the project in the explorer Make sure you have an .sln file, a .csproj file, and at least one .cs file Double-click the .sln If it works, cool. If it doesn't, let us know because it means it's a common bug with a simple fix Or just disappear, that's cool as well
x0rld
x0rld8mo ago
kappa
DragonKnightx137
I cant even fine the sln file you mean like explorer?
Angius
Angius8mo ago
Yes, the file explorer
Angius
Angius8mo ago
For example
No description
DragonKnightx137
okay I found it via irhgt lcick
Angius
Angius8mo ago
And are the files I mentioned there?
DragonKnightx137
Yes double clicked and opened
Angius
Angius8mo ago
Aight, seems like the path issue then Try this quick fix: $dotnetpath
MODiX
MODiX8mo ago
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script * it will tell you if it detects invalid Path setup * Press Enter to confirm
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/e4a8818e5caa0275cc49cc722cdfe0b65427b962/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/e4a8818e5caa0275cc49cc722cdfe0b65427b962/fix-dotnet-path.ps1) }"
Angius
Angius8mo ago
@TeBeCo let's hope your new and improved version works when
DragonKnightx137
hold on for some reason it doesnt want to copy n past e
Want results from more Discord servers?
Add your server