Questions tagged [visual-studio]

Use this tag if you have a specific question about Visual Studio features and functionality. DO NOT use this tag on questions regarding code which merely happened to be written in Visual Studio. Consider tagging the exact technology area your question links to and also tagging a more specific version of Visual Studio. Please mention your exact VS version, edition, and update level in your question. DO NOT use this tag on questions regarding VS Code.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

What is the path type for referencing files in html that works in both vs code and github pages deplyment?

I just deployed a simple site with github pages and found that the resource path that works in vs code is not working on github pages: This works in vs code, but not in github. This has a leading / ...
ar3's user avatar
  • 367
0 votes
0 answers
18 views

Show Disassembly without Debugging in MS Visual Studio [duplicate]

I can run my code and if debugger is halted I can show the disassembly of the current code. (Debugging->Window->Disassembly) But I want to see the disassembly of the compiled code without ...
powerpete's user avatar
  • 2,703
0 votes
0 answers
6 views

how to fix this problem with Visual studio Installer "unable to download installation files unable to check your internet connection and try again"

so i am trying to install Visual studio on my windows 7 laptop, i downloaded the installer from the official site, i opened the installer and start downloading the installation file, the download is ...
Rafat PC's user avatar
0 votes
0 answers
15 views

Cannot remote debug WSL2 C/C++ program with Visual Studio 2022 Cross-Platform settings

Please go through following MSDN question I posted: MSDN - Cannot remote debug WSL2 C/C++ program with Visual Studio 2022 Cross-Platform settings Environment (All x64) - Windows 11 (22621.2361), ...
Buddhika Chaturanga's user avatar
0 votes
0 answers
23 views

Unable to debug ASP.NET Core 3.1 apps after upgrading to VS 2022 v17.8

After updating to VS 2022 v17.8, I can no longer debug my old ASP.NET Core 3.1 apps. Creating a blank ASP.NET Core 3.1 app doesn't work either. When I try to debug the app, I get the message HTTP ...
Ken Janka's user avatar
  • 121
0 votes
0 answers
17 views

Can't apply quick action/refactoring to whole solution?

In visual studio 2022, I'm trying to refactor my code to make it more homogeneous and some of the changes I'd like to apply can be made through the "Quick actions and refactorings" menu, for ...
nalka's user avatar
  • 1,902
-1 votes
0 answers
36 views

Switching from Visual Studio IDE to VSCode/ Vim [closed]

I have coded C++ in Visual Studio 2022 for a little time now. And i have been using the solution based style of coding in C++. But i personally like to use text editors(such as VSCode, Vim etc), and ...
Bjørn Pollen's user avatar
0 votes
0 answers
14 views

Visual Studio 2022 & CMake: Calling a custom script to build x86/x64 easily

I currently call CMake recursively using ExternalProject_Add to build the x86 and x64 components in one go for a specific toolset. This generally works, but I've encountered multiple issues with it ...
big54mac's user avatar
0 votes
0 answers
11 views

Is there a way to override Visual Studio Keybindings in extension?

I am wondering if there is a way of overriding default Visual Studio Keybinding behaviours in my extension? Basically I am developing an extension and I have quite a lot of keybindings set. But ...
NopDeveloper23's user avatar
-1 votes
1 answer
24 views

Detect application-specific user activity within Visual Studio Extension (VSIX)

I would like to programmatically detect when a user is interacting with Visual Studio from within a Visual Studio extension (VSIX). I do not want any keypress or mouse event information, just a ...
majixin's user avatar
  • 183
0 votes
1 answer
32 views

Entity Framework cannot find stored procedure

I have an application that I am updating. I've added a stored procedure to the database, tested it and it is working. I then updated the ADO model in the application. The stored procedure is showing ...
C. Michael Warden's user avatar
-1 votes
1 answer
27 views

Debugging error visual studio when using c#

enter image description herelooking for help! Recently created a new application to open excel in C# on visual studio, I created one fine and then had errors. I have created a few new ones since and I ...
jdizzle92's user avatar
1 vote
0 answers
117 views

C# Entity Framework : update EDMX from model error 'EntityCommandExecutionException'

When I try to update my .EDMX with update model from database, I get the following error: Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query ...
CiarenT's user avatar
  • 11
0 votes
0 answers
17 views

Is it possible to generate a class with interface using Visual Studio Connected Services (OpenApi)

I have a unit tests in my app. Noticed, that generated class by Visual Studio Connected Services for OpenApi does not implement an interface for the API class. That means it will be not possible to ...
Alex Zaitsev's user avatar
  • 2,556
0 votes
1 answer
59 views

ReSharper make C++ IntelliSense warnings vanish

Been played by subtleties of C++ references, wondering why code wouldn't behave as expected. Someone versed in C++ pointed out what the actual error was: the lack of using a reference. The actual ...
aybe's user avatar
  • 15.5k
-2 votes
0 answers
16 views

Qt Creator: "LNK1104: cannot open file 'python311.lib'" with MSVC, but works with MinGW

