فهرست منبع

修复!ENABLE_DLL模式,分析器不生效的问题

tanghai 2 سال پیش
والد
کامیت
f581eae937
1فایلهای تغییر یافته به همراه21 افزوده شده و 1 حذف شده
  1. 21 1
      Unity/Assets/Scripts/Editor/AssetPostProcessor/OnGenerateCSProjectProcessor.cs

+ 21 - 1
Unity/Assets/Scripts/Editor/AssetPostProcessor/OnGenerateCSProjectProcessor.cs

@@ -29,6 +29,26 @@ namespace ET
             {
                 return GenerateCustomProject(content);
             }
+            
+            if (path.EndsWith("Unity.Model.csproj"))
+            {
+                return GenerateCustomProject(content);
+            }
+            
+            if (path.EndsWith("Unity.ModelView.csproj"))
+            {
+                return GenerateCustomProject(content);
+            }
+            
+            if (path.EndsWith("Unity.Hotfix.csproj"))
+            {
+                return GenerateCustomProject(content);
+            }
+            
+            if (path.EndsWith("Unity.HotfixView.csproj"))
+            {
+                return GenerateCustomProject(content);
+            }
 
             if (path.EndsWith("Unity.AllModel.csproj"))
             {
@@ -130,7 +150,7 @@ namespace ET
                         "   </Target>\n");
                 }
             }
-
+            
             foreach (string file in deleteFile)
             {
                 if (File.Exists(file))