The current Angular Quickstart here: https://github.com/angular/quickstart now puts the index.html and related files under an src folder.
When trying to run the code in Visual Studio 2015 as an asp.net 4.x (not core) project with F5, it can't find the files in the src folder. It works using browser-sync (with npm run) because the bs-config file redefines the base path. Is there anything similar to get the F5 experience to work?
Visual Studio Code is far more better for Angular 4 then Visual Studio 2015( accurately,Visual Studio 2017 as you cannot download Visual Studio 2015 community but 2017 now)
Just in case you wanta asp.netcode with angular 4, here is example:
https://github.com/Longfld/ASPNETCoreAngular4
Please see this repo base on angular quickstart.
I hope to be useful for you.
https://github.com/mortezadalil/angular4-Mvc5
Related
I am using Visual Studio Community 2019 16.5.4 but my teacher is using an older version of visual studio(2010 version) is there a way I can save the project so my teacher would be able to run the project.
you can send him the "project" folder, not the "solution".
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 am a single developer starting out on an ASP.Net Core MVC project with Angular 2. I used the Steve Sanderson template VS Angular 2 Template which works well in Visual Studio 2015. Up until now I have been developing the structure, and my understanding, of ASP.Net Core, Entity Framework Core, Identity, WebPack, NPM etc. and working in VS 2015 has been great.
Now I am moving on to learning and developing the client side of the project which in places will involve Angular 2. Already I am finding VS 2015 a bit clumsy and would like to try Visual Studio Code.
Is it possible to switch between the two on the same project? It would be great to be able to develop Angular components in VS Code and switch back to VS 2015 for any C# work. Writing code in VS Code I imagine would be fine, but what about the debugging/webpack building side of things?
Any experience or suggestions very welcome. Thanks.
I've successfully setup my Visual Studio 2015+ ASP.NET project on VSCode.
I've created an gulpfile that handle the build for me:
It starts an IISExpress instance.
Refresh my browser on razor code change.
And automatically rebuild my application when I change C# code.
You can find the gulpfile on my project's Github
Important note if you are going to switch between VSCode and Visual Studio:
When you want to create a new file, I strongly suggest you to do it in Visual Studio.
I am trying to convert my current asp net application to an ASP.Net vnext application and I am trying to figure out if we have have to use Visual Studio 15 or visual studio 14 ctp 3 for vnext to work? Will it work in visual studio 12 or 13?
I found this link
http://blogs.msdn.com/b/dotnet/archive/2014/08/18/try-out-the-new-releases-net-framework-vnext-asp-net-vnext-net-native-and-ryujit.aspx
and I haven't heard any updates.
If you want to use Visual Studio, you need Visual Studio 2015 and CTP6.
Good news is, you can have VS2015 installed side by side with 2012 or 2013 with no problems. (really!) And if you are not yet familiarized with the command line tools, I do highly recommend to install vs2015.
For migrations, there's some documentation in the workings on the Docs repo.
check this out : https://github.com/aspnet/Docs/blob/master/docs/migrating/migratingfrommvc5/migratingfrommvc5.rst
this is just one, there are a few more doc pages on that repo that might help you to get started and see which changes should be made and how to apply one by one.
Unfortunately the documentation is not finished and there's not much about it, so be prepared to have patience because you will be migrating and learning a new stack in the process.
Microsoft team has been very active and helpful in all channels (twitter, SO, github, etc) so, you can at least get help if you find a block.
The tooling for ASP.NET 5 is only available for VS 2015.
However, you can build and run ASP.NET 5 applications outside of VS using the command line tool and other editors.
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.