public static void DrawBuildButtons(this MSBuildProjectReference msBuildProjectReference)
        {
            using (new EditorGUILayout.HorizontalScope())
            {
                if (GUILayout.Button("Build"))
                {
                    MSBuildProjectBuilder.BuildProject(msBuildProjectReference);
                }

                if (GUILayout.Button("Rebuild"))
                {
                    MSBuildProjectBuilder.BuildProject(msBuildProjectReference, MSBuildProjectBuilder.RebuildTargetArgument);
                }
            }
        }
Beispiel #2
0
 public static void DrawBuildButtons(this MSBuildProjectReference msBuildProjectReference)
 {
     using (new EditorGUILayout.HorizontalScope())
     {
         if (!msBuildProjectReference.Profiles.Any())
         {
             EditorGUILayout.HelpBox($"Define profiles below.", MessageType.Error);
         }
         else
         {
             foreach (var profile in msBuildProjectReference.Profiles)
             {
                 if (GUILayout.Button(profile.name))
                 {
                     MSBuildProjectBuilder.BuildProject(msBuildProjectReference, profile.name);
                 }
             }
         }
     }
 }