How to take care of the application before or after .Net framework upgrade in Azure App service - c#

I have few applications developed using different .Net framework and deployed in Azure app service as web app and function app.
The applications developed using Visual Studio 2013 ( I think, .net 4.5.1) and Visual Studio 2019 (.Net 4.6) and deployed in Azure. The application type is ASP.Net MVC, Web app using .Net core and Azure function app.
Very recently MS announced that they are upgrading the .Net framework in Azure App service ( or basically in Azure platform). I think, Which is going to effect after 14 July 2020.
My Questions are, [considering very less time we have and applications are developed in old versions of Visual Studios] ;
will all these application work perfectly in Azure app service, after MS upgrade the framework?
I hope, the old versions of the .Net framework will still be exists in Azure/Azure app service along with the newly .Net versions?
The development PC does not have .net 4.8 version installed, installing, upgrading application's framework and testing the applications in very less time is quite impossible, is there any quick ways to do testing of entire application?
Is there any chance that application functionality will not work during this upgrade and there will be a downtime? Any one faced similar issues?
These applications are interaction with other enterprise application, what actions to be taken care?
Is there any step by steps guideline given by Microsoft those needs to followed?
Is there anyone facing similar issues? What is the best practice/ways to manage this in very less time ? Please let me know. Thanks

This is the announcement:
https://azure.github.io/AppService/2020/06/09/NET-Framework-4.8-is-coming-to-App-Service.html
The .NET Framework 4.8 update is a non-breaking in-place upgrade on App Service. No updates are required to existing applications.
All frameworks are installed, so you will have no issues. There should not be an extra amount of downtime for the upgrade.

Related

How to Pick which Framework Version to Build app for C# Visualstudio

I am very new to C# development. Like Youtube tutorial new. I am trying to build a console app to install services to our servers. Is there a way to pick which .Net version you want to use to build the application? So that I the writer can tell the user which .Net version they should have in their system for the console app to run?
I am using Visual Studio 2019
Thanks to #David Browne's comment under my original post all you need to do is make sure to select .Net Framework version of the Console Application template in Visual Studio project template. Not .Net Core. I wasn't aware there was a difference:
"You set the Target Framework in the Project Properties. But the Project Type determines whether you're targeting .NET Framework or .NET Core"
You have 2 options to get started
.NET Framework - Apps build using .NET framework can only run on Windows. This is an years old proven and secure stable, mature eco system
.NET Core - Apps build using .NET Core can run on Windows, Linux and Mac. It's cross platform and open source. Latest is v5.0.
I recommend you to use the latest .NET Core v5 for your new projects. It's stable and Microsoft is well supporting it. .NET Core much is powerful, faster and optimized.
You can create different kinds of apps using .NET Core. You can create simple console apps, libraries or asp.net core web apps. MVC and WebAPI are supported. As you mentioned, if you want to create a service, There is "Worker Service" project available for .NET Core.
If you create a Worker Service it can run as a Windows Service in Windows machines and a Linux Deamon in Linux machines.
Visual Studio 2019 got well with .NET Core and it's features.
If you need to run a .NET Core project in Windows, Linux or Mac machine, you also need to setup the deployment machine installed with .NET Core runtime. It's available free from Microsoft website. Download.. Install.. Run. That simple

how to install and use Winforms in VSCode on Linux?

