Getting Error like this when opening a C# script from unity-3D on Visual Studio 2019.
Required v4.7.1 which is already installed. I even tried changing it to 4.0, 4.5 and 4.8 but its still not working.
Solved. I tried installing 2020.1.5f1 Unity3d without visual studio setup at first which led on missing few component on visual studio required to run the c# project.
I tried installing again without missing any component and it worked fine.
Related
I'm new with visual studio. All help are welcome.
I'm building a very basic scene, just a cube to display in hololens using unity3d. From unity there is no problem, followed tutorial step by step provided. When the sln file open in Visual Studio, this error pops out.
Using Unity 5.6.4f1 and Visual Studio 2017 15.3
I'm getting this error. "The type or namespace name 'UnityPlayer' Could not be found" and few more similar as in image attached below.
Error list
I've tried few things mentioned in similar problem that i've googled.
i used x86 build, tried ARM build, Debug, Release all the same
tried Unity 5.4.0, 5.5.0, 5.6.2, 5.6.3
double triple check the build settings in unity
Game development with Unity is installed
checked windows 10 sdk (already installed 10.0.10240, 10.0.10586, 10.0.14393)
tried visual studio 2015
Downgrading visual studio to 2017v15.2 and 2017v15.0
got latest net framework
Use Unity 2017.1.0p5 and lasted version of VS2017.
Unity have an errors at oldest versions after the new updates of VS
Over half of our 50 man development team still uses Visual Studio 2013. Despite this, we would like to use C# 6. So we tried using this solution: https://stackoverflow.com/a/32010632/3997704.
Compilation with Microsoft.Net.Compilers works fine, as does our CI environment. However, Visual Studio shows a lot of errors in the Error List related to C# 6 features. I tried getting rid of the errors by using clean solution, rebuild, restarting Visual Studio and clearing ReSharper caches but none worked.
Even though you install the Microsoft.Net.Compilers package in your project, Visual Studio still uses the C# 5 compiler for the editor. That's why it compiles the C# 6 code, but the editor doesn't understand it. Unfortunately, there is no way to change the compiler editor uses and probably never will be.
So the only way for the full C# 6 support is to upgrade to Visual Studio 2015.
After exporting a Unity project to Windows Phone, I am missing a reference in Visual Studio. The reference is Microsoft Visual C++ 2013 Runtime Package for Windows.
The files and dlls exist where they have to be but there I cannot add a reference to them in the reference manager because it does not exist there. Browsing and adding them directly also brings up a error saying the dll is not compatible.
Does anyone know how this reference can be fixed?
Thanks in advance
We had similar problem caused by "incorrect" version of used Visual Studio. Unity created a project for VS2015 which had reference for the newer version of the Microsoft Visual C++ 2013 Runtime Package. When we opened the project in VS 2013, a similar problem occurred. So the solution was to:
Open it in VS 2015.
Or change reference of the library to older version.
Or have more VS versions on the machine.
Hope this help
I am using the PopupWindowAction from assembly 'Microsoft.Practices.Prism.Interactivity'
When I build my application the build succeeds and the application runs and works correctly however I loose designer support for my view due to the following error:
The type 'PopupWindowAction' from assembly 'Microsoft.Practices.Prism.Interactivity' is built with an older version of the Blend SDK, and is not supported in a Windows Presentation Framework 4 project
This issue did not occur in visual studio 2013. Can anyone suggest how I resolve the issue?
I had the exact same problem, and I finally resolved this by reinstalling Visual Studio 2015. I did this after realizing that my colleagues did not experience the same behavior.
I am trying to open this project in VS 2010. However, it fails, and I am unable to open the project. Why could this be happening?
The project is XNA.
Here is an error message:
The project file 'ShipDemo.csproj'
cannot be opened. The project type is
not supported by this installation.
XNA Game Studio is built upon Visual Studio 2008. They have not updated it to work with VS 2010 at this point.
In order to use XNA, you still need to work in VS 2008.