Reputation:
Following this MS doc/article, created .NET 6 Console App in Visual Studio 2022. No Modifications has done yet.
While linking the given NuGet Package, I'm getting this error: Package 'Microsoft.Azure.WebJobs.Extensions' is incompatible with 'all' frameworks in project
in the package manager console.
.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
What is the cause of this issue?
Also, I cannot see any Azure NuGet Packages in the Visual Studio.
Do I want to update anything here?
Upvotes: 1
Views: 640
Reputation: 8420
I cannot see any Azure NuGet Packages in the Visual Studio.
There should be nuget.org
in Tools-> Options -> Nuget Package Manager->Package Sources.
If it doesn't exist, click on +
to add nuget.org
and its source should be https://api.nuget.org/v3/index.json as shown below:
Once you add nuget.org
, you can see all the packages and install the required ones in your project.
Upvotes: 2