How to enable news pane at start state in VS 2019? - visual-studio-2019

In Visual Studio 2017 when you start VS (no solution loaded) there is a pane with news shown at start.
How to enable this news pane in VS 2019?

Microsoft removed this start page in favor of the new start Window
In the VS 2019 option you have the 3 what you want:
the new Start Windows
empty environment
last loaded solution
Unofficially I got it back by using the 3rd party addon RevDeBug which has an option to start it's own start page which is similar to the old start page from former VS versions:
Here you also see your recent project, can open/create solution and on right side you have developer news feed.
When you don't want to use RevDeBug you can install the extension VSStart
Auto-launches the Start Page or executes another VS shell command at
startup in Visual Studio 2019.
Start Page on startup does the same like VSStart, but also does some hacks to get Developer News working again.
In VS 2019 Update 2 (16.2) Microsoft starts removing more parts of Start Page, so that the extension could stop working soon.

Related

How do I stop visual studio 2022 and 2019 from sharing recent projects list

When visual studio starts it shows a recents list (and has one on the file menu).
Our team has VS2022 and VS2019 installed in parallel because we're migrating some solutions to .net 6 and want to leave the legacy projects maintainable on their own branches until we can release the migrated solution.
Unfortunately they show the same recent list which means that 2019 solutions are in the 2022 list and 2022 solutions are appearing in the 2019 list.
How can I stop them sharing the recents list?
Had the same issue with VS2019 and VS2022.
Found a working solution that does not require any plugin.
In your VS2022 settings disable the "Synchronize Visual Studio..." setting seen in the screenshot below (Tools -> Options -> Accounts).
In VS2019 there is a similar setting but disabling this only in VS2022 was enough for me.
Not sure what other behavior disabling this setting causes. But so far I haven't noticed any problems.
Source:
https://developercommunity.visualstudio.com/t/Recent-projects-and-solutions-for-VS2019/10039684
I tried the suggestion from this Microsoft forum, but removing a project from recent list syncs the change on both VS versions. At first I thought it worked but after several seconds, up to a minute, the change is synced.
This post suggest to use a plugin for customizing the Start page of Visual Studio, but it is only for 2019 and not updated since 2019, I choose not to try it, but can be useful to someone.
There is also an option to create a custom Start page, but this seems overly complicated for me.
I did not found the issue logged in https://developercommunity.visualstudio.com/.

Visual Studio for Mac 2022 - Hot Reload?

