mirror of
https://github.com/netchx/netch.git
synced 2026-03-26 18:49:46 +08:00
合并dll
This commit is contained in:
@@ -57,10 +57,13 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ILMerge" Version="3.0.41" />
|
||||
<PackageReference Include="IPNetwork2" Version="2.5.211" />
|
||||
<PackageReference Include="MaxMind.GeoIP2" Version="3.2.0" />
|
||||
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.58" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="System.Collections.Immutable" Version="5.0.0-preview.8.20407.11" />
|
||||
<PackageReference Include="System.Reflection.Metadata" Version="5.0.0-preview.8.20407.11" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -107,6 +110,7 @@
|
||||
</ItemGroup>
|
||||
<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="@ECHO OFF
RD /S /Q $(TargetDir)bin >NUL 2>&1
RD /S /Q $(TargetDir)i18n >NUL 2>&1
RD /S /Q $(TargetDir)mode >NUL 2>&1

XCOPY /s /Y $(SolutionDir)binaries $(TargetDir)bin\ >NUL
XCOPY /s /Y $(SolutionDir)translations\i18n $(TargetDir)i18n\ >NUL
XCOPY /s /Y $(SolutionDir)modes\mode $(TargetDir)mode\ >NUL

DEL /f $(TargetDir)*.config >NUL 2>&1
DEL /f $(TargetDir)*.pdb >NUL 2>&1
RD /s /Q $(TargetDir)x86 >NUL 2>&1" />
|
||||
<Exec Command="$(ILMergeConsolePath) $(TargetDir)Netch.exe ^
/out:$(TargetDir)NetchMerged.exe ^
/targetplatform:v4,"C:\Windows\Microsoft.NET\Framework64\v4.0.30319" ^
$(TargetDir)Dia2Lib.dll ^
$(TargetDir)Interop.NetFwTypeLib.dll ^
$(TargetDir)Interop.TaskScheduler.dll ^
$(TargetDir)MaxMind.Db.dll ^
$(TargetDir)MaxMind.GeoIP2.dll ^
$(TargetDir)Microsoft.Diagnostics.FastSerialization.dll ^
$(TargetDir)Microsoft.Diagnostics.Tracing.TraceEvent.dll ^
$(TargetDir)NetchLib.dll ^
$(TargetDir)Newtonsoft.Json.dll ^
$(TargetDir)OSExtensions.dll ^
$(TargetDir)System.Net.IPNetwork.dll ^
$(TargetDir)System.Runtime.CompilerServices.Unsafe.dll ^
$(TargetDir)TraceReloggerLib.dll " />
|
||||
<Exec Command="@ECHO OFF
RD /S /Q $(TargetDir)bin >NUL 2>&1
RD /S /Q $(TargetDir)i18n >NUL 2>&1
RD /S /Q $(TargetDir)mode >NUL 2>&1

XCOPY /s /Y $(SolutionDir)binaries $(TargetDir)bin\ >NUL
XCOPY /s /Y $(SolutionDir)translations\i18n $(TargetDir)i18n\ >NUL
XCOPY /s /Y $(SolutionDir)modes\mode $(TargetDir)mode\ >NUL
MOVE /Y $(TargetDir)NetchMerged.exe $(TargetDir)Netch.exe

DEL /f $(TargetDir)*.config >NUL 2>&1
DEL /f $(TargetDir)*.dll >NUL 2>&1
DEL /f $(TargetDir)*.pdb >NUL 2>&1
RD /s /Q $(TargetDir)x86 >NUL 2>&1
" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user