Is it possible to have the same application and debug client-side parts in the visual studio code and server-side parts in the visual studio? ASP.NET Core in particular
I actually figured it out by myself, so if anyone's wondering this is what you have to do:
VScode launch url should be the same as is on the visual studio, you should open client side project or wherever your files are. Vs should run on IIS server, that way you wont need to debug in visual studio in case you don't like debugging in chrome.
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
I created a website using visual studio 2015 with MVC 5.
The website should run locally using local databse.
The problem is, I want to run this website as program, without need to install iis or visual studio to run it..
What can I do?
ASP.NET MVC is a website and not a program as such. It therefore requires IIS to run. You don't need Visual Studio however.
If you want a stand-alone executable, you need to use a different UI paradigm. Console, Winforms or Universal Windows App to name just three.
Your option is to migrate to dotnet Core which can host web application as a Windows service, or just a Console App. You dont need Visial Studio to host it at all.
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
I am improving an ASP.Net website using VS2010. As part of the payment flow I need to redirect to an external website (like Paypal) to process the payment before returning to my website, however this site has an error in their JavaScript that Visual Studio is trying to debug. I have no intention of debugging this third party's website. Is there a way to tell Visual Studio to only debug websites that are part of the project I am working on or just for localhost?
To answer my own question. I ended up using Chrome/Firefox to debug with instead. Visual studio doesn't try debug javascript unless you are using IE.
I could then use the javascript debugger built into Chrome to debug any javascript problems I was having on the site I was actually trying to fix.
Is there any way I can debug asp.net application without Visual Studio. I mean I have all aspx and .cs files in the folder but the system doesn't have Visual Studion installed in it. Is there any way I can debug it via breakpoints?
It's not going to be easy but .net does have a command like debugger:
http://msdn.microsoft.com/en-us/library/ms229861%28v=vs.80%29.aspx
You would need to attach it to IIS or whichever process is hosting your site and I don't think it's easy to add the breakpoints, but it would do the trick.
However, the simpler option would probably be to get Visual Studio Express edition, it's free and does let you debug stuff.
I've no idea if it's possible to create breakpoints and such without visual studio, but you could perform basic debugging by adding code to the existing files that outputs whatever you need (variable values, caught exception messages?) to a log file?