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
12
votes
2 answers

Visual Studio 2017 and 2019 C++/CLI Missing

I can't understand why I can't find C++/CLI project type in to Visual Studio 2017. I just updated my Visual Studio, and now I can't create any more Windows Forms applications.
12
votes
3 answers

How to place a new panel underneath existing controls?

This happens a lot: I have a lot of controls laid out, and I decide I'd like to put them into a panel for whatever reason -- maybe to make it easier to disable them all at once without affecting other controls, or to isolate some radio buttons,…
rory.ap
  • 34,009
  • 10
  • 83
  • 174
11
votes
1 answer

warning C5240: 'nodiscard': attribute is ignored in this syntactic position

Recently version 16.9.5 of Visual Studio 2019 has been released. It apparently introduced new warning: [[nodiscard]] __declspec(dllexport) bool foo(); //ok __declspec(dllexport) [[nodiscard]] bool bar(); // warning C5240: 'nodiscard': attribute is…
Fedor
  • 17,146
  • 13
  • 40
  • 131
11
votes
1 answer

Forcing inlining of lambda in MSVC C++

Next code compiles in CLang/GCC, and successfully inlines lambda: Try it online! #include int main() { int x = 0; auto f = [&]() __attribute__((always_inline)) { ++x; }; f(); std::cout << x; } But similar…
Arty
  • 14,883
  • 6
  • 36
  • 69
11
votes
2 answers

VS2019 update 18.2 missing "WPF App .NET Core" project template

Before updating VS2019 to version 18.2, I was creating WPF Core projects by selecting built-in template WPF (.NET Core). But now this template is missing. What I see are something like the ones shown below. I have not made any changes to the VS2019…
nam
  • 21,967
  • 37
  • 158
  • 332
11
votes
1 answer

What is the meaning of the blue circle with exclamation mark overlaid on project icon in solution explorer?

I'm not talking about the source control icons, but the blue overlaid icon on the right.
Benjol
  • 63,995
  • 54
  • 186
  • 268
11
votes
3 answers

LESS in Web Compiler for Visual Studio 2019 stopped to work

It worked for years. Yesterday for no reason (?) I'm not able to compile LESS files any more. I tried to reinstall the Web Compiler extension, reinstall Web Essentials 2019 extension, reinstall the whole Visual Studio 2019 for 3 times, start a new…
Igor
  • 383
  • 3
  • 11
11
votes
4 answers

"Analyzer with Code Fix" project template is broken

Short question: How to setup a roslyn code analyzer project with a working unit-test project in Visual Studio 2019 v16.6.2? A few months (and a few Visual Studio updates) ago I experimented with setting up a code analyzer project using the "Analyzer…
René Vogt
  • 43,056
  • 14
  • 77
  • 99
11
votes
5 answers

dotnet restore fails from Docker container

I have researched this for the past couple days and none of the research I've found has helped me solve this issue, including restarting Docker, restarting Docker service, restarting Visual Studio, deleting Nuget, adjusting proxy settings, adjusting…
TrevorBrooks
  • 3,590
  • 3
  • 31
  • 53
11
votes
4 answers

Remove and Sort Usings not working in Visual Studio 2019

On a certain solution the "Remove and Sort Usings" option does not work. It sorts the Usings correctly, but does not remove any unnecessary ones. The IDE is flagging the unused ones correctly, but it can't seem to remove them. No errors or messages…
KrustyGString
  • 903
  • 2
  • 13
  • 32
11
votes
4 answers

Unit tests not discovered in Visual Studio 2019

The tests are present at Test Explorer but run command has no effect. Looking at Output windows, for Test outputs it shows many errors like this: MSTestAdapter failed to discover tests in class 'UnitTests.Adhoc' of assembly 'some test.dll' because…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
11
votes
3 answers

What is the meaning of error TS2584 (TS) .... Try changing the 'lib' compiler option to include 'dom'?

I use VS and write Typescript I would like simply to type the command "document.write" without having an error code. what I having now is an error code of this commmand "document". I just don't want to get into something complecated as there can be…
Uri Gross
  • 484
  • 1
  • 8
  • 20
11
votes
2 answers

Keep IIS express running when VS2019 debugging stop

How to keep IIS live after stopping VS2019 Debug mode? I tried with Tools-> Debugging -> "unchecked" Enable Edit and Continue, and this approach doesn't work for me.
TJacken
  • 354
  • 3
  • 12
11
votes
1 answer

Where can I download themes for Visual Studio 2019?

My understanding is that there are currently many ways to add new color themes in Visual Studio 2019, but none that really fits my needs: The extension Color Themes for Visual Studio installs new themes to chose in the native options menu, The…
Alex
  • 192
  • 3
  • 13
11
votes
2 answers

Team Foundation Server Power Tools for Visual Studio 2019

We use Team Foundation Version Control(TFVC) on on-prem TFS server. For quite a while it was possible to use TFS Power Tools (tfpt tool) from Visual Studio Developer Command Prompt. Lately we moved to VS 2019. Problem is that we can't find any…
Belurd
  • 772
  • 1
  • 13
  • 31