Unity Code Snippets not auto-completing in Visual Studio Code - c#

I've come across a bug in Visual Studio Code involving the Unity Code Snippets extension and its auto-complete function.
After installing Visual Studio Code, in some cases, when you open the program you will get a notification that states "The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path."
This will cause a bug in the Unity Code Snippets extension causing it to not auto-complete the code once inputted into the IDE.

To fix this issue:
1.) Click on the .NET Core SDK link that pops up in Visual Studio Code or simply google .NET Core SDK.
2.) Before installing .NET Core SDK, close Visual Studio Code.
3.) Re-install .NET Core SDK.
4.) Re-open Visual Studio Code and the auto-complete feature should work now!

Related

Errors in my debugger environment, does an upgrade exist?

As mentioned yesterday, I'm having some issues with my debugger (sometimes it shows wrong values).
This morning I almost exploded on this particular case:
I was interested in information about the DB, used by my application, so I put a breakpoint on a line, where the corresponding object is used. As the debugger said that particular object is null, I was extremely surprised being capable to the following line, as you can see in the screenshot.
For me, this is the clearest proof that my debugger is so bogus and I would like to update it, but I don't know how. My current visual studio about mentions the following:
In text format:
Microsoft Visual Studio Enterprise 2017
Version 15.9.44
VisualStudio.15.Release/15.9.44+28307.1800
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Enterprise
Microsoft Visual Studio Tools for Applications 2017 00370-00007-85954-AA413
Microsoft Visual Studio Tools for Applications 2017
Is there a known issue for this particular visual studio version, .Net framework version, Telerik version, ...?
Version 15.9.44 is, as of today, the latest available build for VS2017. You should consider upgrading to VS2022. To upgrade, just download the latest visual studio installer from microsoft (https://microsoft.com/vstudio). It lets you select the version to install. You can install VS2017, VS2019 and VS2022 in parallel (given enough free disk space).

visual studio c# extensions missing

I've search the web and found questions from 3-9 years ago.
My problem is that I can't find anywhere the .NET standard or Windows Console Application or Windows Desktop Application or class Library for C#.
When I had Visual Studio 2015 - it was there by default.
Today I have Visual Studio 2017 and window 10 and I can't get my things together.
Are they canceled?
What is the other option?
When I look at my New project library -> Online -> Visual C#
There are many different applications but non of them seems to come from Microsoft.
Meanwhile I've got a .NET Core API Solution template but it has a lot of errors.
Please help
visual studio c# extensions missing
Just like Joe said, you should use Visual Studio installer to install the modules you need. Visual Studio 2017 use the a new way to install Visual Studio! In the newest version, MS have made it easier for you to select and install just the features you need. MS have also reduced the minimum footprint of Visual Studio so that it installs more quickly and with less system impact than ever before.
After the installer is installed, you can use it to customize your installation by selecting the feature sets—or workloads—that you want.
For the .NET core API project, you need install module .NET Core cross-platform development.
Check the document Install Visual Studio 2017 for some more details.
Hope this helps.

Visual Studio Express .net framework 4.5.2

What I'm trying to make is an application with browser window in it. I'm trying to make it with CefSharp. This link says it is ok to do it in Visual Studio Express.
And I can't find how to do this point: Please be sure to set the minimum .Net version for the project to be at least .Net 4.5.2.
I have installed developer pack 4.6.1 from here. But I still get an error CefSharp requires .NET 4.5.2 or higher.
I have found, that it can be done when you create a project, but seems like that works only for Visual studio (not express). I have found, that express has it in properties - application tab. But I don't have such tab there, I have just startup project, project dependencies, debug source files and configuration. How can I do this?
This is solved, community edition helped.

cannot debugg vNext web app in vs 2015

I cannot debugg Asp.Net 5 project in my Visual Studio 2015. First when I open app I get message box with information:
Cannot find DNX SD version 'dnx-clr-win-x86.1.0.0-beta3'.....'dnx=clr-win-x86.1.0.0-bet5' will be used as the solution DNX SDK version for this session.
Then when I click Start to debbug app I get alert box:
The debugger cannot continue running the process.Unable to start debugging.
Even when I create new project -> Asp.Net 5 preview template -> web application the behavior is the same. When I was using CTP version of VS 2015 everything worked but I had to change to VS 2015. I also cheked PowerShell version and it's 4.0.
I have no Idea what could be the reason. Any help appreciated.
I think you need to install the correct DNVM,
you can read about it here.
Or change versions of packages that you use.
Put in cmd:
dnvm list
look what SDK version is default and then set in global.json and project.json same version.

Debugging Roslyn Analyzer

I am working on writing a DiagnosticAnalyzer. I was able to unit test it just fine. I wanted to try it out in Visual Studio. The VSIX project that got created seems to be working. When I set that to the default project and Run the solution another instance of VS launches and I can see that my VSIX got installed. However when I set breakpoints it shows that the symbols aren't loaded and the breakpoint won't be hit. Anyone have any ideas why this would happen?
Have you made sure, that you have installed the correct version of the ".NET Compiler Platform SDK Templates" extension? I had the same problem and noticed that I had installed the wrong version. I'm using CTP 6 of VS2015 so I had to install ".NET Compiler Platform SDK Templates for CTP6" (Visual Studio Gallery). After that I've been able to debug the analyzer extension just like any other program.

Categories