Project is not running with visual studio 2017 - visual-studio

I am using Visual Studio 2017.
Everything was working fine, i.e all my C# codes and projects were executing fine. But now when executing any project by clicking on the green icon/F5, it shows loading mouse symbol. And cant run the project. Can build and rebuild the solution. And also can run the project with "Browse with" option. I have tried by deleting '.vs' folder. But have no effect.

Related

How can I debug chromium in visual studio 2019?

Visual studio crashes while building all.sln. I have all the source files. Chrome.exe is also working fine. But, It's been a week, I am not able to build chromium from Visual Studio. It shows this error message.
Unable to start program* allocator_clang_newlib_x64. The system can not find the file specified.
The all.sln is a very big solution with all the Chromium source code as Visual C++ projects. It will make Visual Studio slow even on high end machine. So the recommended way to debug your Chromium fork is via a standalone Visual Studio project. You can follow the steps below:
Open Visual Studio command prompt
Navigate to your Chromium's src folder from that CLI
Open Visual Studio to debug your Chromium executable by typing the following devenv /DEBUGEXE "out\YourBuildFolder\chrome.exe"
Press F5 to start debugging your source code.
Tip: If you want to start debugging by stopping at the entry point, on Solution Explorer pane, right click that project and choose Debug -> Step into new instance from the context menu.
You can use all.sln to edit the source code and yes you have to compile it again for the changes to take effect.

Unity(2020.1.5f1) Intellisense not working on Visual Studio 2019

I created and loaded up a script via unity, however it has disabled intellisense.
I have the external script editor on unity set to visual studio, and have regenerate all the project files, as shown in the screenshot
.
I have also got the unity addon installed and running on visual studio, however intellisense is still not working.
Any ideas?
Thank you

After upgrading Unity3D project from 2019.2.12f1 to 2020.3.1f1 Visual Studio Projects flooded with CS518 errors

I installed Unity 2020.3.1f1 and upgraded one of my Unity projects to this version from 2019.2.12f1. In the Unity Editor the upgraded project built and ran and everything seemed fine.
However, when the project was opened Visual Studio 2019 hundreds of errors were flagged - the majority being CS0518 errors with messages like "Predefined type 'System.String' is not defined or imported".
Editing the Project code in Visual Studio is now impossible!
How do fix this problem?
I was able to correct this problem as follows:
Close Visual Studio
In Unity Editor 2020.3.1f1 : Edit->Preferences->External Tools
Button under Generate .csproj files Regenerate Project Files
After running Regenerate Project Files I opened Visual Studio 2019 again and the floods of CS0518 errors were gone. The VS projects behaved normally.

Visual Studio - 2019 Unable to Start Debugging

I am working with Unity.
While in Unity, I build my program. It's a very simple program. It's simply a cube that I placed on the screen.
I clicked build and a Visual Studios Solution was created.
I open up this solution in Visual Studios 2019 and I hit Start (there is no other option besides start).
This is what appears on my screen:
How can I get rid of the error message?
Edit:
I am trying to play with the Hololens emulator.
This post recommended not installing the tools for Unity when installing Visual Studio 2019, that’s why I fid not do so.
Edit #2:
Here is an image from my entire solution from Visual Studio 2019.
Visual Studio solutions can have multiple projects inside of them. Each project generally produces a binary: an .exe, a .dll or a .lib file. If you look at the solution explorer (which you showed in your screenshot), you'll see those projects there. One of the projects will be bolded, and that is the project that is currently set as "Startup project". This is the project that Visual Studio will try to launch when you press F5 or "Start Debugging".
The reason you're getting this error is because your "Startup Project" is configured to be "Il2CppOutputProject". This project builds a .dll, and you cannot start a .dll.
To fix this, right click on "Chapter_2" project and select "Set this project as Startup Project" option. Now starting debugging should start working.

How to port Visual Studio 2013 solutions to Visual Studio 2015 such that they are under the VS2015 projects folder

So I recently installed VS2015 after having using VS2013 for a bit. I actually only used VS2013 to create one VB.net project, so I would like to abandon VS2013 and use VS2015 exclusively and likely uninstall VS2013
While I was able to open and run this single VS2013 project in VS2015 just fine, I would like to move the VS2013 project over to the VS2015 project directory; C:\Users\myname\Documents\Visual Studio 2015\projects
How can I best do this?
OK got it. I simply made a copy of the old project under VS2015. Still it showed as a VS2013 project, so (with the project opened in VS2015) I performed "Save As ..." in the "File"-menu and overwrite the existing solution file. Now I can double click on the .sln file and it opens in VS2015

Resources