I have used before AngularJS with webforms in some projects at work. I'm starting to migrate everything to .Net Core Razor mixing MVC as well and I would like to use latest Angular for some client side to work with web Apis mostly.
I see there is new .Net Core Angular Template and that you can Angular Items to your Solution in razor template, but how can I actually just add latest angular version to my existing razor project?
Use npm. See how to configure dependencies in package.json. In visual studio right click on solution -> Add -> New Item...
For latest angular add #angular/core package.
Related
I have migrated the project from Dot.Net-Framework 4.7.2 to Asp.Net-Core 3.1 with VB.NET language. I have checked in Microsoft link below, there is no CLI Command for VB.NET in Asp.Net Core templates. They mentioned only C# language for ASP.NET Core
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new
Kindly let me know if there is any way to create a ASP.NET Core Project in "VB.NET"
As far as I know, asp.net core couldn't create the MVC vb.net project. You could use dotnet new --list to see the result:
Besides, according to this github issue, ASP.NET Core Doesn't provide a razor syntax that supports VB.NET.
The workaround is using the custom library like Vazor and ZML to design MVC views and Razor Pages.
More details, you could refer to this github issue.
This question is a bit older, to be sure, but the good news is that today there IS a way to build ASP.NET Core applications in VB.NET.
For the past few days I've been working with Vazor, found here and here. I've found it to be remarkable. It's a very clever solution to a long-standing problem.
The author also has plans to enable Blazor apps in VB.NET projects.
I need to use vbhtml files with editor support in a VB.NET ASP.NET Core project. I don't need Razor to do any thing with these files. Just want the editor support (currently, the editor supports the html part only, not vb code). Is there a reference or a Nuget that I include in the project to borrow vbhtml editor from ASP.NET 5 to ASP.NET Core?
I'm afraid this is not possible. The Razor version which is used by ASP.NET Core MVC does not support the Visual Basic language (e.g. .vbhtml files), only C# is supported.
So it appears that there are not any prebuilt VBNET versions of the Hot Towel, Durandal Breeze Angular Templates for VS2012. But since those templates really just make use of client side libraries with MVC I should be able to wire up my own VBNET MVC version with said libraries/frameworks, right? Apologies if this has been asked before but i did not find an answer.
You can add the Hot Towel SPA template via NuGet.
breeze is a great library. Because of project complexity I don't want to use spa template. Is there a way I can use breeze in a regular .net mvc4 project?
We're releasing support for it very soon - directly in ASP.NET MVC and Visual Studio. Stay tuned...!
Absolutely, just start with an empty .net MVC4 project and run the 'base' breeze nuget package ( the one that doesn't say 'sample').
I am little confused regarding this matter. I understand that VS had a SPA template for MVC4 beta but not for MVC4 RC. But http://www.asp.net/single-page-application says I can install SPA with nuget package after installing MVC4 RC. Does this mean that SPA is still working for MVC4 RC? I am asking this because some discussions over web indicated the opposite. Any clue will be appreciated.
The latest ASP.NET SPA release (Beta) is not compatible with ASP.NET MVC4 RC (and later) but you can built your application with older NuGet packages or modyfi current sources of ASP.NET SPA to work with ASP.NET MVC 4 RC. Here you can find some how-to for those solutions:
Building Single Page Apps with ASP.NET MVC4 - Part 5 - using ASP.NET MVC4 RC
DeliveryTracker with ASP.NET MVC 4 RC