Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
Filter by
Sorted by
Tagged with
2 votes
2 answers
211 views

Load Custom Controls into ToolBox in .NET 8

I have a library project which is .NET8-windows: <PropertyGroup> <OutputType>Library</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <...
Inside Man's user avatar
  • 4,199
1 vote
2 answers
45 views

Resizing CMFCPopupMenu and scrolling problems

I'm using a CMFCPopupMenu to display a popup menu with a very long list of options. Difficult to put into submenus. The list is nicely scrollable with the mouse wheel and keyboard and I've enabled the ...
KokoCa's user avatar
  • 231
0 votes
1 answer
75 views

How to prevent Visual Studio 2022 from adding random using statements? I get namespace could not be found errors on code I didn't write (CS0246) [closed]

We all have to debug issues, but when Visual Studio randomly adds imports and then complains that their imports don't work, it's infuriating. Here are a bunch of using "xyz" statements, all ...
Christian Blackburn's user avatar
1 vote
0 answers
82 views

C# Memory not released unless GC.Collect() is called after Redis data fetch [duplicate]

I’m observing steadily increasing RAM usage in this service, even though the method just fetches data from Redis and does not retain it. The memory usage only drops when I call GC.Collect() manually ...
Zerr Ax's user avatar
  • 11
0 votes
0 answers
68 views

Problem with Additional Header File Directories

I have two VS2022 solutions. In both, I use the identical Directory.Build.props file. However, in one solution, I can add headers in include from these include directories, but in the other, I can't. ...
user avatar
0 votes
2 answers
57 views

How to compile zstd library with Visual Studio 2022?

I need to compile zstd library with Visual Studio 2022. But I found that zstd official github page does not support the Visual Studio 2022 version; the latest supported version is Visual Studio 2017. ...
BruceYang's user avatar
1 vote
1 answer
71 views

Got stuck while compiling with cmake using msvc 14.3

Here are some basic infos before my question. use msvc compiler inside visual studio 2022 with toolset v143 use cmake, the version is 4.0.3 the platform is windows 11 Here are the problems I met: I ...
BruceYang's user avatar
-2 votes
0 answers
67 views

This project is set to open the winforms designer in dpi-unaware mode

This is my .csproj file: <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net9.0-windows</TargetFramework> <Nullable>enable</Nullable> ...
mathdx's user avatar
  • 63
-3 votes
0 answers
49 views

I am unable to expand/collapse my code after 10 levels of indentation in Visual Studio 2022. How can I increase that number?

Although I don't usually indent that much, I feel that it necessary to do so in JavaScript when doing async/ajax calls. Because of that, I can have a dozen nested calls. So, I rely on the expand/...
eTorch's user avatar
  • 1
2 votes
1 answer
58 views

Using CommunityToolkit.Camera, how can I save picture in a particular folder?

I'm using VS2022 and SQLite to develop an app to take pictures of employees. I'm using CommunityToolkit.Camera. I tried an example on YouTube, It functions very well, but I don't know how to get the ...
formula's user avatar
  • 21
0 votes
0 answers
55 views

C#, VS2022, Monitor DPI scaling inconsistent on a single monitor

I have a very strange issue with DPI scaling and visual studio. I have two very similar C# Winforms apps that behave completely different. Both projects complain about scaling on my display when ...
Laqup's user avatar
  • 11
0 votes
3 answers
43 views

dropdown menu item doesn't drop down

I have an ASP.NET Core MVC web application. In _layout.cshtml, I have the following code, but it doesn't drop down in the menu bar it shows "manage" with a down arrow next to it below is the ...
John Finch's user avatar
-3 votes
1 answer
48 views

Referenced project error referencing package that doesn't exist

I'm getting this error in my production app class library: Assembly 'SharedKernel' with identity 'SharedKernel, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.AspNetCore.Http....
Trent W's user avatar
0 votes
0 answers
38 views

Different behaviour of Visual Studio when two users link the same code [duplicate]

My colleague can build our project, while I get the following linker errors: 26>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match ...
Pietro's user avatar
  • 13.5k
0 votes
1 answer
42 views

Why is my LINQ-to-SQL Tools tool not showing up in Visual Studio 7.14?

I installed LINQ-to-SQL in version 7.9, then noticed it didn't show up when I tried to use it. After doing some research, someone said to update visual studio to the latest, so I did that. I confirmed ...
TheMortiestMorty's user avatar
0 votes
1 answer
50 views

How do I winrt::make<>() a WinUI 3 Page?

So, I have a small snake game app built using WinUI 3 C++/WinRT, XAML workload in Visual Studio 2022 Version 17.14.8. I ran into issues while creating a new instance of a runtime class of a XAML Page, ...
Silicon Dioxide's user avatar
0 votes
0 answers
32 views

MAUI Android App "Deploy Failed" With No Errors in Visual Studio 2022

