MSBuildForUnity icon indicating copy to clipboard operation
MSBuildForUnity copied to clipboard

ArgumentException: The provided target platform group name () is not valid. When "Full Generation Enabled" Ubuntu.

Open scranley opened this issue 3 years ago • 2 comments

Ubuntu: 22.04.1 LTS dotnet sdk 6.0 Windows x86 build. Clean Unity project with just one scene and a cube.

ArgumentException: The provided target platform group name () is not valid. UnityEditor.PlayerSettings.SetApiCompatibilityLevel (UnityEditor.Build.NamedBuildTarget buildTarget, UnityEditor.ApiCompatibilityLevel value) (at /home/bokken/buildslave/unity/build/Editor/Mono/PlayerSettings.bindings.cs:1091) UnityEditor.PlayerSettings.SetApiCompatibilityLevel (UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.ApiCompatibilityLevel value) (at /home/bokken/buildslave/unity/build/Editor/Mono/PlayerSettings.bindings.cs:895) Microsoft.Build.Unity.ProjectGeneration.CompilationPlatformInfo.GetEditorPlatform () (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/CompilationPlatformInfo.cs:71) Microsoft.Build.Unity.ProjectGeneration.UnityProjectInfo..ctor (UnityEngine.ILogger logger, System.Collections.Generic.Dictionary`2[TKey,TValue] supportedBuildTargets, Microsoft.Build.Unity.ProjectGeneration.MSBuildToolsConfig config, System.Boolean performCompleteParse) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/UnityProjectInfo.cs:117) Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.RefreshGeneratedOutput (System.Boolean forceGenerateEverything, System.Boolean forceCompleteGeneration) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:241) Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.ToggleAutoGenerate () (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:135)

scranley avatar Sep 02 '22 22:09 scranley

ping... nudging to see if any action by anyone in the community on this. Is there something on the build platform targets that can be tweaked to get around this?

kirkpabk avatar Jun 09 '23 16:06 kirkpabk

Interesting - doesn't seem to like us passing 'Unknown' to PlayerSettings.SetApiCompatibility. You could try using a different value for that on Linux?

jwittner avatar Jun 09 '23 22:06 jwittner