4,794 questions
0
votes
0
answers
17
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
77
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
22
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 ...
0
votes
0
answers
10
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 ...
-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&...
-1
votes
0
answers
69
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
84
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 ...
2
votes
0
answers
39
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 ...
1
vote
1
answer
55
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
134
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 ...
-4
votes
1
answer
211
views
Visual studio throwing an error when I name my class "floor" [duplicate]
Ok so I was messing around with some OOPs in visual studio 2022 community edition in C++, when I came across such a baffling problem that I don't even know where to start searching for it.
#include &...
2
votes
1
answer
71
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
1
answer
107
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"
-...
0
votes
0
answers
16
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
32
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
1
answer
116
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....
1
vote
0
answers
95
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 ...
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>
&...
0
votes
1
answer
75
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 ...
-5
votes
1
answer
189
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+...
0
votes
1
answer
39
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
1
answer
67
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 ...
2
votes
1
answer
108
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....
2
votes
0
answers
82
views
VS Setup Project Change to Non-advertised Shortcut
I have a Visual Studio 2022 installer project I made and it currently has a primary output which creates an advertised shortcut automatically when the project is installed. However, since its ...
0
votes
1
answer
204
views
ASAN usage with Visual Studio 2022 [closed]
Using Windows 11 and Visual Studio 17.7.4. Created a new C++ console application and enable address sanitizer in project properties in « C/C++ settings». Adding the following code:
#include <...