I inherited a MAUI app that is driving me insane. The application itself builds properly in Visual Studio 2022 but when I try to deploy it to the emulator, it just says "Deploy Failed" but ...
BlueishVelvet's user avatar
0 votes
0 answers
29 views

SQLite is missing as DataSource in Visual Studio 2019

I used to generate and print reports in Visual Studio 2015 using SQLite databases. Creating reports with RDLC was very easy — I could design them and print directly on A4 paper. ORM use was like ...
Rahul Kumar's user avatar
0 votes
0 answers
40 views

Color change for document's navigation window

I want to change the color of the selected item in the the following navigation window: It is responsible for switching files, and is usually bound to the keyboard shortcut Ctrl + Tab: Here is the ...
Grzegorz Krug's user avatar
0 votes
0 answers
27 views

Visual Studio 2022 "Calculate code metrics" option not showing up for aspx websites

The Visual Studio 2022 "Calculate code metrics" option is not being shown for .aspx websites. It is showing up only for Windows Forms solutions. But my website has no solutions or .csproj ...
user3103982's user avatar
0 votes
0 answers
30 views

How do I read the file from code using ASP.NET? [duplicate]

I am working with ASP.NET on .NET 4.7.2 and I'm trying to read a .htm file, but I get an error: Could not find a part of the path 'C:\Program Files\IIS Express\~\Resources\email.htm Here's my code ...
Manny's user avatar
  • 150
0 votes
0 answers
35 views

How to make "align wrapped arguments" a default formatting behavior in Visual Studio 2022

I want this kind of long parameters list to wrap automatically on saving or running formatter ctrl + k + d. And not the wrapping from Options => Text Editor => C# => General Not this: I know ...
NoName's user avatar
  • 225
-3 votes
1 answer
42 views

Compile boost library failed with the version 1.81.0

Here are some basic infos: windows 11 visual studio 2022 with toolset v143 msvc compiler boost library with version 1.81.0 Here are the commands I ran: # in boost root dir ./bootstrap.bat # run b2 ....
BruceYang's user avatar
-1 votes
0 answers
23 views

Specify the path to the executable file in "External Tools" in VS 2022

Let’s say I’m creating a C++ project using Cmake, and I want to call the executable file selected in “Select Startup Item” using x64dbg to debug it. What should I specify in Arguments in External ...
SmokeyMcPot's user avatar
0 votes
1 answer
26 views

Sharing and auto inclusion of razor class library static assets via MSBuild <AutoImportReference> tag

I've used GitHub copilot to create an app to test auto inclusion of static assets through intermediary RCL. I have a BlazorWasm project references a RCL project. RCL-A is for components and some ...
PersyJack's user avatar
  • 2,002
0 votes
1 answer
17 views

Using IntermediateOutputPath Not copying to Target Path

I have a Website Application that I use the Publish option to write the output to a local folder which I then zip up and move to our deployment server. We upgraded out packages and started to get an ...
Jim's user avatar
  • 11
0 votes
0 answers
13 views

Error: "Unable to set the next statement. The attempt to unwind the callstack failed." in VS2022, but VS2019 works

I am unable to move the next statement pointer in VS2022 outside the catch block if an Exception is thrown. If I run this code in a VS2022 (17.14.4) Unit Test Project (.Net 4.81), set a break point on ...
RESC's user avatar
  • 1
0 votes
0 answers
25 views

Unloading a Project Before Opening a Solution in VS 2022

I'm trying to open a solution for the first time in VS 2022. The solution consists of many different projects. For some reason it always fails when opening one particular database project. Right now ...
ichachan's user avatar
  • 693
0 votes
0 answers
11 views

While installing VS template from a private nuget source, it is giving error that template not exists. I can see the template under the source

C:\Users\pradeep.tyagi>dotnet new install GM.MicroService.Template::1.1.2482 The following template packages will be installed: GM.MicroService.Template::1.1.2482 Warning: GM.MicroService.Template::...
Pradeep Tyagi's user avatar
0 votes
0 answers
21 views

Visual Studio 2022 - Breakpoints Window - Can't reduce font size - Font quite BIG

I can't seem the resize the font in the Breakpoints windows of VS (Debug -> Windows -> Breakpoints). I tried to tweak all the options under fonts and color: "Tools -> Options -> ...
Tibz's user avatar
  • 9
0 votes
0 answers
21 views

Route Attribute Visual Studio 2022 Color Scheme

How Do I change the color scheme for [controller] (the red portion) below, what is the correct color scheme item? I cannot seem to find the right setting I have tried numerous settings, but can't ...
Jason's user avatar
  • 3,980
0 votes
0 answers
86 views

Failing Build Tasks with Dynamics 365 Framework Tools

Getting the following error: Failed to add assembly redirects to test platform configuration files. Please open the output window pane ‘Dynamics 365 for Finance and Operations’ to see more details. ...
Ahmad Abomado's user avatar