Browse Source

修复ET工程编译问题,以及删除不必要的unity代码引用

大爷 2 years ago
parent
commit
5a1bd3b835
2 changed files with 11 additions and 71 deletions
  1. 6 59
      DotNet/Hotfix/DotNet.Hotfix.csproj
  2. 5 12
      DotNet/Model/DotNet.Model.csproj

+ 6 - 59
DotNet/Hotfix/DotNet.Hotfix.csproj

@@ -22,68 +22,10 @@
         <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     </PropertyGroup>
     <ItemGroup>
-
-        <Compile Include="..\..\Unity\Assets\Scripts\Codes\Hotfix\Client\**\*.cs"> 
-            <Link>Client\%(RecursiveDir)%(FileName)%(Extension)</Link>
-        </Compile> 
-
-        <Compile Include="..\..\Unity\Assets\Scripts\Codes\Hotfix\Server\**\*.cs">
-            <Link>Server\%(RecursiveDir)%(FileName)%(Extension)</Link>
-        </Compile>
-
         <Compile Include="..\..\Unity\Assets\Scripts\Codes\Hotfix\Share\**\*.cs">
             <Link>Share\%(RecursiveDir)%(FileName)%(Extension)</Link> 
         </Compile>
-
-        <Compile Update="Demo\Helper\DisconnectHelper.cs">
-          <Link>Server\Demo\Helper\DisconnectHelper.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\Handler\C2G_EnterMapHandler.cs">
-          <Link>Server\Demo\Scenes\Gate\Handler\C2G_EnterMapHandler.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\Handler\C2G_LoginGateHandler.cs">
-          <Link>Server\Demo\Scenes\Gate\Handler\C2G_LoginGateHandler.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\Handler\C2G_PingHandler.cs">
-          <Link>Server\Demo\Scenes\Gate\Handler\C2G_PingHandler.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\Handler\R2G_LoginVerifySuccessHandler.cs">
-          <Link>Server\Demo\Scenes\Gate\Handler\R2G_LoginVerifySuccessHandler.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\GateTokenInfoComponentSystem.cs">
-          <Link>Server\Demo\Scenes\Gate\GateTokenInfoComponentSystem.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\PlayerComponentSystem.cs">
-          <Link>Server\Demo\Scenes\Gate\PlayerComponentSystem.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\PlayerSystem.cs">
-          <Link>Server\Demo\Scenes\Gate\PlayerSystem.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Gate\SessionPlayerComponentSystem.cs">
-          <Link>Server\Demo\Scenes\Gate\SessionPlayerComponentSystem.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Realm\Handler\C2R_LoginHandler.cs">
-          <Link>Server\Demo\Scenes\Realm\Handler\C2R_LoginHandler.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Realm\RealmGateAddressHelper.cs">
-          <Link>Server\Demo\Scenes\Realm\RealmGateAddressHelper.cs</Link>
-        </Compile>
-
-        <Compile Update="Demo\Scenes\Realm\UserSessionComponentSystem.cs">
-          <Link>Server\Demo\Scenes\Realm\UserSessionComponentSystem.cs</Link>
-        </Compile>
-
-        <Compile Remove="..\..\Unity\Assets\Scripts\Codes\Hotfix\Server\**" /> 
+        
     </ItemGroup>
     <ItemGroup>
         <ProjectReference Include="..\..\Share\Analyzer\Share.Analyzer.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
@@ -91,5 +33,10 @@
         <ProjectReference Include="..\Loader\DotNet.Loader.csproj" />
         <ProjectReference Include="..\Model\DotNet.Model.csproj" />
     </ItemGroup>
+      <ItemGroup>
+    <Reference Include="Ice">
+      <HintPath>..\library\Ice.dll</HintPath>
+    </Reference>
+  </ItemGroup>
 
 </Project>

+ 5 - 12
DotNet/Model/DotNet.Model.csproj

@@ -24,24 +24,12 @@
         <Optimize>true</Optimize>
     </PropertyGroup>
     <ItemGroup>
-
-        <Compile Include="..\..\Unity\Assets\Scripts\Codes\Model\Server\**\*.cs"> 
-            <Link>Server\%(RecursiveDir)%(FileName)%(Extension)</Link>
-        </Compile>
-
-        <Compile Include="..\..\Unity\Assets\Scripts\Codes\Model\Client\**\*.cs"> 
-            <Link>Client\%(RecursiveDir)%(FileName)%(Extension)</Link>
-        </Compile>
-        
         <Compile Include="..\..\Unity\Assets\Scripts\Codes\Model\Share\**\*.cs">
             <Link>Share\%(RecursiveDir)%(FileName)%(Extension)</Link>
         </Compile>
-
         <Compile Include="..\..\Unity\Assets\Scripts\Codes\Model\Generate\Server\**\*.cs"> 
             <Link>Generate\%(RecursiveDir)%(FileName)%(Extension)</Link>
         </Compile>
-
-        <Compile Remove="..\..\Unity\Assets\Scripts\Codes\Model\Server\**" />
         
     </ItemGroup> 
     <ItemGroup> 
@@ -50,4 +38,9 @@
         <ProjectReference Include="..\Loader\DotNet.Loader.csproj" />
         <ProjectReference Include="..\ThirdParty\DotNet.ThirdParty.csproj" />
     </ItemGroup>
+      <ItemGroup>
+    <Reference Include="Ice">
+      <HintPath>..\library\Ice.dll</HintPath>
+    </Reference>
+  </ItemGroup>
 </Project>