Error in building

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bitandev97

I am following the tutorials in vector and i did the following code in C#
using Godot;
using System;

public class Node2D : Godot.Node2D
// Declare member variables here. Examples:
// private int a = 2;
// private string b = “text”;

// Called when the node enters the scene tree for the first time.
public override void _Ready()
public override _Process()
    var Node2D=(Node2D) GetNode("Node2D");
    Node2D.Position = new Vector2(400,300);

and i have only one node2d in scene … but while running it shows cant build… Please help me in this one

What are your errors when you try to build?

timothybrentwood | 2021-05-07 12:09

F:\GODOT PROJECTS\VEctro\VEctro.csproj(0,0): The SDK resolver type “DotNetMSBuildSdkResolver” failed to load. The type initializer for ‘Microsoft.DotNet.MSBuildSdkResolver.VSSettings’ threw an exception.
Getting this when build is set to msbuild(mono) in build tab in editor settings…

F:\GODOT PROJECTS\VEctro\VEctro.csproj(0,0): Skipping restore for project ‘F:\GODOT PROJECTS\VEctro\VEctro.csproj’. The project file may be invalid or missing targets required for restore.
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): Unable to find a project to restore!

C:\Users\MANDAL.nuget\packages\\3.3.0\Sdk\Sdk.props(29,11): The SDK ‘Microsoft.NET.Sdk’ specified could not be found.
this when set to ms build vs build tools
i have both ms build tools and mono installed …

bitandev97 | 2021-05-10 11:22