When opening a default empty project in Flax 1.9, I get this error in the editor log
[ 00:00:02.999 ]: [Info] Missing .NET SDK
[ 00:00:03.501 ]: [Info] Exception: Missing .NET SDK 8.0 (or higher).
Stack trace:
[ 00:00:03.520 ]: [Info] at nethost.Setup(BuildOptions options)
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 227
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 238
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 257
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 238
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 238
at Flax.Build.Builder.CollectModules(BuildData buildData, Module module, Boolean withApi) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 257
at Flax.Build.Builder.BuildTargetNativeCpp(RulesAssembly rules, TaskGraph graph, Target target, Dictionary`2 buildContext, Toolchain toolchain, TargetConfiguration configuration, Boolean isBuildingReference, Boolean skipBuild) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 815
at Flax.Build.Builder.BuildTargetReferenceNativeCpp(Dictionary`2 buildContext, BuildData buildData, Reference reference) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 640
at Flax.Build.Builder.BuildTargetNativeCppBindingsOnly(RulesAssembly rules, TaskGraph graph, Target target, Dictionary`2 buildContext, Platform platform, TargetArchitecture architecture, TargetConfiguration configuration, Boolean skipBuild) in F:\FlaxEngine\Source\Tools\Flax.Build\Build\NativeCpp\Builder.NativeCpp.cs:line 1133
at Flax.Build.Builder.BuildTargets() in F:\FlaxEngine\Source\Tools\Flax.Build\Build\Builder.cs:line 350
at Flax.Build.Program.Main() in F:\FlaxEngine\Source\Tools\Flax.Build\Program.cs:line 152
However, I have verified the NET SDK is installed correctly:
C:\Users\Tony>dotnet --info
.NET SDK:
Version: 8.0.404
Commit: 7b190310f2
Workload version: 8.0.400-manifests.996cfe54
MSBuild version: 17.11.9+a69bbaaf5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.27749
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\x64\sdk\8.0.404\
.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[maui-windows]
Installation Source: VS 17.12.35506.116
Manifest Version: 8.0.3/8.0.100
Manifest Path: C:\Program Files\dotnet\x64\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.3\WorkloadManifest.json
Install Type: FileBased
[maccatalyst]
Installation Source: VS 17.12.35506.116
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\x64\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.0.8478\WorkloadManifest.json
Install Type: FileBased
[ios]
Installation Source: VS 17.12.35506.116
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\x64\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.0.8478\WorkloadManifest.json
Install Type: FileBased
[android]
Installation Source: VS 17.12.35506.116
Manifest Version: 34.0.43/8.0.100
Manifest Path: C:\Program Files\dotnet\x64\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.43\WorkloadManifest.json
Install Type: FileBased
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
8.0.404 [C:\Program Files\dotnet\x64\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\x64\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\x64\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\x64\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\x64\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\x64\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\x64\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
arm64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation]
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
DOTNET_ROOT [C:\Program Files\dotnet\x64]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Outside Flax I can build and run net 8 apps without issues. I have set both the path environment variable correctly as well as the DOTNET_ROOT
I am on Windows.