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