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

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

Open
scranley opened this issue Sep 2, 2022 · 2 comments

Comments

@scranley
Copy link

scranley commented Sep 2, 2022

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/com.microsoft.msbuildforunity@0.9.2-20211109.1/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/com.microsoft.msbuildforunity@0.9.2-20211109.1/Editor/ProjectGenerator/Scripts/UnityProjectInfo.cs:117)
Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.RefreshGeneratedOutput (System.Boolean forceGenerateEverything, System.Boolean forceCompleteGeneration) (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20211109.1/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:241)
Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.ToggleAutoGenerate () (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20211109.1/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:135)

@kirkpabk
Copy link

kirkpabk commented Jun 9, 2023

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?

@jwittner
Copy link
Member

jwittner commented Jun 9, 2023

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

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

3 participants