Questions tagged [visual-studio-2022]

Visual Studio 2022 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about this specific version.

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

cuda sample build fails on windows with CUDA 12.3, VS 2022

When I tries to build cuda bandwidth test sample, MSB3721 error occurs. MSB3721 ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin\nvcc.exe" - gencode=arch=compute_50,code=\&...
user23053190's user avatar
0 votes
0 answers
13 views

WPF user controls are not displaying correctly in Visual Studio 2022 XAML editor

I have recently started using Visual Studio 2022 for continuing to develop a long standing WPF project (originally developed in Visual Studio 2017, then more recently in Visual Studio 2019). ...
NigelP's user avatar
  • 229
0 votes
2 answers
31 views

What does 'interactivity location' mean when creating a Blazor App from a template?

I would assume this is referring to client or server, but with these as the options I can't quite figure this.
hamstar's user avatar
  • 141
0 votes
0 answers
28 views

How to fix Package source mapping is off in Visual Studio 2022?

I see the message Package source mapping is off in Visual Studio 2022 17.8.0 when I click on any package in the NuGet package manager. When I click on the Configure link, it opens up the below window....
Vivek Nuna's user avatar
  • 26.2k
2 votes
1 answer
51 views

$(ProjectDir) doesn't resolve to actual project

I am using Visual Studio for writing in c++. I try to use $(ProjectDir) macro to access the project directory auto vertShaderCode = readFile("$(ProjectDir)shaders/vert.spv"); And ...
TopologicalConductor's user avatar
0 votes
0 answers
37 views

How can I get my WPF Application to remotely connect to a server and then connect to a SQL Server installed. C#

I am creating a WPF application to use at work. I am a Studio QA Analyst for a Software/Game Development company and we do automation testing on our test racks. I am looking for a way to have the ...
Nore17's user avatar
  • 1
0 votes
1 answer
15 views

Missing support for Docker Compose in Visual Studio 2022

I created new .NET Web application project and I am trying to add Docker Compose support but the option is missing. There is only Docker support available in the menu. What am I doing wrong?
Muflix's user avatar
  • 6,322
0 votes
1 answer
18 views

Fixing a persistent issue with Visual Studio 2022 IntelliSense

I've had something break for me in VS2022 a couple of months ago that's really annoying, and I thought "VS2022 must be broken" and tried some things (like updating it) to no avail. Now got a ...
Mark Cilia Vincenti's user avatar
1 vote
0 answers
22 views

In Visual Studio, is there a way to quickly resize a splitted vertical document window?

This is similar to VS Code's Increase/Decrease current view size. If possible, this is what I prefer: the view should increase its size whenever it has focus. For example, when Program.cs is being ...
Luke Vo's user avatar
  • 18.6k
1 vote
1 answer
72 views

c++ How to automatically implement pure virtal methods in a derived class (MSVS)

I'm using VS2022 in C++, I came from the land of Java where the IDE suggest me all the methods that must be implemented if I'm extending an abstract class. I'd like to do the same in C++ with virtual ...
DDS's user avatar
  • 2,387
0 votes
0 answers
23 views

I am having problems installing any VSIX package into my computer

Whenever I try to install a VSIX package I get the following error: --------------------------- VSIX Installer --------------------------- The type initializer for 'PerTypeValues`1' threw an exception....
Eduardo Quintana's user avatar
0 votes
0 answers
60 views

std::chrono problem, works fine in viusal studio 2019 when I change to 143( Visual Studio 2022 ) it fails

So I am using visual studio 2022 and this is failing to compile. It works fine in Visual Studio 2019 however. #include <iomanip> #include <iostream> #include <stdexcept> #include <...
Richard Day's user avatar
0 votes
1 answer
81 views

Trouble with displaying Excel data in a C# program using the oledb library

I have a sample code that I want to use to read the content of an Excel file in a DataGridView in a Winform application in Visual Studio 2022 with C# language, but the content of the Excel file is not ...
user3123721's user avatar
0 votes
1 answer
16 views

