dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.59k stars 10.06k forks source link

NETSDK1045 The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download #50960

Closed OurIslam closed 1 year ago

OurIslam commented 1 year ago

Is there an existing issue for this?

Describe the bug

i am getting this error Severity Code Description Project File Line Suppression State Error NETSDK1045 The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download ConsoleApp1 ............................\dotnet\sdk\9.0.100-alpha.1.23474.1\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 166

i have place the binary correctly 9.0.100-alpha.1.23477.3

here is my csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
  </PropertyGroup>

</Project>

and here is nuget.config `

` visual studio version 17.8.9 preview 2.0

is there anything else to use dotnet 9?

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.100-alpha.1.23474.1

Anything else?

No response

wtgodbe commented 1 year ago

Thanks for contacting us, we're currently working on producing an SDK that supports net9.0 - we're hoping to get there within the next month or so. For now, closing this issue as expected.