Avatar of FaheemAhmadGul
FaheemAhmadGul
Flag 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

Installation.NET ProgrammingWindows OS* ASP.NET Core

Avatar of undefined
Last Comment
Chinmay Patel

8/22/2022 - Mon
arnold

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

Both end up on MS site for downloads.
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
Robert Retzer

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
arnold

yes,
C:\Windows\Microsoft.NET is the root folder that you an have .
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.