Microsoft Q&A

Visual Studio

3,843 questions

A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.

3,843 questions with Visual Studio-related tags

Sort by: Updated
2 answers

Why are padding and margin not showing in properties tab of VS 2022

In keeping with the poor QA of VS now the properties window when selecting an XAML element no longer shows the padding or magins. If I were to publish the full list of problems I see in VS 2022 I would not get anything done. Check out the image to see…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2023-01-29T15:20:15.2933333+00:00
Lloyd Sheen 756 Reputation points
answered 2023-01-29T16:45:13.56+00:00
Umang Middha 0 Reputation points
0 answers

Where are files stored for Visual Studio CMake Projects

In a basic creation of a WSL CMake project in Visual Studio 2022, where should support files for a CMake program be stored? My CMake project needs to access a jpg, and two html files shown in the attached image. I do not know how to configure the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2023-01-29T04:35:19.2866667+00:00
BF 0 Reputation points
edited the question 2023-01-29T15:51:01.8866667+00:00
BF 0 Reputation points
1 answer One of the answers was accepted by the question author.

In MFC for a custom control: how do I define notification messages so Class Wizard recognizes them?

For an MFC custom control, how does one define notification messages sent to the parent's window so that these messages appear in Class Wizard so that we can respond or handle them?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,617 questions
asked 2023-01-28T20:49:41.57+00:00
Juan Dent 226 Reputation points
accepted 2023-01-29T14:34:49.5333333+00:00
Juan Dent 226 Reputation points
0 answers

System.exception when I create a CUDA Runtime project in VS 2022

When i try to create a CUDA 12.0 Runtime project i get System.exception. If I look in the directory there are only the .sln and the .vcxprj files. Cuda seems to work fine. cuda version: 12.0 windows 10

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,617 questions
asked 2023-01-29T14:13:52.6866667+00:00
Parents99 0 Reputation points
1 answer

Why can't run my app after visual studio update?

I have updated Visual Studio 2019 from 16.6.1 version to 16.11.23 version. The update operation was finished successfully. When I want to run my MVC project in Debug mode, nothing happens. No error is displayed, the app is not running. What do I have to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
953 questions
asked 2023-01-26T12:35:02.9366667+00:00
Ionut Dragomir 21 Reputation points
answered 2023-01-29T13:42:03.6466667+00:00
Ken Tucker 5,796 Reputation points
0 answers

Extension to Debug project with last successful build.

Hi Team, I am trying to create a Visual studio extension to debug the application with the last successful build. i.e, new build won't happen, instead it would Run the last build and attach that process to the Visual studio. I'm not sure whether VS…

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
12 questions
asked 2023-01-21T21:00:24.42+00:00
guess_me_if_u_can 126 Reputation points
commented 2023-01-29T11:06:26.4666667+00:00
guess_me_if_u_can 126 Reputation points
2 answers One of the answers was accepted by the question author.

How to compile for windows XP?

Hi! How do I compile my code for Windows XP? I found this tutorial here: https://learn.microsoft.com/en-us/cpp/build/configuring-programs-for-windows-xp?view=msvc-170&source=docs It says: To target Windows XP In Solution Explorer, open the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2023-01-22T14:34:19.36+00:00
rain 41 Reputation points
commented 2023-01-29T10:44:40.7566667+00:00
RLWA32 28,531 Reputation points
1 answer

Continiously Breakpoints in ntdll.dll in Visual C++ Visual Studio 2022 Windows 11

Hello, i have a problem in MSVC++ Visual Studio 2022 running on Windows 11 My software continiously breakpoints in ntdll.dll, then the software continues to run. Sometimes breaks in one location, sometimes in other. The thing is that i cannot make my…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
asked 2023-01-28T23:22:51.86+00:00
Anonymous
answered 2023-01-29T10:13:39.7033333+00:00
RLWA32 28,531 Reputation points
1 answer

How to see the messages associated with a custom control in Class Wizard for an MFC application?

I have a custom control that defines several notification messages but these are not displayed in the Class Wizard in Visual Studio 2022. See the empty listbox "Messages" in this screen capture of Class Wizard: How does the Class Wizard know…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,617 questions
asked 2023-01-28T14:35:17.5066667+00:00
Juan Dent 226 Reputation points
commented 2023-01-29T00:03:46.68+00:00
David Lowndes 4,231 Reputation points Microsoft MVP
4 answers

Unable to login to Visual studios 2013 upgrade 5

Hi all, we have an outage for 3 users in a project where they are not able to login to visual studios upgrade 5 2013 it shows an error like sorry we ran into a problem online service not aviable 145999-screenshot-13.png i am…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2022-04-07T10:01:11.383+00:00
commented 2023-01-28T22:20:24.5633333+00:00
Fernando Pinguelo 0 Reputation points
2 answers One of the answers was accepted by the question author.

Where is debug start action options in a C# DLL project for Visual Studio 2022

It seems that with the new interface for "debug profiles UI" in Visual Studio 2022, I can no longer find the start action options…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,922 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
asked 2022-01-25T20:21:25.81+00:00
Jackie Yang 21 Reputation points
edited an answer 2023-01-28T22:10:07.85+00:00
Reza Aghaei 2,856 Reputation points Microsoft MVP
1 answer

Inject EntityFramework DbContext in a .NET 6 Azure Function

Where do I have to put the DbContext in a .NET 6 Azure Function? builder.Services.AddDbContext<DataContext>(options => // options.UseSqlServer(context.Configuration.GetConnectionString("BlazorOrderApp"))); There is…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
Azure SQL Database
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,577 questions
asked 2023-01-21T13:03:51.93+00:00
Bernhard Sumser 101 Reputation points
edited a comment 2023-01-28T22:06:26.2366667+00:00
Bernhard Sumser 101 Reputation points
0 answers

APT2144 invalid file path

VS 2022 Preview... Trying to build and run "Notes" tutorial getting 2 APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2023-01-28T21:39:20.0033333+00:00
Scott Phillips 0 Reputation points
3 answers One of the answers was accepted by the question author.

Visual Studio 2013 Pro - The online service is not available

Hello, Until one week, I cannot log on my Visual Studio 2013 Pro. When I click on "Connect" button, I have the following error: The online service is not available. I try on 3 others PC (including private one or a new created VM) and I…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
695 questions
asked 2022-04-29T19:28:17.997+00:00
Nicolas Moreno 31 Reputation points
answered 2023-01-28T18:52:00.3066667+00:00
Fernando Pinguelo 0 Reputation points
0 answers

Visual Studio 2022 bootloader shuts down as soon as it starts.

Hello, Visual Studio 2022 bootloader shuts down as soon as it starts. My OS is Windows11. Could you help me please?

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
695 questions
asked 2023-01-28T15:13:53.2766667+00:00
Tufan 0 Reputation points
edited the question 2023-01-28T15:32:52.0766667+00:00
Dave Patrick 328.6K Reputation points Microsoft MVP
1 answer

VS C++ converting int to char (string)

Hello. I have a problem with such thing. Output is as show at the bottom of page. Can anyone know how to show text inside the edit window as number? (and how to get a number from window as text) Help pages on the internet are not readable. The output is…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,617 questions
asked 2023-01-28T11:40:41.69+00:00
Wojciech Sobiesiak 21 Reputation points
answered 2023-01-28T12:25:18.37+00:00
Viorel 82,381 Reputation points
1 answer

When I open vscode, I get an error like "unable to write program user data". Can you help?

When I open vscode, I get an error like " unable to write program user data... A system error occurred (EPERM: operation not permitted,mkdir 'c:\Users\UserName.vscode') Please make sure the following directories are…

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
12 questions
asked 2023-01-28T09:29:14.5633333+00:00
Mustafa Ensar Camgöz 0 Reputation points
answered 2023-01-28T11:49:18.59+00:00
Dimple Rane 636 Reputation points
2 answers

Visual Studio Community 2022 (64-bit) v17.4.4 not showing any compile time errors for MAUI project.

Hi, I am using Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4 for my MAUI projects but is not showing any compile time errors . is it any plugin missing?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
asked 2023-01-24T09:18:11.29+00:00
Sachin 21 Reputation points
commented 2023-01-28T11:18:43.94+00:00
Sachin 21 Reputation points
0 answers

How to see branch-misses and cache misses in Visual Studio 2022 C++?

In linux, we have "perf" command to see branch-misses. On windows, is there a corresponding tool to see branch-misses and cache misses of a C++ program?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,617 questions
asked 2023-01-28T02:57:52.46+00:00
卉航 林 0 Reputation points
edited the question 2023-01-28T02:58:16.8366667+00:00
卉航 林 0 Reputation points
1 answer

How to clear project folder location history in Visual Studio Community 2019

When starting a new project in Visual Studio 2019 Community. Once you select the type of project, you get asked to name it and select the file location for it. In the file location text box is a history pull down, in there is a network location that no…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 questions
asked 2021-05-20T14:13:11.573+00:00
Marcus Dudlee 1 Reputation point
commented 2023-01-28T00:10:03.6966667+00:00
AW 0 Reputation points