Questions tagged [visual-studio-2019]

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

Visual Studio 2019 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio 2019. Visual Studio 2019 was released to market (RTM) on April 2nd 2019.

Some Major Changes and Improvements

  • Improved IntelliSense performance for C++ files
  • Local development with many common emulators
  • Simplified test access in Solution Explorer
  • Git management and repo creation in the IDE

New Features

  • One-click code clean-up (Resolve warnings and suggestions with the click of a button.)
  • Visual Studio IntelliCode (Get AI-assisted recommendations that learn from the community.)
  • Visual Studio Live Share (Share code using real-time collaborative development.)

Release notes can be found at the official Microsoft page.

7653 questions
11
votes
3 answers

visual studio 2019 schema compare no differences detected

I am using New Schema Comparison to compare 2 Databases but this tools return " compare no differences detected " I am using VS 2019
Karam Omran
  • 121
  • 2
  • 4
11
votes
4 answers

Configure CMake version in Visual Studio 2019

Is there a way to configure the Visual Studio 2019 integrated CMake version? There are features in the latest CMake version that I would like to use, but I'm forced to build from the command line in this case. If I build from the VS IDE, the CMake…
marcks
  • 400
  • 1
  • 2
  • 11
11
votes
2 answers

weak_ptr reset affects shared_ptr?

I'm not very used to using weak_ptr and I'm facing a quite confusing situation. I'm using Intel XE 2019 Composer update 5 (package 2019.5.281) in combinaison with Visual Studio 2019 ver. 16.2.5. I compile in 64-bit. I use the standard C++ 17. Here…
dom_beau
  • 2,437
  • 3
  • 30
  • 59
11
votes
4 answers

How to automatically add semicolon to end of line in Visual Studio 2019

My question is similar to How to add semicolon to the end of the line in visual studio code, but for Visual Studio 2019. The extensions mentioned in the answers, and others I've been able to find, only work in VS Code or earlier versions of VS it…
Sandra
  • 608
  • 2
  • 11
  • 23
11
votes
2 answers

Cannot set __cplusplus to C++17 standard with Visual Studio and CMake

I've a CMake project that's opened with Visual Studio 2019. I need c++17 features for my code, so I've set the corresponding flag in the CMakeLists.txt cmake_minimum_required (VERSION 3.10.0) project (datalog) message (STATUS "Building project…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
11
votes
2 answers

Can't open Service Fabric project in Visual Studio 2019

I have a solution with Service Fabric .sfproj project that works well in Visual Studio 2017. Visual Studio 2019 can't open it. Seems that .sfproj project is unsupported at that moment. Tried without success to create an empty Service Fabric project…
11
votes
1 answer

VS2019 without Windows 8.1 SDK

I'm trying to run an already functional application that requires the Windows 8.1 SDK. I installed Visual Studio 2019, but there is no option in the 8.1 SDK. This is for a Windows 10 using Visual Studio 2019 last update. On my old computer, there…
RedAlpha
  • 113
  • 1
  • 1
  • 4
11
votes
2 answers

Why does a switch-case statement on a string constant require a default in Visual Studio 2019 (prior to 16.0.3) but not in Visual Studio 2017?

I am trying out Visual Studio 2019 on a code base written in Visual Studio 2017, and am immediately finding a build issue. I have a switch case statement in which the case is selected on a constant string. This doesn't have a default case, which is…
Martin Eyles
  • 171
  • 13
11
votes
3 answers

How to get terminal window inside Visual Studio 2017 / 2019?

I was just reading this article - https://devblogs.microsoft.com/dotnet/visual-studio-2019-net-productivity-2/ and noticed in one of the GIF image, she is showing a terminal window inside VS editor itself. It looks like a fully fledged powershell…
11
votes
3 answers

How to change the version of Visual Studio when opening on github

I have both VS2015 and VS2017. When I choose "Open in Visual Studio" on GitHub I'd like to change it to use VS2017 instead of VS2015. How can I do this?
Don Box
  • 3,166
  • 3
  • 26
  • 55
10
votes
3 answers

Transfer Visual Studio 2019 theme to Visual Studio 2022

Is there a way to transfer (export/import) a Visual Studio 2019 theme to Visual Studio 2022? I have tried to import the VS2019 theme which I have created several years ago, no success. I have tried to export/import the settings but the result was…
mynkow
  • 4,408
  • 4
  • 38
  • 65
10
votes
1 answer

Is SDK style project the recommended approach for new .Net Framework projects?

I am working on a .Net Framework 4.8 solution with 20-ish projects (among others WPF). We were discussing if we should convert our projects to SDK style now to get the new and improved project format. Is the new SDK style the recommended approach…
amgravem
  • 217
  • 1
  • 3
  • 9
10
votes
1 answer

VS 2019 update to 16.8.4 broke every single one of my solutions

I don't recall the previous version I had (it could have been 16.8.1), but updating just now to 16.8.4 results in none of my solution projects being able to load. Here's the output window for one of my solutions: F:\Users\username\Documents\Visual…
oscilatingcretin
  • 10,457
  • 39
  • 119
  • 206
10
votes
2 answers

Detect build type (debug/release) in visual studio when using CMake

I have a little game engine in which I need to define some custom macros when it is building in Debug or Release mode. Here are a few lines of my CMake script which is supposed to do that: if (CMAKE_BUILD_TYPE STREQUAL "Debug") …
OverShifted
  • 457
  • 1
  • 7
  • 17
10
votes
3 answers

How to add work item to commit in new git experience interface in new Visual Studio 2019

Quick Question for Visual Studio 2019 Version 16.8.3, How do you connect the work item to the commit in the new git changes tab? I am having a really hard time using this new git experience thing. I can see my work item in team explorer but no idea…
phonemyatt
  • 1,287
  • 17
  • 35