having watched the .Net 5 announcement that VS2019 & Blazor server side now has hot reload (build on save & refresh browser) I find its not working on my VS 2019 or VS2019 preview solution, which was recently upgraded to .Net5.
For example I change some HTML in a view, save, even refresh browser - no update happens. I have to stop, build & run again.
What are the settings to enable hot reload?
It's .net 6.0 feature not .net 5 .
1- Update your Visual Studio 2019 to latest version or use vs 2022 preview version.
2- set .net version to 6 in project properties.
3- In package manager console run this command: "dotnet watch"
have fun
Related
I've created a .net MAUI solution on the Mac via the command line:
dotnet new maui -n "MyApp"
When I open this via Visual Studio For Mac 2022, it errors out because Xamarin.Android is not installed.
I'm not interested in supporting Android at this point, and the download for Xamarin.Android is large. Is there any way to load the solution without installing Xamarin.Android?
After upgrading to VS2022 preview 3 and Maui Preview 12 I'm no longer able to debug iOS apps. Break point so get hit but no code is visible.
Appliation in break mode
I have tried this on a new windows 11 install and clean install of visual studio, also tried using two phones and repeated test on another pc.
Anyone having the same issue or any suggestions.
You could use the latest Visual Studio. Upgrade the Visual Studio preview 3 to preview 4 maybe fix this issue. I tested on preview 4 on Win11. It could debug the app and run it well.
My tested Visual Studio version:
Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.1.0 Preview 4.0
I have a Xamarin.Forms application that has suddenly stopped deploying onto the iOS simulator when I use the "Pair to Mac" option on VS 2019. VS pairs to the mac with absolutely no problems, and it gives me the option to pick my simulator here:
However, when I click to deploy the app, the build and deploy stops almost immediately, and this is shown in the output.
It doesn't even look like it's trying to deploy it! I don't know why this has happened as it used to work with no issues until recently.
(Edit) I have the latest version of Visual Studio Community 2019 (16.8.4) and Xcode (12.3).
I have Windows 10 build 10532 with Visual Studio 2015 Community edition. Since VS 2015 RTM does not come with Windows 10 tools, I wanted to download and install it. When I run the intallation file Visual Studio block set up and gives an error
Invalid entries passed to /Filterfeatureselectiontree swich.
What should I do?
The Windows SDK receives updates separately from Visual Studio releases, so you may have to reinstall/update the Windows SDK.
You can trigger the latest install from within Visual Studio.
First, make sure you have the latest Visual Studio 2015 from http://aka.ms/vs2015ce
From the File menu, click File|New|Project
In the "New Project" dialog box, choose the Universal item on the left panel under Templates/Visual C#/Windows/Universal
On the right panel, note that you will either have some Win10 templates or a single item that suggests that you need to download the Win10 SDK. (You may see both templates and the download suggestion if have an older version of the SDK and there is a newer version available)
Click on the item to download the new Win10 SDK and click OK.
This should kick off the download/install process and you may be prompted to close Visual Studio as soon the installer is running.
When it's all done, go back to File|New|Project and try to create a blank app project.
Hope that helps! :)
It says that my windows installer project is unsupported. "ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}" is in vdproj file. Can i work with it in VS11 beta?
You can still use Windows Service project. It is installer that is not supported by VS11. Accoring to Visual Studio team, old VS Install and Deploy projects (*.vdproj) will not be supported in any future releases starting with VS11. Migrate to WIX.
I encountered the same issue with trying to open a installer package sent to me via another developer, apparently I needed to install the appropriate version of (in Visual Studio):
Microsoft Visual Studio Installer Projects
To open this type of project. Once I did that I was able to open this project type.