Visual Studio License : Compiling visual studio project with dotnet CLI

Is compiling with dotnet CLI a Visual Studio application on a any machine requires licensing terms application ? I have created a C# application with visual studio, I can build it on any other ...
chimaira's user avatar
  • 183
0 votes
1 answer
37 views

Hide inherited base Object methods from intellisense in Visual Studio

Intellisense always displays the public methods/properties/variables. It also displays the base C# object variables. This is completely useless for 99.9% of situations and only serves as a distraction,...
NomenNescio's user avatar
  • 2,935
0 votes
1 answer
66 views

'Vite. http proxy error at /weatherforecast...' error when launching the Angular and ASP.NET Core app in Visual Studio

I created an app from the 'Angular with ASP.NET Core' project template in Visual Studio 2022 17.8 and .NET 8. It launches the API app in Chrome and the Angular app in Edge. In Edge it doesn't show the ...
Tony_Henrich's user avatar
  • 42.9k
0 votes
0 answers
37 views

Local Reports in Visual Studio 2022

I took over an application (WinForms) developed a few years ago that needs to run on older computers as well. In Visual Studio 2022, when I modify a report, the schema changes from 2010/01 to 2016/01. ...
Dobraaanis's user avatar
0 votes
1 answer
45 views

Move from Windows Form App to Windows Form App (.Net framework) - Visual Studio

