32 questions from the last 30 days
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>
<...
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 ...
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 ...
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 ...
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. ...
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.
...
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 ...
-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>
...
-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/...
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 ...
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 ...
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 ...
-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....
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
-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
....
-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 ...
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 ...
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 ...
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 ...
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 ...
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::...
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 -> ...
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 ...
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.
...