Im playing with the new Visual Studio Code on Windows 8.1 and create a new project template with the yo and i could see it running on my browser, but im not able to debug it, i set a break point in some action and it doesnt hit. On the debug option of vsCode it asks for attach a debug, but i cant find how to do it.
At the VsCode website theres a paragraph saying:
Debugging
Visual Studio Code and ASP.NET 5 are in preview and at this time debugging is not supported on OS X and Linux. Rest assured, we are working hard to bring these experiences to you in the near future.
Is there something that im missing here?
Thanks.
Visual Studio Code Preview does not support ASP.Net 5 debugging now. It only supports debugging Mono applications.
https://code.visualstudio.com/Docs/FAQ#_debugging
Related
As a beginner learning .net core making a web application, I installed Visual Studio Code version 1.43.1(user setup) and trying to make run the default application comes with
dotnet new webapi
it builds and runs in the terminal of vs code but when I goes to https://localhost:5001 in chrome it won't loads and pops up an error
Your connection is not private
And there is one more issue! when I right click on any class, there is no option for go to definition and visual studio code debugger is seems to stuck at 47% .
What I finds that this all was happening because of the visual studio code debugger. And simply by clicking on setting->check for updates will solve the problem.
I am from Visual Studio land mostly working with C# applications. Recently switched to VSCode and it has been a . good experience so far. However, I miss a particular feature from that Visual studio has but I don't VsCode does have or at least I do not know how to.
With Visual Studio, I could move control from where it currently is to any previous position by physically clicking it and dragging it to a previous position. However, I do not seem to have that option with Visual Studio Code. Is there any way for me to enable that feature in VS Code for C#?
I believe still an open issue.
https://github.com/Microsoft/vscode-cpptools/issues/1025
I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.
I'm using Visual Studio Code, as a code editor for Unity 5.
Visual Studio Code updated itself, after that I found that my C# IntelliSense seems to be broken. It doesn't show suggestions for my classes, it shows only c# syntax suggestions. I've checked all the settings, and logs so everything seems to be correct. There is right workspace settings, OmniSharp is running an no errors in Log. I've tried uninstall/install VSCode but no luck. I can't understand what is the problem, and I need your help.
Any solutions? Screenshots are below.
It may have to do with the C# Omnisharp plugin.
Support for .csproj projects has been temporarily disabled on OS X and Linux. This will impact anyone doing .csproj development on OS X or Linux (e.g. Unity, Xamarin, etc.). Rest assured that this will be restored in the near future. However, for now, you can use the Legacy C# Support extension.
https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp
How do you debug C# in Visual Studio Code on Windows?
I have an aspnet core project set up, I can build and edit it in VS Code and it works great.
I've installed the C# Omnisharp extension as per all of the getting started guides show and it's really easy to get going, except for one hugely important thing...
How do you actually debug it on Windows? Every article / blog post that I've come across only shows C# debugging with OSX or Linux.
Debugging with Mono doesn't work, I get the following:
Mono Debug is not supported on this platform (Win32NT).
And you can't install the Mono-Debugger extension on Windows - only OSX and Linux. Which makes sense, but what are the steps to do this with Windows?
I must be missing something really easy - how do I set up C# debugging with Visual Studio Code on Windows?
I've stumbled upon it myself and found the answer in instalation guide of debugger:
https://marketplace.visualstudio.com/items?itemName=Unity.unity-debug
You should check whether you have launch.json file already. If so, delete it and after clicking a cogwheel on top of debug view, select Unity Editor from dropdown.
There is also a VSCode Unity plugin, which may overwrite the file every time you start the game in the editor. To disable this uncheck the "Edit/Preferences/VSCode/Always Write Launch File" checkbox