Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build: getting error "Invalid target framework 'unsupported'" #2984

Open
fandrei opened this issue Oct 2, 2024 · 0 comments
Open

Can't build: getting error "Invalid target framework 'unsupported'" #2984

fandrei opened this issue Oct 2, 2024 · 0 comments

Comments

@fandrei
Copy link

fandrei commented Oct 2, 2024

I start build using runbuild.ps1 and getting the following error. Am I missing something, or it's broken?

Importing psake
Starting build.ps1
psake version 4.4.2
Copyright (c) 2010-2015 James Kovacs, Damian Hickey & Contributors

Executing Clean
Setting location to D:\Projects.ThirdParty\.NET\Newtonsoft.Json
Deleting existing working directory D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Working
Creating working directory D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Working

    Directory: D:\Projects.ThirdParty\.NET\Newtonsoft.Json

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-10-01    18:29                Working
Executing Build
Found 1 enabled builds

    Directory: D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Build

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-10-01    18:21                Temp
Downloading dotnet-install.ps1
dotnet-install: .NET Core SDK with version '8.0.300' is already installed.
dotnet-install: Adding to current process PATH: "C:\Users\Andrei\AppData\Local\Microsoft\dotnet\". Note: This change will not be visible if PowerShell was run as a child process.
dotnet-install: .NET Core SDK with version '6.0.400' is already installed.
dotnet-install: .NET Core SDK with version '3.1.402' is already installed.
dotnet-install: .NET Core SDK with version '2.1.818' is already installed.
MSBuild path C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
Restoring packages for net6.0 in D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Src\Newtonsoft.Json.sln

MSBuild version 17.11.9+a69bbaaf5 for .NET Framework

  Determining projects to restore...
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(174,5): error : Invalid restore input. Invalid target framework 'unsupported'. Input files: D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Src\Newtonsoft.Json.Tests\Newtonsoft.Json.Tests.csproj. [D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Src\Newtonsoft.Json.sln]
Error: 2024-10-01 18:29:09:
 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Exec: Error restoring D:\Projects.ThirdParty\.NET\Newtonsoft.Json\Src\Newtonsoft.Json.sln
build.ps1 failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant