Visual Studio - 2019 Unable to Start Debugging - visual-studio

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.

Related

Project is not running with visual studio 2017

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.

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.

Can't load Xamarin solution after Visual Studio 15.7.3 update

After updating Visual Studio 15.7.1 into 15.7.3, I can't load my Xamarin solution that has a Xamarin.IOs project and a Net Standard 2.0 project.
The loading project window appears loading the projects, but it freezes on loading the first project and Visual Studio goes not responding. The only way to close Visual Studio at that point is by terminating it through the Task Manager.
Is there any way can I successfully open my Xamarin solution from Visual Studio 15.7.3?
This issue appears to be happening only when you try to open the solution through Visual Studio 15.7.3 itself. That is if you try to open the solution,
Through the recent link under Recent section of the Start Page in Visual Studio
Through the Open Project / Solution under Open section of the Start Page in Visual Studio
Through File > Open > Project / Solution... in Visual Studio
Solution:
If you navigate to the directory of the solution, then double click the solution file (.sln file) if .sln files are set to open with Visual Studio OR right click on the solution file and select Open with > Microsoft Visual Studio 2017
Then the solution along with the projects will be successfully opened in Visual Studio 15.7.3!
Note: There's a ticket requesting to fix this issue at, https://developercommunity.visualstudio.com/content/problem/266351/cant-load-xamarin-solution-after-visual-studio-157.html
Update:
After restarting windows, then you can reopen projects as before, directly through Visual Studio 😊
Disabled xamarin Extension
Restart VS
Reload droid project
Enabled Xamaring Extension
Restart VS
This worked for me

How to open a Visual Studio Code Folder (Project) in Visual Studio IDE

How do I open I a Visual Studio Code folder in Visual Studio 2015?
If I open it as a "Web Site", it tries to treat the node_modules directory as part of the project's normal JavaScript files and hits an error when the path exceed the maximum path length.
But I can't open it as any other project type unless I first create a project of that type and then move all the VS Code files into that folder.
Should I be trying to open it as a web site?
Or should I create a new project and then copy the files + folders into it?
Is there any advantage to having it as a project?
If I do create a project, it makes it difficult to work together with someone who is just using VS Code?
And if I use a project, which project type should I select?
Finally folder view has arrived in VS 2017 :)
You can find more details in here.
Currently there is no way to open a folder directly with Visual Studio.
Why? Because Visual Studio and Visual Studio Code only shared their name, not the idea behind it. To extend Jenny O'Reilly answer:
Visual Studio Code is a folder oriented editor
This means VSC has the same Point-of-View to your Project as the File Explorer.
Visual Studio (not Code) is a solution oriented integrated development environment (short IDE)
Instead every Project in Visual Studio needs a *.sln Solution-File as Root Component. From this point Visual Studio looks at your Project. An example would, if you copy File in your Project Folder, they wouldn't be recognized from Visual Studio. You have to add them first to your sln File, to see them. It also allows the developer to combine multiple projects (*.csproj,..) into one single Solution to build.
This means the idea behind these two editors is completely different.
Visual Studio (not code) Project-types for Web
There are Node.js Tools for Visual Studio
This will provide Node.js built-in project templates
Visual Studio 2015 comes with TypeScript templates
Workaround 1
A workaround would be a Blank Solution in which you set up your Visual Studio Code Project.
Workaround 2
Another trick would be the answer to this question. You can open your Project Folder as a Website Project.
File -> Open Website -> File System and choose the folder
Update
As you mentioned, there will be errors because Visual Studio tries to build the solutions. For the next few readers of this response, the work around for this (as John Pankowicz writes in the comment) is:
Right-click Web Site in Solution Explorer -> Property Pages -> Build -> Uncheck "Build Web Site as part of solution"
Update 2
(Thanks to JC1001 for this update)
The next version of Visual Studio (Visual Studio "15") will support opening a folder. This is mentioned in the Visual Studio Blog.
Also like in Visual Studio Code, there will be a prompt command for opening Folders. Right now you can use this in the preview version:
devenv /command “file.openfolder FOLDER_PATH”
In the future you will be able to use:
devenv FOLDER_PATH
Opinion
Personally I wouldn't recommend Visual Studio (not code) for HTML/Website projects without server-side-development, because I don't see any features. Even the intellisense suggests to me sometimes bad HTML Code (it's not the IDE's fault).
After all web projects are still text files. You can easily control group projects like this with Version Control. Visual Studio Code even provides an integrated Git support.
Visual Studio Code does not create "project files" that you can open in Visual Studio 2015. Basically, when you open up a Node website in Visual Studio, you need to re-create the folder structure in VS2015 and create a "project file".
I haven't seen any better ways of doing this, but will be happy when we can open a folder just as easilly as we can with VSCode
I'm sure it's not the best way but..
Open an existing .sln with notepad, change the names, save as [name of your project].sln.
Open with Visual Studio.

Unable to open project in Visual Studio 2013 Pro - Marmalade Project

I'm unable to open Marmalade MKB Files in Visual Studio 2013 Pro, while my other class mates can with the exact same version of Visual Studio. I've tried multiple projects but unfortunately I'am unable to open any. I've already tried to reinstall Marmalade.
The error message I get is:
Unsupported This version of Visual Studio is unable to open the
following projects. The project types may not be installed or this
version of Visual Studio may not support them.
Sounds like you may have set the mkb to be opened by visual studio as default instead of Marmalade.
So instead of Marmalade taking the mkb and turning it into a visual studio project and then opening it Visual Studio is just trying to open the .mkb file it doesn't understand.
Try right clicking on the mkb and choosing Open in Hub (or similar) from the context menu. You should be able to then open in IDE from there and have it open your project in visual studio. If you still get the same error then it means the problem is probably something else. If it works you'll have to stop visual studio being the default that will hopefully let marmalade take over again
Good Luck

Resources