Azure .Net Framework 4.8 backward compatibility - asp.net-mvc

I have ASP.Net MVC application built on target framework - 4.5 and In Azure .Net Framework version was set to 4.7. application is working fine. I have Visual Studio 2017 version installed supporting .Net Framework till 4.7.2
recently, we received mail from Azure mentioning about platform upgrade to 4.8. I wanted to know is it mandatory to target application to 4.8 version?. Is 4.8 version compatible with 4.5?

Yes, your .NET 4.5 application should continue to run fine on .NET 4.8. However, it's always wise to test it just in case.

Related

How to install dotNET 7 RC2 in App Service

I have a web site built using .NET 7 RC2, but when trying to deploy it to Azure AppServices, it fails with HTTP error 500.31. When running dotnet --info on my AppService, I get the following list of SDK(s) which do not include RC2.
I need a feature that available on ASP.NET 7. Is there a way to install the version I need?
I have created .NET Core 7 App and deployed to Azure App Service. Even I got the same error.
In Azure Portal => App Service => Configuration => General Settings, .NET Version is shown as .NET 6(LTS)
This is because .NET 7 is still in preview version. So by default, it is taken as .NET 6.
Even after updating the Version to .NET 7 (Preview), In KUDU Console I can see the version as .NET 7 RC1.
How to install dotNET 7 RC2 in App Service
In Azure App service, we have 2 ways to install versions.
Way1 :
In KUDU Console => Site extensions => Gallery
type .NET Core 7 in search box , you will find an option to install extensions.
Click on the + sign to install the required extension.
Path to SCM - https://YourAppName.scm.azurewebsites.net/
Way2:
Navigate to Azure Portal => Your App Service => Under Developer Tools Click on Extensions => Add
Search for asp.net core , you will find runtime versions related to .NET 7 RC2
Select the required extension and click on Accept legal terms and click on OK
After adding the extensions in Azure App Service, In VS i have tried to Publish again, I got the below Warning
It clearly says that,In Azure App Service there is no support for .NET 7 RC2 as of now.
Under Settings => Change the Deployment Mode to Self-contained,Save and Publish the App.
Now Iam able to access the App without any issues.

Xamarin target framework is not update

I recently installed android sdk v10 (API 29) in order to set the target framework in my application to v10. But I still can't find it in my application property.
enter image description here
I tried to reload the project but it did not work.
Help?
What's your visual studio version ? Is your Xamarin installation up to date? I suspect that your version of Xamarin.Android is 7.x which means that you won't be able to target Android 8.0 or above even if they are installed through the SDK manager.
You can check the version from Help > About Microsoft Visual Studio

How can I target Android 4.1 in Visual Studio 2019?

I have VS2017 and VS2019 installed side by side on my Windows 10 machine.
I can not compile Xamarin Android 4.1 projects (in VS2019) unless I upgrade them to 4.4 which seems to be the minimum Android SDK version I can target in VS2019. VS2017 compiles fine.
If I create a new Xamarin Android project in VS2019 I can select from 4.4 and above, but in VS2017 I can target right back to 2.3.
Both Visual Studio Xamarin settings are pointing to the same location for the android-sdk (which is on my D: drive, but I did copy it to the standard install location to verify it was not using this as a default, which made no difference)
VS2019 Minimum Android Version
VS2017 Minimum Android Version
Is it possible to target Android 4.1 using VS2019?
Use the following when making decisions with your Android versions:
minSdkVersion (lowest possible) <=
targetSdkVersion == compileSdkVersion/TargetFrameworkVersion (latest SDK)
It's also worthwhile to consider the Android Dashboard to understand how many devices are running a specific version of Android.
https://developer.android.com/about/dashboards
Selecting a higher "Compile using Android version" still lets the project compile.
Under the Android Manifest tab, you can still select the older Minimum and Target Android version allowing VS2019 to be used with this solution/project that uses an older Target Version.
Per the tooltip, Target Framework is only used at runtime.

VS2019 without Windows 8.1 SDK

I'm trying to run an already functional application that requires the Windows 8.1 SDK.
I installed Visual Studio 2019, but there is no option in the 8.1 SDK.
This is for a Windows 10 using Visual Studio 2019 last update.
On my old computer, there was the option to select in "Individual Components", but now no longer the encounter. Does anyone know if there is no such support on VS2019? Or is it necessary to install something more for the support to appear?
This is expected as it is marked as deprecated in Visual Studio 2019:
The Windows 8.1 SDK is no longer available in the Visual Studio
installer. Please upgrade your C++ projects to the latest Windows 10
SDK. If you have a hard dependency on 8.1, you can download it from
the Windows SDK archive.
So download and install the SDK from here.

Can't install MVC 6 beta 6 in an MVC app using .NET 4.6 in Visual Studio 2015

I have an ASP.NET MVC 5.2.3 app which targeted .NET 4.5.2. In Visual Studio 2015 Pro I uninstalled MVC 5.2.3 through the Package manager Console and it was successful. I changed the target .NET framework to 4.6. When I tried to install MVC 5 beta 6, I get the error below. Why? I thought any pre .NET 4.6 assembly can be used in .NET 4.6.
Install-Package : Could not install package 'Microsoft.AspNet.Mvc 6.0.0-beta6'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework.

Resources