I am building an asp.net core 2.2 web app with Angular SPA template. Until a few days ago I could see the browser refresh and reflect changes made on html and typescript files in Visual Studio 2017. Since then, there was an update to both Visual Studio and node modules.
Now the browser doesn't reflect the changes made automatically. I am forced to run an ng build command using cmd for the angular app to get the changes on the browser. Is there a setting or configuration that needs to be changed.
I have already enabled Enable Browser Link option in the Visual Studio. This is not working.
Visual Studio version is 2017, 15.9.9
Related
I've got a Visual Studio solution containing a .NET Web API project as well as an Angular 6 project. I'd like to be able to run the Visual Studio debugger on the Angular app and have it auto refresh on changes to the Angular code just like ng serve would do. Is there a way to do this, or similar, in Visual Studio Professional 2015 or Visual Studio Enterprise 2017?
Check this one out. I think I know what you talking about. It can reload the page after you make changes.
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BrowserReloadonSave
In Visual Studio 2015 with an ASP.NET MVC project, we were able to set the start action to "Don't open a page":
With a default .NET Core project in Visual Studio 2017, the web tab isn't available. When I run my site, I just want to run IIS Express like before. Anyone have any idea how to achieve this?
Note that I did turn off the new Chrome debug option already (as highlighted below here):
For me this was fixed by opening launchSettings.json under Properties and setting launchBrowser to false.
Right click on your project core so properties and uncheck Launch URL, save and run it again.
Hello ! I am new to PhoneGap. I have followed the basic installation step to build the application in Windows(installing node.js,git,cordova). I can build the project as well. As a .NET developer I am very used to debugging environment where you develop your code using Visual Studio, keep break point,debug etc. This feature somewhere needed while developing PhoneGap application.
How I expect as a .NET developer while developing PhoneGap application:
Keep breakpoint in javascript files(PhoneGap API's),
Debug live, make changes to index.html, css and changes reflects back to browser/emulator.
Live test(not like build and then emulate)
I have installed “Web Essentials 2013 nightly”. I am using it to bundle JavaScript files.
Every time I compile my project in Visual Studio the js.bundle file get focused in Solution Explorer and file is opened in code editor.
How to turn it off?
I am using VS 2013 Update RC2
I tried to configure it in
Tools - options
Web Wssential -Javascript - Bundle (Run on build = false) but it dosn't work
This problem appears to have been fixed with the latest build of Web Essentials.
I have downloaded this blog engine
https://github.com/lelandrichardson/MiniBlog
I cannot run it within Visual Studio because it wants IIS : how to change this ?
If your project doesn't load in Visual Studio (it is greyed out), you need to manually edit the project file (MiniBlog.csproj) in a text editor. You just need to look for the UseIIS tag, and change its value to False:
<UseIIS>False</UseIIS>
When you do the above, Visual Studio should be able to load the project. It should now default to the Visual Studio web server.
Once you are able to load the project in Visual Studio, you can choose another web server, if you wish. You just need to right-click on the project in the tree view and then select Properties. From there, if you open the Web tab, you can choose the legacy Visual Studio Web Development Server, IIS Express (you may need to install this), or the Server version of IIS.
Just a note - I was unable to actually build the project that you linked to. There appear to be missing dlls, but that is out of the scope of this question.
try to add IIS Express 7.5 for visual studio http://www.microsoft.com/en-us/download/details.aspx?id=1038