locked
Getting Visual Studio Code to work RRS feed

  • Question

  • I'm on Linux doing web design on a C# .net MVC razor project.  I've spent the last week trying to get everything set up to work in either VSCode but I keep running into problems running/debugging the code and I can't find good support articles that give clear instructions on how to set this up.  I've followed the instructions on several blogs and on the MS site as well but no dice.

    Here's where I'm at: I go to the debug tab, click the sprocket with the orange dot on it.  I pick .net core and it brings up the lanuch.json file.  As far as I can tell the defaults are fine so I go back and try to run the code by clicking the green arrow.  I get an error that says no task runner configured.  I click configure task runner and choose .net core.  I get a tasks.json file which again looks fine to me with the defaults.  I click run button again and I get an error that says the prelaunchtask 'build' terminated with exit code 1.  If I click debug anyway I get an error that says run 'Debug: download .net core debugger' in the command palette or open a .net project directory to download the .NET... (can't read the rest).  So I do as it says and try to download the .net core debugger and I get an error that says Error while installing .net core debugger.  When I click view log, it is empty (not very helpful :()

     So I delete the two json files I created and try again.  This time choosing C# Mono and again, I get a json file that looks happy and nice to me.  Try again but that gives an error that there is no .exe file so seems like it's not the right choice.  I'd really appreciate some help getting this set up.

    Sunday, June 5, 2016 1:44 PM

Answers

  • Yeah, that's typical Microsoft.  They had an official post that said to post here (followed link) so I did.  Seems like the product isn't ready for prime time yet.  Did some research (posting this for posterity in case someone else is searching) and I found that VSCode does not yet support MVC 4 so I'm out of luck.  Guess I'm still using a VM for now.  Oh well.  Thanks.
    Sunday, June 5, 2016 4:53 PM

All replies

  • Set what up?

    A Windows virtual machine on a Linux system?

    Installing some version of Visual Studio on a Windows virtual machine on a Linux system and getting that to work?

    Adding an MVC Razor engine plugin to some version ov Visual Studio running in a Windows virtual machine on a Linux system?

    Most of the above?

    None of the above?


    La vida loca

    Sunday, June 5, 2016 2:04 PM
  • Set what up?

    a C# .net MVC razor project.

    A Windows virtual machine on a Linux system?

    No.

    Installing some version of Visual Studio on a Windows virtual machine on a Linux system and getting that to work?

    no

    Adding an MVC Razor engine plugin to some version ov Visual Studio running in a Windows virtual machine on a Linux system?

    no

    Most of the above?

    no

    None of the above?

    yes.


    La vida loca

    I will try to be more succinct.

    OS = Linux Gnome Ubuntu 16.04.

    IDE = Visual Studio Code vs 1.1.1 

    Project = C# ASP.net MVC


    Sunday, June 5, 2016 2:17 PM
  • For whatever reason Microsoft does not currently have a forum for Visual Studio Code of any version.

    However here there is a link to the below StackOverflow location for issues with Visual Studio Code it seems.

    https://stackoverflow.com/questions/tagged/vscode

    Update: In this forum, Visual Studio General Questions, there are 10,248 threads. Of those a search returned 48 results for "Visual Studio Code". Of those 48 possibly half were about Visual Studio Code the application that you are refering to. And in alot of those people were redirected to the StackOverflow thread it seems for issues with Visual Studio Code the application.


    La vida loca

    Sunday, June 5, 2016 4:08 PM
  • Yeah, that's typical Microsoft.  They had an official post that said to post here (followed link) so I did.  Seems like the product isn't ready for prime time yet.  Did some research (posting this for posterity in case someone else is searching) and I found that VSCode does not yet support MVC 4 so I'm out of luck.  Guess I'm still using a VM for now.  Oh well.  Thanks.
    Sunday, June 5, 2016 4:53 PM
  • Yeah, that's typical Microsoft.  They had an official post that said to post here (followed link) so I did.  Seems like the product isn't ready for prime time yet.  Did some research (posting this for posterity in case someone else is searching) and I found that VSCode does not yet support MVC 4 so I'm out of luck.  Guess I'm still using a VM for now.  Oh well.  Thanks.

    You may get an answer from this forum but this is the first time I've noticed a thread about Visual Studio Code an app which I didn't know existed prior to this.

    La vida loca

    Sunday, June 5, 2016 4:58 PM
  • Thanks for Mr. Monkeyboy's help.

    Hi Bullywug1,

    You are right, VS code doesn't support the MVC app now.

    Reference:

    https://code.visualstudio.com/Docs/languages/csharp

    Due to this focus many standard C# project types are not recognized by VS Code.  An example of a non-supported project type is an ASP.NET MVC Application.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 10, 2016 6:40 AM