Skip to content

OpenSolution.bat actually requires .net sdk 9.0 to run #672

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

Closed
3 of 20 tasks
HO-COOH opened this issue May 7, 2025 · 0 comments · Fixed by #673
Closed
3 of 20 tasks

OpenSolution.bat actually requires .net sdk 9.0 to run #672

HO-COOH opened this issue May 7, 2025 · 0 comments · Fixed by #673
Assignees
Labels
bug 🐛 Something isn't working

Comments

@HO-COOH
Copy link

HO-COOH commented May 7, 2025

Describe the bug

The build requirements in readme page only listed .net 8 sdk, but if I run OpenSolution.bat of individual component, it fails to generate the solution file and it prompt to install `.net 9 sdk.

Steps to reproduce

  1. For example, run Labs-Windows\components\TransitionHelper\OpenSolution.bat, with only .net 8 sdk installed
  2. See the error
PS D:\Labs-Windows\components\TransitionHelper> .\OpenSolution.bat
Setting enabled MultiTargets: wasm wasdk
Done. Please close and regenerate your solution. Do not commit these changes to the tooling repository.
Switching Uno to WinUI 3
Updated ..\..\tooling\ProjectHeads\App.Head.Uno.props
Updated ..\..\tooling\MultiTarget\PackageReferences\Uno.props
Updated ..\..\tooling\MultiTarget\WinUI.TargetVersion.props
Done. Please close and regenerate your solution. Do not commit these changes to the tooling repository.
Removing existing heads directory: D:\Labs-Windows\components\TransitionHelper\heads
Installing SingleComponent template
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.101
global.json file: D:\Labs-Windows\global.json

Installed SDKs:
8.0.403 [C:\Program Files\dotnet\sdk]

Install the [9.0.101] .NET SDK or update [D:\Labs-Windows\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Generating heads for TransitionHelper in D:\Labs-Windows\components\TransitionHelper\heads
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.101
global.json file: D:\Labs-Windows\global.json

Installed SDKs:
8.0.403 [C:\Program Files\dotnet\sdk]

Install the [9.0.101] .NET SDK or update [D:\Labs-Windows\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Uninstalling SingleComponent template
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.101
global.json file: D:\Labs-Windows\global.json

Installed SDKs:
8.0.403 [C:\Program Files\dotnet\sdk]

Install the [9.0.101] .NET SDK or update [D:\Labs-Windows\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'tool' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.101
global.json file: D:\Labs-Windows\global.json

Installed SDKs:
8.0.403 [C:\Program Files\dotnet\sdk]

Install the [9.0.101] .NET SDK or update [D:\Labs-Windows\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Generating solution for TransitionHelper in D:\Labs-Windows\components\TransitionHelper\TransitionHelper.sln
警告: No project head could be found at D:\Labs-Windows\components\TransitionHelper\heads\**\*Wasm.csproj for
MultiTarget wasm. Skipping.
警告: No project head could be found at D:\Labs-Windows\components\TransitionHelper\heads\**\*Wasdk.csproj for
MultiTarget wasdk. Skipping.
Running Command: dotnet tool run slngen -o D:\Labs-Windows\components\TransitionHelper\TransitionHelper.sln --folders true --collapsefolders true --ignoreMainProject --platform "Any CPU;x64;x86;ARM64" .\*\*.*proj D:\Labs-Windows\tooling\CommunityToolkit.App.Shared\**\*.*proj D:\Labs-Windows\tooling\CommunityToolkit.Tests.Shared\**\*.*proj D:\Labs-Windows\tooling\CommunityToolkit.Tooling.SampleGen\*.csproj D:\Labs-Windows\tooling\CommunityToolkit.Tooling.TestGen\*.csproj D:\Labs-Windows\tooling\CommunityToolkit.Tooling.XamlNamedPropertyRelay\*.csproj
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'tool' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.101
global.json file: D:\Labs-Windows\global.json

Installed SDKs:
8.0.403 [C:\Program Files\dotnet\sdk]

Install the [9.0.101] .NET SDK or update [D:\Labs-Windows\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Expected behavior

It should generate a solution

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

23H2

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item.

@HO-COOH HO-COOH added the bug 🐛 Something isn't working label May 7, 2025
@Arlodotexe Arlodotexe self-assigned this May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants