C
C#3y ago
CoolBlu_e

❔ cant generate assets for build and debug

ideas?
19 Replies
JakenVeina
JakenVeina3y ago
I have very little idea what you're talking about gonna need more context what says "it can't locate the .net core project"? what is generating assets for build and debug? what kind of project even IS this?
CoolBlu_e
CoolBlu_eOP3y ago
JakenVeina
JakenVeina3y ago
VS Code that explains why I have no idea what's going on
reflectronic
reflectronic3y ago
what happens when you open the Debug section on the left
CoolBlu_e
CoolBlu_eOP3y ago
lemme try uh when i hit run and debug nothign happens but at least now i have a launch.json
reflectronic
reflectronic3y ago
can you show what you see
CoolBlu_e
CoolBlu_eOP3y ago
lemme send a video
CoolBlu_e
CoolBlu_eOP3y ago
reflectronic
reflectronic3y ago
you don't want ".NET 5 and above", you want "C#" yes, it is very confusing, but the extension is new so there are some issues
CoolBlu_e
CoolBlu_eOP3y ago
oh
reflectronic
reflectronic3y ago
personall though i would use "Show all automatic debug configuraions"
CoolBlu_e
CoolBlu_eOP3y ago
no c# project is currently loaded :/ but i am in onr one
reflectronic
reflectronic3y ago
have you, uh, tried restarting VS Code
CoolBlu_e
CoolBlu_eOP3y ago
ill try]
Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Console.dll: 'Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.'
at System.ConsolePal.ReadKey(Boolean intercept)
at projectacsv.Program.Main(String[] args) in /Users/ardaekenerle/Desktop/projectacsv/Program.cs:line 10
Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Console.dll: 'Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.'
at System.ConsolePal.ReadKey(Boolean intercept)
at projectacsv.Program.Main(String[] args) in /Users/ardaekenerle/Desktop/projectacsv/Program.cs:line 10
line 10:
Console.ReadKey();
Console.ReadKey();
reflectronic
reflectronic3y ago
you need to switch to the integrated terminal open VS code preferences search for "csharp.debug.console"
reflectronic
reflectronic3y ago
change it to this one
reflectronic
reflectronic3y ago
you can also use external one i guess, whichever one you like more
CoolBlu_e
CoolBlu_eOP3y ago
ty!
Accord
Accord3y ago
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.

Did you find this page helpful?