I am a fairly new to developing applications on Mac OS. I am using Visual Studio for Mac 2022 - Preview. I am all up to date and have created a ASP.NET MVC Web Application using .NET 6. I have started the debugger using the generated project. I make a change to the Index.cshtml file but that change fails to be reflected in the browser after saving the file. Any ideas if Hot Reload works in Visual Studio for Mac? I dont see any button to toggle the Hot Reload as all screenshots i have seen are for Windows Visual Studio. Any help would be appreciated as stopping and starting the debugger each time a change is made is very inconvenient. Thanks.
EDIT:
I have installed the Nuget Package
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
And then updated my Program.cs file as follows:
// Add services to the container.
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
My changes to .cshtml files still do not want to recompile after saving.
Any more help would be appreciated.
Visual Studio for Mac
Version: 17.0 Preview (17.0 build 5186)
Created a new Web Application (Model-View-Controller) project.
I got it to work on the latest preview version of Visual Studio 2022 for Mac. You will need to add the NuGet package, and also add the service to your builder in the program.cs file as an extra service:
builder.services.AddRazorPages().AddRazorRuntimecompilation();
https://learn.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-6.0&tabs=visual-studio#enable-runtime-compilation-for-all-environments
I don't know of any way to do it within Visual Studio, but if you navigate to the folder with your .csproj in Terminal, you can type
dotnet watch
and it will load your app. Then you can make changes within Visual Studio, save, and the browser will automatically reload. The only problem is since it's running from the command line, it won't hit breakpoints in your program (I don't know of any way to do so anyway).
As mentioned above, adding builder.Services.AddRazorPages().AddRazorRuntimeCompilation() works well, the only thing that you have to reload the page manually though, while your project is running.

How to open Work Item in browser using VS 2019 Team Explorer?

I have installed Visual Studio 2019 to do some testing on our code base ready for migrating from Visual Studio 2017, I am also testing to ensure it plays nicely with our TFS system (currently TFS 2018 on premises).
It looks as though the Visual Studio Work Item Form is back! (VS 2017 dropped support for this in favour of opening Work Items in a web browser). I've not managed to find any information on this. I like the fact that we might have the option to work with Work Items in the VS IDE as well as the web browser, however its return introduces a few issues:
We use a custom MultiValue control that does have support for the VS 2019 Team Explorer (it last worked in VS 2015). Do you know where I can get hold of a MultiValue control that will work on the Work Item form in the VS 2019 Team Explorer?
Given that the MultiValue control isn't working I would like to continue working with Work Items in a browser. The VS 2019 Team Explorer seems to favour opening Work Items within the IDE, how can I open them in a browser from within the VS 2019 Team Explorer? Better still, how can I configure it to open in a browser by default?
Is there a better place for me to ask these questions?
Work Items should default to opening in the web in Visual Studio 2019. That behavior has not changed from Visual Studio 2017.
There is an option under "Tools->Options->Work Items" to enable the "Legacy experience (compatibility mode)". It sounds like that option has somehow gotten enabled in your installation. If you switch that back to "Default experience", work items should open in the web.
Hope this helps.
Sorry for the inconvenience. This is a designed behavior right now.
Please take a look at this similar issue: TFS work items opened inside Visual Study no longer open in the web browser, they always open in the Visual Studio editor
According to the response from MSFT:
We have re-design the default landing page for work items in Visual
Studio 2019 which only works with server >= 2019. If server is <
2019, work items will be open in Visual Studio only.
Since you are using TFS 2018 with VS2019, you may have to open work item in web portal from browser directly right now. Otherwise, you have to upgrade your TFS version from 2018 to Azure DevOps 2019, if you insist on opening the work item in Visual Studio.

How can I prevent Visual Studio (2019) from opening "VS Debug Console" and just use the old .NET Core Host console?

It seems like with VS 2019 (Enterprise?), there is a new type of console application host available that even stays unclosed after I stop debugging. When starting multiple projects, the first console application that starts up will be of this new type.
I am searching for a way to prevent VS to use this console for the "main"-project, and simply use the same console for every project I am starting. I have started the same solution with 4 ASP.NET Core projects inside VS 2017 and Visual Studio did not start any console with 'dotnet.exe' in the title. So for is seems like this is a new thing in 2019.
The reason for this question is because I am having some trouble with this new console. The project often does not start at all and the colors of the console are all green. But that shouldn't be topic of this question.
So is there a way to prevent Visual Studio 2019 from starting this new console?
There's a setting under Tools->Options->Debugging->Automatically close the console when debugging stops that will restore the old behavior.

How to restore normal "New Project" windows on Visual Studio 2019

After upgrading to Visual Studio 2019 I noticed the very unpleasant change of the "new project" window, as announced here. As with much of the community I totally hate the new useless window and would pretty much prefer to use the normal old one.
To show what I'm refering to, here are screenshots of the old and the new screens:
VS 2017 and earlier:
VS 2019:
This is somewhat similar to this other question asking about the start page, but this time, it's about the new project dialog.
How can I restore the old, full featured dialog instead of the broken new one?
Officially it is not possible and Microsoft ignores all negative feedback about it.
But there is now an extension called Classic 'New Project' Dialog that brings back the old and better tree based dialog:
After installing the extension, enable it in Settings
you can use it when you create a new project
I tested it in VS 2019 Update 2 Preview 1 and it works fine.

Resources