116,196 questions
0
votes
0
answers
33
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"
...
15
votes
3
answers
7k
views
Visual Studio Diff Tool - When is Editing Allowed?
I'm using Visual Studio 2013 and tfs 2013. Sometimes I'll make a code change and click compare with latest version. The diff tool will open and allows me to edit the file in the diff tool. However ...
2
votes
2
answers
125
views
Visual Studio 2022 Theme Malfunction
kindly assist with setting dark mode theme for visual studio 2022 version 17.14.19. I have set dark mode theme under Tools>Theme but it applies partially on the application as shown on . Please ...
2
votes
2
answers
12k
views
Visual Studio 2022 Enable Web Live Preview
I wanted to try developing a website in VS but I'd really like a visual (WYSIWYG) editor. Apparently, this is available in VS. In that video, and lots of other videos and websites, it shows 'Design' ...
0
votes
0
answers
39
views
Does anybody else have issues with sideloading after updating to Visual Studio 2026?
I recently updated my Visual Studio to the newest version (2026). Since I updated, my Android devices no longer appear in the list of devices. But even worse, since the update they don't appear in my ...
9
votes
2
answers
4k
views
"Open with Visual Studio" is still showing even after uninstalling
It's kinda weird.
I uninstalled Visual Studio around 3-4 months ago but still, it shows "Open with Visual Studio" when I right-click in file explorer. And "Open with VS code" is ...
3
votes
4
answers
2k
views
Error when Compiling with Web Compiler 2022+: "The system cannot find the specified path"
I have been on this problem for quite some time.
I am using Web Compiler 2022+ 1.14.11
And Visual Studio 17.8.5
For some reason suddenly the Web Compiler won't compile my scss file anymore.
Im getting ...
1
vote
1
answer
108
views
formatting single expression methods when saving a file
single expression methods
public void Method()
{
Expression;
}
need to format in
Method() => Expression;
Advice
1
vote
1
replies
69
views
Disable focus outline color VS2026
Is it possible to disable the focus outline color in Visual Studio 2026?
Or at least change it? I would prefer something less visible than this color.
While focused on Solution explorer:
While not ...
23
votes
4
answers
41k
views
Visual Studio 2022: How to access the built in "Developer PowerShell" instead of the Windows PowerShell?
In Visual Studio 2022, you can open the Developer PowerShell from Tools>Command Line>Developer PowerShell
In the previous versions of Visual Studio, it used to open the built in PowerShell ...
-1
votes
3
answers
260
views
Can I integrate or import code from Visual Studio Code to Visual Studio?
Is there any way I can use Visual Studio Code and somehow integrate it to Microsoft Visual Studio just to use for version control after I'm done?
I mainly code with HTML, CSS, and Javascript.
71
votes
7
answers
106k
views
Target "build" does not exist in the project for Visual Studio
I'm checking out code for a project where contributors use different dev tools for coding in C sharp (C#). My .csproj file was manipulated by someone using Sharp develop and now I get 'The target &...
0
votes
0
answers
36
views
Can a .NET project template automatically add a project reference to an existing project in the solution when added from Visual Studio?
I have a system where users create .NET plugin libraries. To support this, I’ve built:
A solution template that creates:
a plugin project
a testbed console app
a project reference from the testbed → ...
5
votes
1
answer
13k
views
How to solve System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() Exception
I have a C# application who read in an SQL Server Database.
Sometimes i get an error and the apps crash.
If i look on the EventViewer, i got this :
Application : XXXXXXXXX_CLI.EXE
Version du ...
1
vote
1
answer
86
views
New line in github copilot chat in Visual Studio
How to enter a new line in github copilot chat in Visual Studio (NOT Visual Code)?
I've tried:
ENTER: submits
SHIFT+ENTER: submits
CTRL+ENTER: submits
ALT+ENTER: ignored
Using Visual Studio 2022.
3
votes
1
answer
86
views
Configure Visual Studio to decompile obfuscated code like Rider?
When navigating to the definition of something (e.g. with f12) of an obfuscated library in Rider, it will do its best to decompile the library. However, if I navigate to the same thing in Visual ...
Tooling
0
votes
1
replies
87
views
How to View Document Symbols in Visual Studio 2026?
Is there a way to display all document symbols in Visual Studio 2026?
In VS Code, I can open the Command Palette and type “@” to quickly list all symbols in the current file.
Is there an equivalent ...
-7
votes
0
answers
57
views
How to remove component from Visual Studio offline installation [closed]
I want to remove component from offline installation, but the command doesn't work, and it launches the installer every time:
C:\BT2022offline\vs_BuildTools.exe --noweb --remove anypackage
C:\...
1
vote
0
answers
97
views
CMake Error at CMakeLists.txt (project) - could not find any instance of Visual Studio
if you're getting an issue like this:
$ flutter build windows
CMake Error at CMakeLists.txt:3 (project):
Generator
Visual Studio 16 2019
could not find any instance of Visual Studio.
Unable to ...
18
votes
2
answers
8k
views
Effects of switching between /SUBSYSTEM:CONSOLE to /SUBSYSTEM:WINDOWS in a DLL
I couldn't find anything useful on the MSDN for this case. Using Dependency Walker, in the module list, I see a mixed usage of Console and GUI.
Does this have an impact when compiling a DLL?
-1
votes
1
answer
179
views
Multi-project solution using Docker Compose: added a new project and the container won't run when launched from Visual Studio
I have a Visual Studio 2022 solution with eight existing projects: three "ASP.NET Core Web API" projects, three "xUnit Test" projects, one "Class Library" project, and ...
0
votes
0
answers
17
views
How to intercept keys not defined in VSStd2K, such as Shift+Tab?
I attempted to intercept key combinations using IOleCommandTarget for commands within VSConstants.VSStd2KCmdID.
I tried BACKTAB, but it doesn't work, even though TAB can be intercepted. I suspect that ...
170
votes
10
answers
45k
views
How do you default a new class to public when creating it in Visual Studio?
When I right click in the Solution of a C# Visual Studio project and select Add... > Class... it creates a class without a public modifier. How do I get Visual Studio (2008) to default the class to a ...
8
votes
6
answers
3k
views
Turn Off XAML error underlining
This is a simple issue, and I hope someone can help
For reasons I don't think I need to explain, my XAML thinks it has some errors in it in the Visual Studio code editor (which shows as wavy blue ...
-6
votes
0
answers
89
views
visual studio not finding system.collections.generic [closed]
I am trying to use a list of a custom type and I am unable to add system.collections.generic. the List is not offering to add the using statements. I have tried adding the namespace manually and using ...