ASP.NET MVC 5 with Angular 6-7 and no Node.js - asp.net-mvc-5

I need to integrate Angular 6 or 7 (latest version at the time of this writing is 7.0.3) with an ASP.NET MVC 5 application (.NET Framework 4.5+, no .NET Core).
Is Node.js a "must have" in order to run Angular? I need to install the "smallest possible environment" to achieve my goal.
I must also use TypeScript (v3) but not Javascript. Is that possible? Any suggestions?
Many thanks in advance.
EDIT: I looked for a VS 2017 Community Edition project template but most of them are for .NET Core. It would be great if you point to a download location of such a template (ASP.NET MVC 5, TypeScript, Angular 5-7, no Node.js).

Related

Azure app service container crash with "Could not load file or assembly" on ASP.NET Core MVC .NET 6

I am trying to deploy my .NET 6 asp.net core web app but I'm getting a weird error when trying to do so:
I don't understand why it is searching for .NET 7 packages when my project and stack is on 6.
I tried ZIP deploy through VS and automated through GitHub to no avail. My app worked fine the other day all I did was switch to a Basic B1 plan from Standard S1 to reduce cost.
I think the problem is related to your Github Actions. You're building the entire solution, but your project EasyRank.Tests.Common uses a different version of Microsoft.EntityFrameworkCore 7.0.0, while the others are using 6.0.10. Internally it has a dependency on Microsoft.Extensions.DependencyInjection.Abstractions and they are conflicting.

Select .NET or .NET Core on Azure with a ASP.NET Core website

I'm hosting a range of websites on Azure. Some ASP.NET MVC and others ASP.NET Core. I noticed that there is a Stack setting beneath General settings with the values .NET and .NET Core:
For some of my ASP.NET Core websites, the value .NET is selected. Typically the ones that I migrated to ASP.NET Core and just deployed to an existing website previously running ASP.NET MVC. My question here is, what does this setting do? And why doesn't it seem to make a difference when deploying a ASP.NET Core website which setting this has?
In App Service Stack settings are used to set type of language and the version you need to use. App Service support in general supports the following languages:
ASP.NET Core
Node.js
PHP
Python
Java
Ruby
and depend on the OS say,
if you create on windows, there are 5 stacks underneath it
.NET
.NET Core
PHP
Python
Java
If you choose linux, there are 7 stacks can selected on portal
Ruby
Node
PHP
.NET Core
Java8
Java11
Python
Here are the details on the stack settings

Can I run .NET Core Application under a .NET 4.6/7 Site vise vera

I new to .NET Core and our IIS configuration is as so. We run a single web site with about 70 .NET 4+ applications under it, each app runs under is own user and app pool. Our developers have requested .NET Core to begin upgrading applications.
The site is not accessible, only the applications. The applications do not inherit from the site web.config (which is generic) they pull from their own.
Would it be better to upgrade the site to .NET Core and then upgrade the apps, or leave the site at .NET 4 and upgrade the apps to .NET Core?
Use Net Standard, you should be able to use code across all projects.. Ensure your Net Framework projects are on the latest version and you should be fine. I believe you use code from Net Core projects in Framework, but not the other way round

What is the latest ASP .NET MVC version?

I was trying to check the latest ASP MVC version, but I got really confused. I was able to understand the problem that happened first when Microsoft declared MVC 5 and then renamed it to MVC Core 1.0.
Still I see now in Microsoft documentation for the regular .NET framework they only mention MVC version 5 as the latest version, while on the web everywhere I would find topics about what is new in MVC 6.0, which has the famous feature of removing dependency over System.Web. Also 6.0 is mentioned on Wikipedia with release date for rc1 as 18 Nov 2015
So is it called MVC 6 by Microsoft or still they call it 5? what is the latest dlls versions for MVC?
There is asp.net-mvc-5.2.3 which is last version before they went to asp.net-core-mvc. Web API 2.2 also shares the 5.2.3 version number. Check Nuget
MVC 6 was originally part of ASP.NET 5 and suppose to be the next version, but due to major changes in the code base, it was decided that it needed to become its own new framework, they decided to change its name from ASP.NET 5 to ASP.NET Core. which is the suggested latest version to use going forward for new projects.
ASP.NET Core MVC 3.1.1 released on 14 January 2020 is the latest ASP.NET MVC version. Post-release of ASP.NET MVC 5.2.7 on 29 November 2018, Microsoft decided to release the next version (with major changes) under the ASP.NET Core MVC category.

mvc 6 add class library

I am using VS2015 (RTM) and have a solution with two projects:
1) An MVC 6 ASP.NET Web Application
2) A Windows Split-View App (Universal Windows)
I would like to also add a class library to the solution that can be referenced by both of the projects, but can't find a way to do it.
If I add a Web Class Library (Package), I can reference it via the web application, but not by the Universal Windows App.
If I add a Windows Class Library (Universal Windows), I can reference it in the Universal Windows App, but when I try to add a reference to the MVC 6 Web Application I get a couple of thousand reference errors.
Is there an easy way to do this, i.e. share a class library between an MVC 6 app and a Universal Windows app, or is it a non-starter?
The MVC 6 can’t reference the UWP class library since they are based on the different .NET runtime. MVC 6 is based on the .NET Core or Full .NET, the UWP is based on the .NET for UWP.
I did not have the MVC 6 installed in my machine to test. The portable library should work in this case, but I also failed to compile in MVC 5.
As a workaround, you can considering using the code sharing between UWP project and MVC project.
Create a new folder named share_code in the solution folder, put the common code in this folder. In UWP project and MVC project, Add -> Existing Item, then you can re-use the code in both projects.

Resources