C
C#2w ago
saki

✅ 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.
No description
5 Replies
Angius
Angius2w ago
cd into Main and run from there Or pass the project path to the command
jcotton42
jcotton422w ago
Are 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
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
saki
sakiOP2w ago
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
MODiX
MODiX2w ago
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.

Did you find this page helpful?