Sunny Patneedi
Sunny Patneedi

Reputation: 11

Why do I get error 'File does not contain a valid CIL image' when debugging from Visual Studio Code editor?

I'm running Visual Studio Code on Max OS X and constantly seeing this error. Works fine when I run directly from Terminal using dnx .run

Any suggestions on how I can fix this?

 Error Trace from Terminal   'mono' --debug  
 --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:57332  
 'Program.cs' Cannot open assembly 'Program.cs': File does not contain
 a valid CIL image.

Upvotes: 0

Views: 11066

Answers (1)

Lex Li
Lex Li

Reputation: 63264

ASP.NET 5 is explicitly stated by Microsoft as not yet supported, and there are other debugging limitations,

https://code.visualstudio.com/Docs/FAQ

So wait, wait, wait.

Upvotes: 0

Related Questions