File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 77using System . Text ;
88using System . Xml . Linq ;
99using UnityEditor ;
10+ using UnityEditor . Build ;
1011using UnityEditor . Compilation ;
1112using UnityEngine ;
1213using UnityEngine . Profiling ;
@@ -499,10 +500,13 @@ List<ResponseFileData> responseFilesData
499500 var project = document . Element ( "Project" ) ;
500501 var targetFrameWork = project . Elements ( ) . First ( ) . Element ( "TargetFramework" ) ;
501502
502- var group = BuildPipeline . GetBuildTargetGroup (
503+ var targetGroup = BuildPipeline . GetBuildTargetGroup (
503504 EditorUserBuildSettings . activeBuildTarget
504505 ) ;
505- var netSettings = PlayerSettings . GetApiCompatibilityLevel ( group ) ;
506+
507+ var namedBuildTarget = NamedBuildTarget . FromBuildTargetGroup ( targetGroup ) ;
508+
509+ var netSettings = PlayerSettings . GetApiCompatibilityLevel ( namedBuildTarget ) ;
506510
507511 targetFrameWork . Value = GetTargetFrameworkVersion ( netSettings ) ;
508512
You can’t perform that action at this time.
0 commit comments