![]() ![]() Read our FAQ and search old posts before asking your question. Many conceptual questions have already been asked and answered. ![]() See debugging question guidelines for more info. If you got an error, include the full error message. The output you expected, and what you got instead.A minimal, easily runnable, and well-formatted program that illustrates your problem.If you need help debugging, you must include: Here's an example of a missing using directive.Welcome to LearnProgramming! New? READ ME FIRST! Posting guidelines Frequently asked questions Subreddit rules Message the moderators Asking debugging questions Select the light bulb to see suggestions on how to fix the issue. When a name is unresolved, a light bulb icon appears in the editor. Visual Studio tries to help you identify missing references. If the code references any missing assemblies or NuGet packages, you need to add those references to the project. If the errors relate to unresolved names, you probably need to add a reference or a using directive, or both. Red squiggly underlines in code or entries in the Error List show errors even before you compile and run the program. To build properly, the code must be correct and have the right references to libraries or other dependencies. In those cases, you might be able to easily fix the build. Or the code might be correct, but maybe it depends on missing assemblies or NuGet packages, or targets a different version of. If a build doesn't succeed, see the following sections for some ideas on how to get the project to build successfully. Visual Studio attempts to build and run the code in your project. Using the Start button or F5 runs the program under the debugger. To start building the program, press the green Start button on the Visual Studio toolbar, or press F5 or Ctrl+ F5. If the code you want to run is in a GitHub or Azure DevOps repo, you can use Visual Studio to open the project directly from the repo. See Develop code without projects or solutions. ![]() Open the folder by choosing Open > Folder in Visual Studio. If the code is from another development environment, there's no project file. See Start from a Visual Studio solution or project. In Windows File Explorer, look for files with the. Programs that Visual Studio creates have project and solution files. If you have a folder with many files, first check for a project or solution file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |