Skip to content

Commit 769c28f

Browse files
committed
Added VS2019 solution
1 parent 4be0a99 commit 769c28f

File tree

5 files changed

+64
-5
lines changed

5 files changed

+64
-5
lines changed

HardDiskValidator.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30717.126
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HardDiskValidator", "HardDiskValidator\HardDiskValidator.csproj", "{3D440C05-557B-4CAC-920D-1D11551FD8CD}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{3D440C05-557B-4CAC-920D-1D11551FD8CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{3D440C05-557B-4CAC-920D-1D11551FD8CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{3D440C05-557B-4CAC-920D-1D11551FD8CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{3D440C05-557B-4CAC-920D-1D11551FD8CD}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {4B34D27F-4CD5-4314-B369-05EB0E9E54E3}
24+
EndGlobalSection
25+
EndGlobal

HardDiskValidator/HardDiskValidator.VS2005.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
<PropertyGroup>
7979
<PostBuildEvent>if $(ConfigurationName) == Release "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\mt.exe" -nologo -manifest "$(ProjectDir)Properties\HardDiskValidator.exe.manifest" -outputresource:"$(TargetPath)"
8080
if $(ConfigurationName) == Release CD "$(ProjectDir)ILMerge\"
81-
if $(ConfigurationName) == Release "$(ProjectDir)ILMerge\ILMerge.bat"</PostBuildEvent>
81+
if $(ConfigurationName) == Release "$(ProjectDir)ILMerge\ILMerge.VS2005.bat"</PostBuildEvent>
8282
</PropertyGroup>
8383
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFrameworks>net20;net40;netcoreapp3.1</TargetFrameworks>
6+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
7+
<Version>1.0.9</Version>
8+
<UseWindowsForms>true</UseWindowsForms>
9+
</PropertyGroup>
10+
11+
<ItemGroup Condition=" '$(TargetFramework)' == 'net20' ">
12+
<Reference Include="System.Windows.Forms" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="DiskAccessLibrary.Win32" Version="1.5.9" />
17+
</ItemGroup>
18+
19+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Release' And '$(TargetFramework)' != 'netcoreapp3.1'">
20+
<Exec Command="&quot;C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\mt.exe&quot; -nologo -manifest &quot;$(ProjectDir)Properties\HardDiskValidator.exe.manifest&quot; -outputresource:&quot;$(TargetPath)&quot;" />
21+
<Exec Command="&quot;$(ProjectDir)ILMerge\ILMerge.bat&quot; $(TargetFramework)" WorkingDirectory="$(ProjectDir)ILMerge" />
22+
</Target>
23+
24+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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%\HardDiskValidator.exe" "%binaryPath%\HardDiskValidator.exe" "%binaryPath%\DiskAccessLibrary.dll" "%binaryPath%\DiskAccessLibrary.Win32.dll" "%binaryPath%\Utilities.dll"
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
set binaryPath=%CD%\..\bin\Release
2-
set outputPath=%CD%\..\bin\ILMerge
3-
IF NOT EXIST "%outputPath%" MKDIR "%outputPath%"
41
IF ["%programfiles(x86)%"]==[""] SET ilmergePath="%programfiles%\Microsoft\ILMerge"
52
IF NOT ["%programfiles(x86)%"]==[""] SET ilmergePath="%programfiles(x86)%\Microsoft\ILMerge"
6-
%ilmergePath%\ilmerge /ndebug /target:winexe /out:"%outputPath%\HardDiskValidator.exe" "%binaryPath%\HardDiskValidator.exe" "%binaryPath%\DiskAccessLibrary.dll" "%binaryPath%\DiskAccessLibrary.Win32.dll" "%binaryPath%\Utilities.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%\HardDiskValidator.exe" "%binaryPath%\HardDiskValidator.exe" "%binaryPath%\DiskAccessLibrary.dll" "%binaryPath%\DiskAccessLibrary.Win32.dll" "%binaryPath%\DiskAccessLibrary.FileSystems.Abstractions.dll"

0 commit comments

Comments
 (0)