Home > Net >  Problem running .NET Core Azure functions on Visual Studio Code. Predefined type 'System.Object
Problem running .NET Core Azure functions on Visual Studio Code. Predefined type 'System.Object

Time:01-21

I am getting following error in visual studio code while running brand new Azure function project created newly.

It's roughly about .NET Core Sdk and all other errors seems to be relate with that. Can somebody help me to get rid from them.

I already tested all other links but my problem is not related with the any of the described issues. enter image description here

CSProjFile

enter image description here

enter image description here enter image description here While do

CodePudding user response:

As I have .Net SDK 6.0.100 along with 6.0.101 as you can see below:

enter image description here

And Created the Azure Functions of Stack .Net 6.0 Http Trigger Function through Visual Studio Code, it is running successfully.

enter image description here

Here is my .csproj file:

enter image description here

As I believe that you're missing the SDK Package Reference in the ItemGroup of your .csproj file:

<PackageReference  Include="Microsoft.NET.Sdk.Functions"  Version="4.0.1"  />

Include it in the .csproj file and check running the function.

  •  Tags:  
  • Related