File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 3939 <ReferencePath Remove =" @(ReferencePath)" Condition =" '%(FileName)' == 'Utilities'" />
4040 </ItemGroup >
4141 </Target >
42+
43+ <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" Condition =" '$(Configuration)' == 'Release' And '$(TargetFramework)' != 'netcoreapp3.1'" >
44+ <Exec Command =" " C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\mt.exe" -nologo -manifest " $(ProjectDir)Properties\DynamicDiskPartitioner.exe.manifest" -outputresource:" $(TargetPath)" " />
45+ <Exec Command =" " $(ProjectDir)ILMerge\ILMerge.bat" $(TargetFramework)" WorkingDirectory =" $(ProjectDir)ILMerge" />
46+ </Target >
4247
4348</Project >
Original file line number Diff line number Diff line change 1+ IF [" %programfiles(x86)% " ]== [" " ] SET ilmergePath = " %programfiles% \Microsoft\ILMerge"
2+ IF NOT [" %programfiles(x86)% " ]== [" " ] SET ilmergePath = " %programfiles(x86)% \Microsoft\ILMerge"
3+ set binaryPath = %CD% \..\bin\Release
4+ set outputPath = %CD% \..\bin\ILMerge
5+ IF NOT EXIST " %outputPath% " MKDIR " %outputPath% "
6+ %ilmergePath% \ilmerge /ndebug /target:winexe /out:" %outputPath% \DynamicDiskPartitioner.exe" " %binaryPath% \DynamicDiskPartitioner.exe" " %binaryPath% \Utilities.dll" " %binaryPath% \DiskAccessLibrary.dll" " %binaryPath% \DiskAccessLibrary.Win32.dll" " %binaryPath% \DiskAccessLibrary.FileSystems.Abstractions.dll"
Original file line number Diff line number Diff line change 1- set binaryPath = %CD% \..\bin\Release
2- set outputPath = %CD% \..\bin\ILMerge
3- IF NOT EXIST " %outputPath% " MKDIR " %outputPath% "
41IF [" %programfiles(x86)% " ]== [" " ] SET ilmergePath = " %programfiles% \Microsoft\ILMerge"
52IF NOT [" %programfiles(x86)% " ]== [" " ] SET ilmergePath = " %programfiles(x86)% \Microsoft\ILMerge"
6- %ilmergePath% \ilmerge /ndebug /target:winexe /out:" %outputPath% \DynamicDiskPartitioner.exe" " %binaryPath% \DynamicDiskPartitioner.exe" " %binaryPath% \Utilities.dll" " %binaryPath% \DiskAccessLibrary.dll" " %binaryPath% \DiskAccessLibrary.Win32.dll" " %binaryPath% \DiskAccessLibrary.FileSystems.Abstractions.dll"
3+
4+ set TargetFramework = %1
5+ if %TargetFramework% == net20 set TargetPlaform = 2.0
6+ if %TargetFramework% == net40 set TargetPlaform = 4.0
7+ set binaryPath = %CD% \..\bin\Release\%TargetFramework%
8+ set outputPath = %CD% \..\bin\ILMerge\%TargetFramework%
9+ IF NOT EXIST " %outputPath% " MKDIR " %outputPath% "
10+ %ilmergePath% \ilmerge /targetplatform=%TargetPlaform% /ndebug /target:winexe /out:" %outputPath% \DynamicDiskPartitioner.exe" " %binaryPath% \DynamicDiskPartitioner.exe" " %binaryPath% \Utilities.dll" " %binaryPath% \DiskAccessLibrary.dll" " %binaryPath% \DiskAccessLibrary.Win32.dll" " %binaryPath% \DiskAccessLibrary.FileSystems.Abstractions.dll"
You can’t perform that action at this time.
0 commit comments