I'm new to Unity and can't find how to get it working with Visual Studio 2019 properly.
I just installed Unity 2020.3.13f1 (LTS) from the Unity Hub as recommended for Hololens developement.
I already had VS2019 latest version installed and working.
In VS2019, I installed: Tools => Get Tools and Features => Game development with Unity
When I double click a script in Unity, VS2019 open and I get the following error: Assembly-CSharp (incomptible)
Also in Unity, I have a warning: Visual Studio Editor Package version 2.0.11 is available, we strongly encourage you update from the Unity Package Manager for a better Visual Studio Integration
Update I fixed the warning (see below) but still have the error in Visual studio
In Unity, I updated the package: Window => Package Manager => Visual Studio Editor => 2.0.11
I also did: Edit => Preferences => External Tools => Regenerate project files
I now have all latest Unity package versions:
But I still have: "Assembly-CSharp (incomptible)", How to get valid solution in Visual Studio ???
Have had this issue for months... After numerous different posts/guides on this issue, I found just right clicking and hitting "Reload project with dependencies" for each project worked.
Now this was after fully updating Visual Studio and Unity, uninstalling the VS Unity tools, reinstalling, and reconfiguring visual studio tools in Unity... Figured I'd add this to to the list of things to try because it worked for me!
You should probably try right clicking the file and choose reload.
When I tried it Solved my issue
I deleted my project and created a new one and everything is fine now in Unity and Visual Studio (All references and scripts).
Related
When I try to install the Monogame extension into Visual Studio 2022, it straight up does not show with the right extension.
it is not listed on the extension list:
(image of list)
i have the .NET framework installed into visual studio, (but I did that after installing the actual vs program)
does anyone have any idea why this is happening?
MonoGame 3.8.1 is out and is compatible with Visual Studio 2022!
https://community.monogame.net/t/monogame-3-8-1/17786
I can't get any types under UIElements to be picked up by Omnisharp when using VS Code or Vim. I've tried with a minimal project (clean 3d template) with Unity version 2020.3.20f1, Visual Studio Code Editor (Unity package) version 1.2.4, UI Toolkit version 1.0.0-preview.18. I've followed the guide here to get the correct compilation order of packages.
Build still works fine, but the editor's intellisense throws squiggles under all UIElements types (e.g. VisualElement, UIDocument).
Change the external script editor (Preferences > External Tools) from Visual Studio Code to Visual Studio Community 2019, then regenerate project files. This seems to work around whatever the issue with Unity is.
Downgrade to Visual Studio Code Editor v1.2.3. I have the same issue with .4
I'm getting the following error in all of my unity projects and the new projects I create. I can not find a solution for this. I even tried uninstalling Unity, Unity Hub and Visual studio. Then reinstalling but still same issue. I'm using Latest unity 2020 LTS version. I tried different versions and issue stays the same.
Library\PackageCache\com.unity.ide.visualstudio#2.0.11\Editor\VisualStudioIntegration.cs(30,18):
error CS0246: The type or namespace name 'Messager' could not be found
(are you missing a using directive or an assembly reference?)
Any help highly appreciated.
Messager is a part of the Visual Studio Editor package
(Packages/com.unity.ide.visualstudio/Editor/Messaging/Messenger.cs).
It's likely the package Visual Studio Editor hadn't been installed correctly, re-install it through Unity's Package Manager. And check that you have Game Development With Unity package installed for the editor in Visual Studio Installer.
The intellisense does not work visual studio code in OSX Yosemite. Are there any specific steps to debug this issue?
If you open a folder that contains multiple projects, such as the aspnet/Home repo, you would first need to pick a project:
NuGet 1.8 seems to have some interesting new features. Unfortunately when I attempt to update from within Visual Studio, I get the error:
Value cannot be null.
Parameter name: v1
I figured I would just install it from outside Visual Studio and see if that works better, but the download link I found
http://nuget.codeplex.com/releases
does not list any downloads for "NuGet Visual Studio extension".
How can I update NuGet?
Update
This is on Windows 7 64-bit, Visual Studio Ultimate 2010SP 1, upgrading from recent NuGet version (how do I check version number?) to NuGet 1.8.
Based on the comments, I did the following:
Closed all instances of Visual Studio
Started a new instance of Visual Studio as Administrator
Tools / Extension Manager
Select NuGet Package Manager
Click Uninstall (if you're not Administrator, Uninstall is grayed out)
Restart Visual Studio (still as Administrator)
Tools / Extension Manager
Online Gallery
Install NuGet
Restarted Visual Studio (this time not as Administrator)
Resumed work