(.NET Core Version 3.0.103 (Commit: b7ef045669), Platform/OS: ubuntu linux 18.04-x64, Winforms branch version (date): Thu Mar 26 07:37:13 2020 -0700, VSCode 1.43.2)
I cloned current version of Winforms from Github, tried to use appropriate installation script (build.sh) but finally got only error message (I think it's a bug).
Possibly someone was more succefull?
(Even though Winforms Designer doesn't still work in VSCode on Linux as I got from documentation there should be possibility to create Windows Form Application templates from console, port existing application from .NET Framework to .NET Core and so on).
So can anyone share your experience about this?
Winforms is currently a Windows-only technology in the .NET Core runtime. I haven't seen an instance of someone circumvening this limitation.
.NET Core (and in the future .NET 5 that is built on top of .NET Core) will be the future of .NET. We are committed to support .NET Framework for years to come, however it will not be receiving any new features, those will only be added to .NET Core (and eventually .NET 5). To improve Windows desktop stacks and enable .NET desktop developers to benefit from all the updates of the future, we brought Windows Forms and WPF to .NET Core. They will still remain Windows-only technologies because there are tightly coupled dependencies to Windows APIs. But .NET Core, besides being cross-platform, has many other features that can enhance desktop applications.
The Mono Project supports Winforms, which can be run on linux, however I'm unaware of how to develop Winforms via Mono on vscode.

Where to configure Razor page language version to C# 6?

Recently I've tried to use some C# 6 new feature (interpolated strings) in my ASP.NET MVC (5) .cshtml view, but when running got an error message complaining about the $. It is clear the compiler in C# 5 compatibility mode, or worst it is a C# 5 compiler.
When in editor a popup warning warns me (I do not know it is VS or ReSharper) Feature 'Interpolated strings' is not available in C# 5. Please use language version 6 or greater.
The project itself was set to C# 6, and I can use C# 6 features in my build time compiled code like controllers etc.
Q: Where should I set page compiler version, and will this C# 6 compiler available when I deploy my web app to Azure there?
From String interpolation in a Razor view?:
This only works in MVC6. Alternatively, also from a comment on this link, you'll need to add the roslyn code dom package from ASP.Net.
<div>
#($"Hello {this.Model.SomeProperty}")
</div>
As far as Azure is concerned, please see this link. http://azure.microsoft.com/blog/2015/08/11/update-on-net-framework-4-6-and-azure/
With great power… The tooling, framework and Azure platform teams want
to ensure the powerful tools we give you to help build your dream is
matched by the responsibility we recognize we have to keep it running
in the cloud. At the time of the Visual Studio and Azure SDK 2.7
releases, Framework 4.6 wasn’t supported broadly throughout Azure.
This is due in large part to the fact that just as many teams (or
more) are responsible for the ongoing development and stability of the
Azure platform.
For now, we have an update on the availability of .NET Framework 4.6
for Azure App Service and an article demonstrating how to get .NET
Framework 4.6 working in your Cloud Service roles.
Azure IaaS
For customers using Azure’s Infrastructure as a Service
(IaaS) services, installation of .NET Framework 4.6 is manual. To
install .NET Framework 4.6 on an Azure IaaS virtual machine, the
process is as simple as logging into the virtual machine using Remote
Desktop. Once on the machine, the .NET Framework 4.6 installer can be
downloaded and installed directly onto the virtual machine. Customers
using Azure Automation could also choose to automate the installation
onto Azure virtual machines using PowerShell.
Azure App Service
Update The Azure App Service team is nearing the end
of the testing phase for .NET Framework 4.6 and planning the
deployment to the environments. Currently, the plan is to roll out the
updates to Azure App Service during August 2015.
Azure Cloud Services
Saurabh Bhatia authored an article in the Azure
documentation center outlining how to install the .NET Framework in a
Cloud Service Role. The content has been recently updated to include
commentary specific to .NET Framework 4.6. You can find the updated
article here on the Azure documentation center.
For me installing the Microsoft.CodeDom.Providers.DotNetCompilerPlatform NuGet package solved the problem.

Does the ASP.NET framework have to be installed to run at vb.net Console Application?

Question, I have a need to run a vb.net console application across a multiple servers. I'm wondering if the ASP.NET framework is required to be installed on each of the assets in order to run?
No, ASP.NET is not required. However, appropriate version of .NET Framework is required to be installed on the machine that is supposed to run the application.
I think your understanding of the terminology/technologies is slightly skewed:-
ASP.NET is a web application framework (more info here). In order to run a Web Server that serves up ASP.NET pages you will need the .NET framework installed on the Web Server Machine. Clients that connect to the web server do not need the .NET Framework installed as they just use a web browser.
If you want to run a console application on any machine, that machine needs the .NET framework installed on it.
It makes no difference if the console application or web application is written in C# or VB.NET, the same rules still apply.

Host doesn't support .Net Framework v4

I have developed a small application using silverlight with .Net framework v4 which was hosted internally. Now I was asked to deploy it to the web host of my company. I found that the web host (NetworkSolutions.com) doesn't support v4! ..
How can I go about solving this issue? .. i mean is there a way to use v2 instead .. i expect this will break my code badly.. (given that I'm also using RIA services (wcf))
It can be a noob question but i'm sorry i'm not that experienced with web hosting. I have always hosted my applications internally.
Well, WCF came in .NET 3.5 - so if they support 3.5 you may not need to change very much. I suggest you:
Check that the hosting company supports .NET 3.5
Change the target of your project to .NET 3.5
Fix up any errors locally - hopefully not too many, if you're not using too many .NET 4 features
Deploy to the hosting company

Categories