4,795 questions
1
vote
1
answer
82
views
Prevent Visual Studio from autocorrecting (in this case quotes don't overwrite)
If I select something and then type quotes, it doesn't replace as expected, it just puts quotes around the selected text.
select
type one quote (")
instead of the expected
or
How do I ...
-1
votes
1
answer
50
views
Having issues launching Visual Studio 2019 and creating standalone .EXE in Visual Studio 2022 like in Visual Studio 2019 [closed]
My habits have been ruined lately since a windows update (it seems) corrupted a file in .Net Framework, named clr.dll, preventing Visual Studio 2019 from launching (and not only that software). It ...
0
votes
1
answer
43
views
Why isn't my VSIX extension for VS 2022 enabling?
I have written a VSIX extension to bring my "version" of ChatGPT into Visual Studio 2022. I haven't even gotten to the wireup with Chat GPT phase yet. All I've done thus far is write it to ...
-1
votes
1
answer
57
views
Publish Failed, but able to build successfully, and run
My project is able to build and run, but when I want to publish the project, I get this :
Warning As Error: Detected package downgrade: System.Net.NameResolution from 4.3.0 to 4.0.0. Reference the ...
Advice
0
votes
4
replies
45
views
Visual Studio 2022 Suppressing 'Warning As Error' at a solution level
I'm working on updating an older solution at the moment, part of this is changing to referencing newer versions of some NuGet packages, where there are vulnerabilities and such.
This part is causing ...
-4
votes
0
answers
109
views
The error line is not present in build output, how can I get it there?
I'm building a Visual Studio solution, consisting out of 54 projects. There are several error lines, the first is:
The system cannot find the file '!(bindpath.bin)\somefile.dll'.
In the output ...
0
votes
0
answers
37
views
Windows DDK does not contain a km directory
I'm trying to do some driver development work with Visual Studio 2022. I'm looking at this article. I have downloaded everything that is listed with the VS2022 installer and had no installation issues,...
0
votes
0
answers
64
views
ASP.NET WebForms: Adding StaticFileModule Rule for XML causes “Duplicate Entry” error and breaks Index.aspx
I'm running into a specific issue with my web.config when trying to serve XML files.
As soon as I add this rule:
<add name="XmlFile" path="*.xml" verb="GET,HEAD"
...
Best practices
1
vote
7
replies
97
views
How to use in the same piece of code two different libraries with exact same declarations
I have two numerical maths libraries given by DLLs (I am under Windows) and header files. (I can't modifiy the headers and anyway there are dozens of them. I also don't have have access to a code that ...
0
votes
0
answers
27
views
Change the user in source control explorer
Opening Visual Studio today, I was asked for credentials for our TFS server and unthinkingly entered the admin credentials. Now, whenever I create a workspace in Source Control Explorer (SCE) it is ...
0
votes
0
answers
34
views
How to change the font size in tooltips?
I was able to change the header font size (like this) but not the content itself.
This is how changed the tooltip header font size:
Tools → Options → Environment → Fonts and Colors => Editor ...
-1
votes
1
answer
82
views
Error LNK2001: unresolved external symbol __imp____iob_func
I am migrating a C++ project from VS2012 to VS2022.
Here is the build error I have, pls let me know how to resolve this, Thanks.
##[error]FlexLib.lib(lm_redir_std.obj)(0,0): Error LNK2001: unresolved ...
0
votes
0
answers
11
views
Watch an expression at a specific call stack entry?
In Visual Studio 2022, C# project, I need to keep an eye on an expression that's valid only in a specific method, but I need to keep an eye on it even when I'm stepping through called methods, and ...
0
votes
0
answers
39
views
Build on save no longer working in vs 2022 - 17.14.20
This only happened a few days ago and I usually keep on top of the updates in vs 2022. When making a change the the code behind for a razor partial view - hitting save would auto-build the changes and ...
-2
votes
1
answer
45
views
C# Visual Studio 2022 build action does not copy file in subdirectory to output directory
I have a file that needs to be in the output directory for a project to run properly. If this file (a 3rd party dll) is in the main project directory with "Build Action" set to "None&...
4
votes
1
answer
175
views
MSVC 14.38.33130: Does std::atomic_ref::is_lock_free have a bug? It returns true for a 1024-byte struct
I am encountering suspicious behavior with std::atomic_ref::is_lock_free() in Microsoft Visual Studio's C++ compiler (MSVC version 14.38.33130). The method returns true for a very large structure (...
-1
votes
0
answers
96
views
Slowly Changing Dimension Wizard Error in Visual Studio 2022 - "Constructor on type not found"
Problem Description
I'm unable to use the Slowly Changing Dimension Wizard in Visual Studio 2022 with SSIS. I get different errors on subsequent attempts:
First attempt:
Method does not exist. (...
0
votes
0
answers
75
views
Variable in Quickwatch window in VS 2022 not showing all its members but only three dots
I am debugging a solution in VS 2022 with two projects. The startup project is an ASP.Net Core application that references a dll project in the same solution, with both projects targeting .NET 8. ...
0
votes
0
answers
87
views
Why does Visual Studio mention the symbol loading to be disabled by Include/Exclude setting? [duplicate]
I'm debugging a C++ program, and in order to do that, I'd like to have a look at objects, defined in imported libraries. However, the "Modules" window mentions some symbols not to be loaded ...
3
votes
1
answer
133
views
How to manually load a native visualiser during debugging in Visual Studio 2022?
I'm working with COM objects, which means I need to debug SAFEARRAY objects.
It looks as follows in the watch-window:
receivedData 0x007cc980 safearray of UI1, [rank]=1 _variant_t
safearray ...
2
votes
0
answers
45
views
How to add icon before text in CompartmentShape (Domain-specific language VS Tool)
I am trying to create UML-like diagram tool in Visual Studio 2022 which supports composition and aggregation. I know that Visual Studio 2022 has a Class Designer (.cd file extension) but it is missing ...
-3
votes
0
answers
52
views
No Signing Tab in Visual Studio 2022 C++
I would like to sign my locally build application.
Application code is C++ / MFC, build for 32 Bit. It is a legacy application which should be replaced by new one in one - three years, so no much ...
1
vote
1
answer
74
views
Debugging C# project reports module metadata is invalid
I've been working with this C# project in VS2022 for months with no problems. All of a sudden when I try to debug and view content of variables I get:
Unable to evaluate within module 'MyModule' (...
-3
votes
1
answer
73
views
How to solve the install plug-in in VS 2022?
I tried to install theme in Vs 2022, but I encountered this problem. I search a lot of solution in Bing index, but most of them are not useful for me. How to solve this problem? After I download the ...
3
votes
1
answer
145
views
How to create a dialogbox main window in C using Visual Studio 2022?
I just installed Visual Studio 2022 and I'm trying to get an application working with a dialog box as a main window in order to make the GUI easier to produce. But the thing is that I've found nothing ...
0
votes
0
answers
80
views
Debug configuration build with OR'ing std::wregex constansts throws an unexpected std::regex_error exception
I'm compiling this with VS 2022 C++ compiler, as "ISO C++20 Standard (/std:c++20)" for a Debug configuration.
How come this throws the following std::regex_error:
regex_error(error_backref):...
0
votes
0
answers
46
views
Visual Studio 2022 Community edition - Missing System.Windows.Forms? [duplicate]
I am starting building a library (.dll) for EPlan in C#.
And i will use System.Windows.Forms.
If i create a Windows application, there are no issues, but it can't find the System.Windows.Forms when i ...
2
votes
1
answer
79
views
Assembly-CSharp not loading when I open my Unity scripts written with C# in Visual Studio 2022
When I open my Unity scripts in Visual Studio 2022, I am greeted with this error:
I tried deleting all .csproj files before opening in VS and also tried reinstalling VS and Unity. The file being ...
0
votes
0
answers
64
views
Increase the maximum amount of lines in Visual Studio's output window
As explained in "NuGet Pack ..." error: The user name or password is incorrect. Where is "NuGet Pack" getting its information from?, I'm attempting to build a solution consisting ...
0
votes
1
answer
111
views
"NuGet Pack ..." error: The user name or password is incorrect. Where is "NuGet Pack" getting its information from?
While building my C++ application, the postbuild event contains the following command:
NuGet pack "$(ProjectPath)"
-OutputDirectory "$(TargetDir)NuGet"
-...
6
votes
1
answer
592
views
.NET MAUI app completely broken after Visual Studio 17.14.17 update - .NET 8 project no longer builds or deploys (was working fine before)
Updated to Visual Studio 17.14.17, and my previously working .NET 8 MAUI project is now broken — random build errors, IntelliSense failure, and runtime issues. CLI works, VS doesn’t. How can an IDE ...
0
votes
0
answers
20
views
Visual Studio: 3rd party SDK not being found when trying to load it via custom project type
I have a 3rd party SDK which was installed via VSIX / NuGet package.
Let's call it FoodFight/CoolKids for Windows.
I'm working on a VSIX that does a wizard implementation of this SDK as part of its ...
0
votes
0
answers
38
views
Does anyone know which Color option this is on VS 2022? I think the features official name is "Quick Action Light Bulb"?
I'm trying to figure out which setting this in in VS2022, but can't find it. Whenever the light bulb "is being helpful" and highlights a section of code, it becomes nearly unreadable when ...
0
votes
0
answers
34
views
Options for VS Code's built-in CodeLens feature. I want to see the reference numbers but not vertical lines
I am currently using VS Code (version 1.105.1), and I have noticed an annoying detail. I switched my IDE from Visual Studio 2022 to VS Code while working on a C# project. However, I noticed a ...
1
vote
0
answers
160
views
Address sanitizer error CHECK failed: Interception failure, stopping early on windows 11, visual studio 2022, x86 project
Recently I have to update from windows 10 to windows 11. I'm using address sanitizer with Visual Studio compiler.
Before update now it was working fine but after switching from win 10 to win 11. I get ...
1
vote
1
answer
129
views
Can't find DLLs for linking OpenCV to project [closed]
I am using Visual Studio 2022 and CMake to build my project.
In a third_party directory under the project root, I extracted the OpenCV build from the OpenCV 4.12.0 windows downloader.
In a CMakeLists....
2
votes
1
answer
127
views
Visual Studio 2022 powershell terminal colours glitching out
I'm having an issue with the Powershell terminal in Visual Studio 2022 (currently on 17.14.16, but it's been here for months at this point, ever since I started using that terminal). Whenever I type ...
1
vote
0
answers
102
views
How do I get intellisense working, at least minimally for /arch:AVX512, for clang-cl in Visual Studio 2022?
I'm working with several msvc projects that I want to also compile with Visual Studio clang-cl. The msvc projects compile fine with no errors (intellisense errors or otherwise). Changing the platform ...
0
votes
0
answers
40
views
Filtering SonarQube Issues in Visual Studio 2022
I'm using SonarQube with Visual Studio 2022 (connected mode) and looking for the best way to filter SonarQube issues in the error list.
Goal: easily isolate SonarQube issues from compiler warnings, ...
1
vote
0
answers
32
views
dotnet build fails, but Visual Studio 2022 runs the project
I wrote rules in .editorconfig:
[*.cs]
csharp_style_namespace_declarations = file_scoped:error
dotnet_diagnostic.IDE0161.severity = error
And added this to Directory.Build.props:
<Project>
&...
1
vote
0
answers
65
views
Visual Studio 2022 Build Insights trace file empty
I'm trying to analyse our build and see if anything can be sped up and using Build Insights including "Collect template instantiation".
This works for small portions of the solution, but it ...
0
votes
1
answer
87
views
VS2022 where is VersionPrefix defined?
Under Project Properties in Package > General the field Package Version has per default VersionPrefix defined.
Where is this VersionPrefix defined?
I have also the fields 'Assembly version', 'File ...
1
vote
1
answer
259
views
How do I correctly nest multiple (partial class) files under a Blazor component? [closed]
I can get each of the component's class (partial class) files to nest in the IDE's solution view under its .razor file, but it insists on going a step further and creating a hierarchical tree in this ...
-5
votes
1
answer
208
views
How do I get my existing MSVC project to compile with the Visual Studio 2022 Clang compiler?
I have an existing c++ project that compiles fine with msvc, and I'm trying to get it to compile in Visual Studio 2022 with LLVM (clang-cl). At the moment I'm using C++ Language Standard Preview ISO C+...
1
vote
1
answer
94
views
.razor code not recognized (even in new blazor project)
Opened a blazor project for the first time in a while and suddenly no code or components are recognized (even on newly created projects):
When I hover over components no auto-completion suggestions, ...
0
votes
1
answer
40
views
Unable to open / upgrade SSDT 2015 package in Visual Studio SSDT 2022
Currently all of our SSDT packages have been created with SQL Server Data Tools 2015
We are looking to upgrade to SSDT 2022.
I installed Visual Studio 2022 with the following selected during setup:
...
0
votes
0
answers
77
views
How to trigger code completion in Visual Studio
Visual studio 2022 sometimes shows code suggestions like this. How do I trigger this suggestion (for example when I dismiss it)? I search in settings and shortcut but I couldn't find anything.
I don't ...
0
votes
1
answer
74
views
"System.IO.Ports is currently only supported on Windows." on .net 8.0 / Raspbian
i am trying to run a .net 8.0 application on Linux / Raspbian with System.IO.Ports, i have done this previously with the same setup with no issues.
This time i am getting this exception when running ...
0
votes
0
answers
164
views
Visual Studio 2022 CMake, the C compiler is not able to compile a simple test program
I have been trying to build a C++ program using CMake, but the build failed, allegedly because "the C compiler is not able to compile a simple test program".
The error:
RC Pass 1: command &...
2
votes
1
answer
115
views
C# interactive console: how to fix error CS0234: The type or namespace name 'RSA' does not exist in the namespace 'System.Security.Cryptography'?
I wanted to play around with the .NET cryptography classes in the C# interactive console in Visual Studio 2022 (v17.14.16). I tried creating the default instance of the System.Security.Cryptography....