✅ VSCode being a bitch
I used dotnet new console -n Main to generate a new c# environment in vscode, but I can't run and when I try dotnet restore to fix whatever issue I likely have, I can't restore because:
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.Which is obviously not right because I do have a .csproj file.. and a .sln.

5 Replies
cd
into Main
and run from there
Or pass the project path to the commandAre you running restore from the vscode terminal? @saki
I suspect you’re not actually in Main when you’re running the restore command.
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
I tried that but
And I tried this too though
Ultimately it seemed to be a bug on vscode's end, because setting up another "project" folder in the exact same way allowed me to run the script as expected with no errors
TeBeCo
and also having csproj + sln in the same folder will eventually break simplified cli command at some point
Quoted by
<@689473681302224947> from #✅ VSCode being a bitch (click here)
React with ❌ to remove this embed.