I have a C++ project created with Qt Creator. It's a library, with an executable added. It uses python.h and works as expected configured as Desktop Qt 6.5.2 MinGW 64-bit (fresh Qt Installer ...
smsware's user avatar
  • 425
0 votes
4 answers
71 views

How can I send and error when I get an input that is not a number? [C#]

I want an error to appear when the client writes a symbol or a letter int n = 0; string ent; ent = Console.ReadLine(); n = int.Parse(ent); if (n.GetType() != typeof(int)) { Console.WriteLine(&...
Aitor Gallego's user avatar
0 votes
0 answers
14 views

How to Set the Global MSVC Toolset Version in Visual Studio 2022 (Not Per Project)?

I'm encountering an issue with Visual Studio 2022 ver 17.7.4 and Unreal Engine 5.3. It seems that Unreal Engine is detecting my MSVC toolset version as 14.29, but I have MSVC toolset version 14.37....
ark1974's user avatar
  • 623
0 votes
1 answer
13 views

Value range "Unit" testing

Unit testing frameworks such an xUnit or GoogleTest make it easy to run a suite of tests, and with IDE integration you are only a couple of clicks away from having a full debugging session running on ...
Zachary Vander Klippe's user avatar
0 votes
0 answers
5 views

Install Azure.Identity and all dependent packages to the gac

I was able to download the Azure.Identity and its dependancies to a folder on my machine after looking at this article - Force download of specific nuget package to local packages folder using the ...
lem's user avatar
  • 151
0 votes
0 answers
10 views

How to create a Unit Test to access Views in c#

Im new to create a Unit Tests for Service class. Im facing an issue in accessing views in my context. I have a two contexts one for writing and one for reading.Below are the sample for the context ...
SaranyaR's user avatar
0 votes
0 answers
4 views

How to build Microsoft Rocket in Visual studio

I’m setting up Microsoft rocket video analysis system in visual studio. The instructions were great up until the point where it simply says build the application. There is no menu item in visual ...
William Hutchison's user avatar
1 vote
1 answer
38 views

Is there a way to know the active solution platform in Visual Studio?

I'm creating a C# solution in visual studio where I want slightly different behaviour in some of the projects depending on what the active solution platform is set to. See below in the configuration ...
george7378's user avatar
0 votes
1 answer
27 views

MAC with Parallels windows support on visual studio

I'm a student in informatics. I've just bought the brand new MacBook M2 pro. I was hyped and wanted to start programming with a good laptop. Before the school started at the info day they told us to ...
BackTheEnd's user avatar
-1 votes
0 answers
45 views

Cannot open include file in Visual Studio

I'm getting a message that the included file cannot be opened, even though I've added it to the "Additional include directories". I also only get this error with this file. I am using ...
Fleeploed's user avatar
0 votes
0 answers
63 views

Visual Studio C/C++ : Access to call stack from the code

Is there a way to access to call stack content from the code ? There are many introspection functions in <crtdbg.h> but none about call stack. (at least, I didn't find any) I need some (MSVC-non-...
Captain'Flam's user avatar
0 votes
0 answers
18 views

Visual Studio JSON editor - how do I get rid of the schema bar?

How do I get rid of this annoying pointless bar in the Visual Studio JSON editor?
Neutrino's user avatar
  • 8,568
-1 votes
0 answers
24 views

C# Create SQL Generate Update Script Tool Program [closed]

long story short. I'm not a software developer and lately I've been transferred to R&D department. I have opportunity to discover software development and I've been assigned to create a program ...
Paul Ang's user avatar
0 votes
1 answer
23 views

Typescript Intellisense with Web Forms and npm

i'm using npm in my web forms project. Some of the modules come with typescript d.ts files or with an extra @types package. jQuery for example: https://www.npmjs.com/package/@types/jquery. Installing ...
Saftpresse99's user avatar
-1 votes
0 answers
38 views

How can i Create a Setup file for my c++ project with external libreris?

I want to create a setup file for my project however my project uses external libreries downloaded by vcpkg. when i create the setup file and run it on a different computer it does not install my ...
Daniel Shinar's user avatar
0 votes
0 answers
50 views

Table name [Table] can't be identified by Visual Studio [closed]

I made a database for my project for ASP.NET in Visual Studio. Then I made a table however after updating the table, Visual Studio itself named it as 'Table'. Now when I'm trying to run a query: ...
Alishba Mumtaz's user avatar
0 votes
0 answers
13 views

Unable to read Power BI.api NUPKG file from Visual Studio

We are trying to install/Open Microsoft.Powerbi.api.4.16.0 NUPKG file from Visual Studio. It's throwing error - "The file is not displayed in the text editor because it's binary or uses ...
kushal shirur's user avatar
0 votes
2 answers
86 views

Unable to connect to web server 'https' in Visual Studio 2022

I have two projects for the API and UI side of my project. On the UI side, I want to see the change I made with "ctrl + shift + w" on index.cshtml, but I get the error in the screenshot ...
kagan turkay's user avatar
0 votes
0 answers
36 views

How to find particular references is use in which project

i am facing below warning but not able to find out that Newtonsoft.Json.dll version 7 is use in which project. System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=7....
bhargav Patel's user avatar
0 votes
1 answer
48 views

What package contains implementation for IUserEmailStore

I am working on the project that implements two factor authentication using SMS in C#. I am trying to use the interface called IUserEmailStore in my controller - so my controller's constructor look ...
janci's user avatar
  • 201
1 vote
0 answers
56 views

Is there a way to have a central place for variables that can be used in Visual Studio projects, Xcode projects, and Makefiles?

I'm working on a fork of a cross-platform C / C++ open-source project that can be compiled for macOS, Windows, and Linux. The project uses a different toolchain for compiling for each platform: Xcode, ...
Bri Bri's user avatar
  • 2,209
-1 votes
1 answer
32 views

Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) in Visual Studio 2022 [closed]

When I am creating a new project using Visual Studio, I get this error before creating the project, and the project also is not created. Time to time I uninstall and installed but it still does not ...
Milan Withanage's user avatar
1 vote
1 answer
33 views

Add custom rule to a C# project with StyleCop in VS 2022

I can't seem to find a good tutorial to add some custom styling rules that are not already customizable in StyleCop For example, creating a rule to check for N levels of nested blocks in loops or ...
Fernando Diaz Rojas's user avatar
0 votes
0 answers
23 views

Trying to Connect Webcam to Visual Studio with OpenCV using C++

I am relatively new to coding and have to takeover a C++ project from a colleague was dropped from a class. So basically, I have to write and modify a C++ program using Visual Studio and OpenCV to ...
Russ G's user avatar
  • 1
0 votes
1 answer
34 views

Proper way to use the Windows Forms Designer on a project created with the .NET CLI?

I am working on a C# project with the general workflow of editing in whatever we want (I use VS Code personally) and building with the .NET SDK via the CLI. However, I need to create some Windows ...
PGmath's user avatar
  • 381
-1 votes
0 answers
21 views

Random Errors popping after reopening my project in Visual Studio

I am getting 3 errors: CS0103: The name 'InitializeComponent' does not exist in the current Context. Line 12 CS0103: The name 'webBrowserPanel' does not exist in the current context. Line 22 CS0103:...
Karan Shrivastava's user avatar
0 votes
1 answer
35 views

How do I use the category when writing to Debug? [closed]

I added debug lines in my code as follows: Debug.WriteLine("some debug text", "mycategory"); The debug text is shown in the Output window as expected. However, how can I add the ...
Ivan Debono's user avatar
0 votes
1 answer
37 views

Visual Studio 2022 uses decompiled dll instead of my original C# source files

I have project A which references project B (C#; .NET Framework 4.8). namespace A { public static ClassA { public static void CallA() { // ClassA of project A calls a method of ClassB of ...
koalabruder's user avatar
  • 2,794
0 votes
0 answers
24 views

How to change C# class template to generate a lean starting class? [duplicate]

When I add a new class foo.cs (via Project/Add New Item), I would like to generate the following: namespace MyNamespace; public class foo { } Instead, I get the following: using System; using System....
AngryHacker's user avatar
  • 59.7k
-2 votes
0 answers
10 views

Face problems in details fetching of invisible fields of Zendesk in admin panel from Unity Engine

I am integrating zendesk in unity, and want to add some custom data that won't show in conversation view. These data will directly go to Zendesk admin panel as ticket. There was some field name ...
Lokesh Goyal's user avatar
-1 votes
1 answer
43 views

Problem when creating project in Visual Studio

I have a problem when creating a project in Visual Studio. I have followed all the default steps, when I create the project the project folder is not included in the solution and it says that there ...
Laura Marchante Moreno's user avatar
0 votes
1 answer
56 views

How to prevent powershell from opening two windows during script execution?

I have a simple powershell script which automates emailing an XML file when executed. I have a VB.NET console application written in Visual Basic that calls the powershell script within the program to ...
dpresnell90's user avatar
-4 votes
0 answers
34 views

why a duplicate file is created of my java file in the folder? [closed]

I have seen an extra/duplicate file of my java file in my vs code editor and also in my folder. What ids the reason behind it ? The extra file is clearly visible in visual-studio-code IDE. I'm ...
Krishna Sharma's user avatar
1 vote
0 answers
51 views

VS.net reports conflict between "System.Text.Json, Version=7.0.0.0" and "System.Text.Json, Version=7.0.0.3" (SOLVED)

I have troubles understanding what Visual Studio tries to tell me: There was a conflict between "System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" and &...
faljse's user avatar
  • 11
0 votes
2 answers
56 views

Visual Studio : Rename a folder and adapt namespace

In Visual Studio, I have a project with this folders/files Demo.Api.csproj Program.cs V1\ Controllers\ BarsController.cs FoosController.cs Models\ Bar.cs Foo.cs I rename the ...
vernou's user avatar
  • 6,963

1
2 3 4 5
2281