Is it possible to use hot reload on file saving in Visual Studio 2019 ( 16.11 ) in WPF project? - visual-studio-2019

I've update my visual studio 2019 to the latest version (16.11) and I would like to use Hot reload feature in a simple WPF application. In fact, the feature works well but it's missed the Hot Reload On file Save like the image below . ( source of the image : .NET Hot Reload for desktop & mobile with Visual Studio 2022 )
However, in visual studio 2019 there is no option like this . I would like to know if there is any possibility to add it or enable it in the settings ??
The image below is from my simple application

Related

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.

C# & Visual Studio : storage issue

I have a problem with Visual Studio.
When I create a new project and start programming and in between I save, at some point when I want to run it, Visual Studio does not accept my new code. It always executes the old code although I have overwritten it.
I have already re-downloaded Visual Studio 2 times but that didn't help. I use Visual Studio Community 2019
Try using Ctrl+shift+B to build it, and then running with F5, instead of Ctrl+B or F7.

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.

Razor does not working in a project but it works other in asp.net mvc

I use visual studio 2012.Razor works this project.
https://ibb.co/tqNJpYt
But Razor doesn't work this project.
https://ibb.co/nrtBbQZ
How is it possible.I can't find solution.What do you suggest ? Thanks
Microsoft released a new version of ASP.NET Web Tools for VS 2012. After installing syntax highlighting is back again.
http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
Installing VS 2012 Update 4 was not enough.
A set of offline installers is available. The offline installers are easier to use than the Web Platform Tools invoker (WebNode11Pack.exe # ~114KB):
If you want an offline installer then please goto http://www.microsoft.com/en-us/download/details.aspx?id=41532
AspNetWebTools2013_1Setup.exe # ~39MB
WebToolsExtensionsVS.msi (for Visual Studio 2012 standard edition[s])
# ~21MB
WebToolsExtensionsVWD.msi (for Visual Studio 2012 free "Web"
edition[s]) # ~21MB

Issue when using Orchard Web matrix module in Visual studio

I have implemented Nwazet commerce module & related functionality inside the Web matrix. now there are many changes required in implementation so need to work out in the visual studio. Now in visual studio i have just copied my implemented module of Web matrix and paste it in visual studio modules also applied DB related changes as well with the theme related changes also but it causes too many issues at the time of loading. also try to convert project in visual studio with upper ribbon available in Web Matrix with the option of Visual Studio Launch but it also gives error related to visual studio 2010 shell.

Resources