I create a form in Visual Studio (Visual Basic), everything works fine, but when I tried to add a Database on this, I found out that I made it on Windows Forms App instead of Windows Forms App (.NET ...
Juan Arias's user avatar
1 vote
1 answer
64 views

How do I make newer Visual Studio versions use proper nullable behavior for older projects?

When opening older existing projects, my copy of Visual Studio 2022 insists that <Nullable>enable</Nullable> is now the default behavior, causing those older projects to fail to compile: 3&...
Sean Werkema's user avatar
  • 5,890
0 votes
0 answers
32 views

CreateNewOnMetadataUpdateAttribute does not exists in the namespace after Visual Studio update

After updating my Visual Studio to get .Net8, our older Core 2.1 project is getting an error that I can't explain. In the views it is starting to complain about the following: CS0234 The type or ...
E. Peter's user avatar
  • 127
0 votes
0 answers
10 views

Abort() has been called when trying to run ImPlot::BeginPlot in windows 10 visual studio 2022

Project settings have been made to run imgui and it runs successfully Implot related files are also compiled and the program is executed. When the ImPlot::BeginPlot function is added, the program ...
rosebob's user avatar
0 votes
0 answers
18 views

How to assign a shortcut to an arrow key in Visual Studio?

I want to assign Ctrl+Alt+<Arrow Left> as the keyboard shortcut for View.NavigateBackward in Visual Studio 2022, because I am used to this from VS Code. However, the "Press shortcut keys&...
Finni's user avatar
  • 478
0 votes
1 answer
50 views

How to make your app create a shortcut in the startup folder on install Visual Studio 2022

I am struggling to find guides or explanations online on how to make a shortcut for my app to appear in the startup folder upon the installation of the app. I am using Visual Studio 2022 and the app ...
Daniel Heikkilä's user avatar
0 votes
0 answers
56 views

C, Visual Studio2022 error, cannot start the program, the system cannot find the specified file. How to solve it? [closed]

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. I have checked the code for a long time and asked a lot of people, but just can't find the ...
Cadet's user avatar
  • 1
-7 votes
0 answers
49 views

Visual Studio can't open SFML's Graphics.hpp? [closed]

In visual studio 2022 ,when using #include"SFML/Graphics.hpp" i am facing many errors but the main one is E1696 (cannot open sorce file). i have tried alot installed it multiple times 64bits,...
Muhammad Taha's user avatar
0 votes
0 answers
36 views

Where is the location of cl.exe of VS2015 msvc build tool (v140) in VS2022

Recently, I've installed VS2022 and installed the following tools msvc v140 - vs 2015 c++ build tools (v14.00), msvc v141 - VS 2017 C++ x64/x86 build tools (v14.16), msvc v142 - VS 2019 C++ x64/...
luckyroo's user avatar
0 votes
0 answers
9 views

Visual Studio 2022: Custom template won't replace parameters (and appears twice)

I have two problems going on here: My template refuses to come in with the option to replace variables, and over the course of trying to fix it the template now appears twice. First problem: Replacing ...
Ari Roth's user avatar
  • 5,402
-1 votes
1 answer
45 views

The Unity Method onCollisionEnter() has incorrect case

I'm trying to detect a collision between two objects in Unity I cannot get it to enter the onCollisionEnter function I can type it in as OnColliosnEnter, and onCollisionEnter, both seem to build ...
Mich's user avatar
  • 3,348
0 votes
0 answers
8 views

How to use docstrings or similar in Visual Studio Python developement

I have a Python Project and unfortunately I have to do it in Visual Studio 2022. How do I create good documentation? Are there any external tools like for doxygen? docstrings seem good, but I hope ...
mstranne's user avatar
4 votes
1 answer
103 views

Initializer is not a constant only with certain functions

If I try compile the following and I have /O2 optimisation on, then it doesn't compile: #include <math.h> double myfunc(double arg) { return 5.4; }; double (*f[])(double) = { myfunc, ...
Zebrafish's user avatar
  • 12.1k
0 votes
0 answers
57 views

IntelliSense engine crashed for file with ranges

Visual Studio 2022 (recent version, 17.7.7) IntelliSense crashes with the code below. Steps to reproduce Copy/paste the code to the IDE Change the code, for example uncomment std::vector<int> ...
Damir Tenishev's user avatar
0 votes
1 answer
42 views

xUnit Tests give message failing to load extensions in Visual Studio 2022

I added an xUnit project to my solution and started writing tests for my project. I wrote 3 tests and everything seemed to be working fine. They were red when something was wrong and would go green ...
Sam's user avatar
  • 4,947
-4 votes
1 answer
53 views

C# decimal setter is not working anymore since moving to Visual Studio 2022 .net 7. The value is always set to 0 [closed]

I have a screen shot of the debugger where I can set an local decimal to the value and I see it in the debugger as getting set but the setter's private decimal variable is not setting to the value. Is ...
Judie's user avatar
  • 13
-1 votes
1 answer
62 views

Why appeared error in toolbox in Visual Studio 2022 [closed]

I have a C++ project in Visual Studio 2022 and suddenly it has appeared in toolbox this:
Michal Hadraba's user avatar
1 vote
1 answer
66 views

Is this false-positive case of C26800 Use of a moved from object warning?

The code below causes the following IntelliSense warning in Visual Studio 2022 (latest version with /std:c++latest): Warning C26800 Use of a moved from object: ''$S2'' (lifetime.1) for line with ...
Damir Tenishev's user avatar
0 votes
0 answers
19 views

undeclared mixin when @import from node_modules with ~

I am using Visual Studio 2022. When I do something like @import '~@my-scoped/package/styles.scss'; @include package-mixin(); Visual Studio will tell me that package-mixin is an "undeclared ...
Brad's user avatar
  • 12k
1 vote
0 answers
24 views

Unable To Open Tabular Cube From Azure Analysis Service With Compatibility Level 1064 In Visual Studio

The latest compatibility level supported by Azure Analysis Services is 1604, this is what is returned by the following C# API: public int GetMaxCompatibilityLevel() { return ssasServer....
David Rogers's user avatar
  • 2,639
1 vote
1 answer
74 views

Start with Debugging fails after upgrade to Visual Studio 2022 17.8.1

Getting error message: Unable to attach CoreCLR. "operation not supported" when I try and debug my C# program on my ARM Raspberry Pi Model 3B which is running Windows IoT (old version of it ...
Skanky's user avatar
  • 139
0 votes
0 answers
20 views

Visual Studio 2022 latest update changed outlining behavior

The most recent updates to VS 2022 have broken my normal outlining. Working in Blazor Server (.razor pages), I used to be able to collapse code tag areas, and it would leave the first line intact with ...
AndyC's user avatar
  • 47
-1 votes
0 answers
13 views

VC++ Redist 2022 x64 without ARM64 bundle

My installer includes the VC_Redist.x64.exe , which is executed if required. However MS have now started bundling the ARM64 in the same installer, bringing the setup to over 25MB. Is there anyway to ...
user20716902's user avatar
1 vote
2 answers
80 views

Issue upgrading Visual Studio 2022 Enterprise from 17.7.7 to 17.8.1

I'm currently facing an issue while trying to upgrade Visual Studio 2022 Enterprise edition from version 17.7.7 to 17.8.1. I followed the standard upgrade process using the VS Installer. Visual ...
santosh kumar patro's user avatar
0 votes
0 answers
51 views

SSIS build artifact generated from Azure Devops Classic Pipeline not reflecting latest changes

Build Pipeline : Classic SSIS Compiler : Visual Studio\2022\Enterprise - devenv.exe (Custom) SSIS Build Task Version : 2* When running a classic build pipeline in azure devops, can see latest commitID ...
timblistic's user avatar
0 votes
1 answer
39 views

Project Reverts to Debug Every Time I Open It

I have a WPF project that I have been doing small edits to in Release mode. It used to open up in Release mode. Now, every time I open the project it reverts back to Debug. What am I doing wrong? ...
ExpertOnNothing's user avatar
0 votes
0 answers
42 views

VS2022 Android Device Manager and SDK Manager failing to download - cannot establish trust relationship for the SSL/TLS secure channel

When using VS2022, I cannot update, create, or download any Android devices or SDK packages. When I try to create devices in Android Device Manager and downloading/updating Android SDK stuff in ...
ChrisJ's user avatar
  • 181
2 votes
1 answer
35 views

Visual Studio 2022 Native OLE DB Keep Identity

I recently replaced my hard drive and only installed Visual Studio 2022 this time. On my previous drive I had Visual Studio 2019 and 2022. Back then I created an SSIS package and used the SQL Server ...
John Osmond's user avatar
0 votes
0 answers
13 views

Visual Studio 2022 + .NET Upgrade Assistant - Cant Import Controls After Conversion From .NET Framework

We are in the process of trying to salvage an old package for current use in a WinForms application being converted from .NET Framework to .NET 6+ using the .NET Upgrade Assistant This package was an ...
Dray's user avatar
  • 1
0 votes
1 answer
105 views

Visual Studio 2022 started using C++/CLI syntax when debugging a C# project

My Visual Studio 2022 is suddenly displaying C# concepts on the VS GUI in a C++/CLI . It is also displaying class names with a caret (^) character suffix, and showing "nullptr" for null ...
Luis Carlos's user avatar
0 votes
1 answer
43 views

Xamarin Forms: could not launch the ios application on the device

I could not launch the xamarin.form IOS application on the device. The application can be deployed successfully but the launch failed. error MT1007: Failed to launch the application on the device '...
RMR's user avatar
  • 599
0 votes
0 answers
22 views

VS2022 Set Up Dependency on Native DLL for UWP App

I have a UWP app in the works that depends on a native DLL. These are all under my control and in the same Solution. If I try to add a Project Reference to the UWP app referencing the native DLL ...
Brian A. Henning's user avatar
0 votes
1 answer
56 views

Microsoft Office Interop Outlook in VB.NET

I'm currently working on a VB.NET Windows Application with a target framework of .NET 7.0, and I'm facing some challenges while trying to set up Microsoft.Office.Interop.Outlook. I would really ...
IT SSL's user avatar
  • 13

1
2 3 4 5
75