How to compile c# in Microsoft's new Visual Studio Code?

前端 未结 4 1965
无人共我
无人共我 2020-12-02 10:35

I have installed the preview version of Microsoft\'s new code editor \"Visual Studio Code\". It seems quite a nice tool!

The introduction mentions you can p

4条回答
  •  时光说笑
    2020-12-02 11:10

    SHIFT+CTRL+B should work

    However sometimes an issue can happen in a locked down non-adminstrator evironment:

    If you open an existing C# application from the folder you should have a .sln (solution file) etc..

    Commonly you can get these message in VS Code

    Downloading package 'OmniSharp (.NET 4.6 / x64)' (19343 KB) .................... Done!
    Downloading package '.NET Core Debugger (Windows / x64)' (39827 KB) .................... Done!
    
    Installing package 'OmniSharp (.NET 4.6 / x64)'
    Installing package '.NET Core Debugger (Windows / x64)'
    
    Finished
    Failed to spawn 'dotnet --info'  //this is a possible issue
    

    To which then you will be asked to install .NET CLI tools

    If impossible to get SDK installed with no admin privilege - then use other solution.

提交回复
热议问题