Category "visual-studio"

Unable to start process dotnet.exe

I am attempting to setup a new work space and transfer all of my projects from my old computer to the new one. However, I am getting this error when I try to r

How to add project reference to ASP.NET Core 1.0 MVC project

I have a ASP.NET Core 1.0 MVC app in solution X and I have some common projects (.net 4.5.2 class libs) in solution Y. I want to reference the projects in solu

How to find a keyword in a visual studio project

I am looking at an old project one of my colleagues wrote in AngularJS in Visual Studio and as we all know, it's pretty difficult to understand code when you're

Visual Studio 2019 Exception at Run (Exception from HRESULT: 0x80070490)

I face an error when I run VS2019 (Professional). After loading the solution a message appears at the top of the window and it says Visual Studio ran into an un

Changing the default icon in a Windows Forms application

I need to change the icon in the application I am working on. But simply browsing for other icons from the project property tab -> Application -> Icon, it

Visual Studio 2022 quick action from constructor parameter to auto field creation not adding space

In VS 2022, when I press Ctrl + . on a constructor parameter and select "Create and assign field/property", the resulting code is missing spaces around the assi

Why does my extension's menu item not appear?

I am building my first VS extension, to allow users to encrypt/decrypt the mailSettings/smtp section of web.config. I wish to add a menu item that has 2 sub-i

Visual Studio - suddenly cannot debug tests

I'm not sure what I did, but all of a sudden, my Visual Studio 2012 will not debug any tests. If I select a test from the Test Explorer and tell it to run, it

How to put what the user picks for the row and column in the board

So my question is how do I put what the user enters, for example, they put row : 1 and column: 2 in my board that I made. I'm working on this in the void player

Analysis Services with Visual Studio 2022

I installed visual studio 2022 with all the necessary extensions for the analysis service but when I want to create a project in visual studio I do not have the

How can I sort Fields, Properties and Methods in Visual Studio?

I know that for clarity in codes, I have to write first fields then constructor and then methods etc. But how can I automate it in Visual Studio?

Visual Studio 2019 Not Showing .NET 6 Framework

I've been struggling to change an asp.net core web api project's target framework to .NET 6 which was started using target framework .net5. I've already tried a

PowerShell Cannot dot-source this command because it was defined in a different language mode

I've created a Windows application package using Visual Studio and when I run Add-AppDevPackage.ps1 script I get this error on some computers. Cannot dot-sourc

Copy object values in Visual Studio debug mode

In Visual Studio debug mode it's possible to hover over variables to show their value and then right-click to "Copy", "Copy Expression" or "Copy Value". In cas