Przeglądaj źródła

Unity.Hotfix.csproj Copy事件改成跨平台的

tanghai 8 lat temu
rodzic
commit
3e1666c3a8

+ 2 - 2
Unity/Assets/Res/Code/Hotfix.dll.bytes.meta

@@ -1,7 +1,7 @@
 fileFormatVersion: 2
 guid: ae44b218243cfc347af99a6875e9e11c
-timeCreated: 1486626652
-licenseType: Pro
+timeCreated: 1508122562
+licenseType: Free
 TextScriptImporter:
   userData: 
   assetBundleName: 

+ 1 - 1
Unity/Assets/Res/Code/Hotfix.mdb.bytes.meta

@@ -1,6 +1,6 @@
 fileFormatVersion: 2
 guid: 23845562ede90da4c8bc06908a4c6667
-timeCreated: 1504579131
+timeCreated: 1508122562
 licenseType: Free
 TextScriptImporter:
   userData: 

+ 2 - 2
Unity/Assets/Res/Code/Hotfix.pdb.bytes.meta

@@ -1,7 +1,7 @@
 fileFormatVersion: 2
 guid: dd08ff64f788e7a4ba0f918632ff8d0f
-timeCreated: 1486626739
-licenseType: Pro
+timeCreated: 1508122562
+licenseType: Free
 TextScriptImporter:
   userData: 
   assetBundleName: 

+ 2 - 2
Unity/Assets/Resources/Code.prefab

@@ -54,7 +54,7 @@ MonoBehaviour:
   data:
   - key: Hotfix.dll
     gameObject: {fileID: 4900000, guid: ae44b218243cfc347af99a6875e9e11c, type: 3}
-  - key: Hotfix.pdb
-    gameObject: {fileID: 4900000, guid: dd08ff64f788e7a4ba0f918632ff8d0f, type: 3}
   - key: Hotfix.mdb
     gameObject: {fileID: 4900000, guid: 23845562ede90da4c8bc06908a4c6667, type: 3}
+  - key: Hotfix.pdb
+    gameObject: {fileID: 4900000, guid: dd08ff64f788e7a4ba0f918632ff8d0f, type: 3}

+ 4 - 7
Unity/Hotfix/Unity.Hotfix.csproj

@@ -106,16 +106,13 @@
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
-    <PostBuildEvent>"$(ProjectDir)\..\Tools\pdb2mdb.exe" $(TargetFileName)
-echo FA | xcopy $(TargetName).dll $(ProjectDir)\..\Assets\Res\Code\$(TargetName).dll.bytes
-echo FA | xcopy $(TargetName).pdb $(ProjectDir)\..\Assets\Res\Code\$(TargetName).pdb.bytes
-echo FA | xcopy $(TargetName).dll.mdb $(ProjectDir)\..\Assets\Res\Code\$(TargetName).mdb.bytes</PostBuildEvent>
+    <PostBuildEvent>"$(ProjectDir)\..\Tools\pdb2mdb.exe" $(TargetFileName)</PostBuildEvent>
   </PropertyGroup>
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">
   </Target>
   <Target Name="AfterBuild">
+    <Copy SourceFiles="$(OutDir)$(TargetName).dll" DestinationFiles="$(ProjectDir)/../Assets/Res/Code/$(TargetName).dll.bytes" />
+    <Copy SourceFiles="$(OutDir)$(TargetName).pdb" DestinationFiles="$(ProjectDir)/../Assets/Res/Code/$(TargetName).pdb.bytes" />
+    <Copy SourceFiles="$(OutDir)$(TargetName).dll.mdb" DestinationFiles="$(ProjectDir)/../Assets/Res/Code/$(TargetName).mdb.bytes" />
   </Target>
-  -->
 </Project>

+ 6 - 1
Unity/Unity.sln

@@ -1,6 +1,8 @@
 
 Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2017
+# Visual Studio 15
+VisualStudioVersion = 15.0.26730.15
+MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Plugins", "Unity.Plugins.csproj", "{D1FDB199-0FB7-099D-3771-C6A942E4E326}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity", "Unity.csproj", "{CF118143-7E37-744F-BE45-3F55345FEC40}"
@@ -41,4 +43,7 @@ Global
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {ED6F29BC-3CD2-4A7E-938F-1F85FFE60CB1}
+	EndGlobalSection
 EndGlobal