Link to home
Start Free TrialLog in
Avatar of FaheemAhmadGul
FaheemAhmadGulFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Can you Install .NET Framework 3.1.0 on a computer which has already got .NET 6 installed on it

I am learning Windows Azure CosmosDB. I have an Azure Subscription and have created a CosmosDB database in one of my resource group on Azure. After creating the CosmosDB Azure provided a link to download a sample Console App which can connect to your CosmosDB database and read and write data to your database.
However, I when I have tried to run this sample App on my computer which has
.NET Framework 6 and Visual Studio 2022 installed on it, the application gives an error that says it needs .NET 3.1.0 on my machine.
My question is can I install this older version of .NET framework alongside my latest .NET 6 Framework and if I do that could having an old and new version of .NET Framework side by side can give me any problems. 

The actual error message I get on trying to run this sample app is as follows:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' (x64) was not found.
  - The following frameworks were found:
      6.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=win10-x64

Avatar of arnold
arnold
Flag of United States of America image

https://dotnet.microsoft.com/download/dotnet/3.1

Both end up on MS site for downloads.
Avatar of FaheemAhmadGul

ASKER

Thank you for your comment. I know where the version 3.1 is available for download from. My question is can you install both old version (in this case 3.1) and the new .NET 6 on the same machine.
EXPERT CERTIFIED SOLUTION
Avatar of Robert Retzer
Robert Retzer
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes,
C:\Windows\Microsoft.NET is the root folder that you an have .
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial