❔ Getting a weird error and don't know how to fix it
I just tried launching a tutorial code I haven't launched in a few months and when I pressed debug, I got this error
What might be the cause of this and how do I fix it?
21 Replies
what is the tutorial code, a console app?
console app ye
do you have the proper sdk installed?
how do I check that
ah found it
open command prompt and type
6.0.301
what does your code and .csproj look like?
the csproj
and the code
$code
$paste
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/ah ye
BlazeBin - crhpkhbsgbgh
A tool for sharing your source code with the world!
are you using visual studio? what happens when you type
msbuild
in developer powershellMicrosoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
and I'm indeed using visual studio
did you move or rename your files?
try building your sln in visual studio by putting this in visual studio dev powershell
msbuild "C:\path to solution\project.sln"
doesnt seem to be an issue with your code, probably project setup somehow
try creating a new console app and just running hello world
that worked
id probably just port the code to the new console app, seems like the easiest solution then
ah ok
let me try that
it worked
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.