anon
anon

Reputation:

error: Package 'Microsoft.Azure.WebJobs.Extensions' is incompatible with 'all' frameworks in project '

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. enter image description here

Do I want to update anything here?

Upvotes: 1

Views: 640

Answers (1)

Pravallika KV
Pravallika KV

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.organd its source should be https://api.nuget.org/v3/index.json as shown below:

enter image description here

Once you add nuget.org, you can see all the packages and install the required ones in your project.

enter image description here

enter image description here

Upvotes: 2

Related Questions