Skip to content

Commit 50fa5b9

Browse files
committed
x64 & x86 versions
1 parent f88b1d1 commit 50fa5b9

File tree

5 files changed

+71
-11
lines changed

5 files changed

+71
-11
lines changed

TrayRAMBooster.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,25 @@ EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
1113
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
1216
EndGlobalSection
1317
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1418
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1519
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|x64.ActiveCfg = Debug|x64
21+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|x64.Build.0 = Debug|x64
22+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|x86.ActiveCfg = Debug|x86
23+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Debug|x86.Build.0 = Debug|x86
1624
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|Any CPU.ActiveCfg = Release|Any CPU
1725
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|x64.ActiveCfg = Release|x64
27+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|x64.Build.0 = Release|x64
28+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|x86.ActiveCfg = Release|x86
29+
{E2873512-EC83-4D38-A4A9-F51F7A5A8391}.Release|x86.Build.0 = Release|x86
1830
EndGlobalSection
1931
GlobalSection(SolutionProperties) = preSolution
2032
HideSolutionNode = FALSE

TrayRAMBooster/Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public static void Main(string[] args) {
3030
return;
3131
}
3232

33-
if (Environment.Is64BitOperatingSystem != Environment.Is64BitProcess) {
34-
if (MessageBox.Show("You are running an application build made for a different OS architecture.\nIt is not compatible!\nWould you like to download correct version?", Updater.ApplicationName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) {
35-
Updater.VisitAppSite("releases");
36-
}
37-
Environment.Exit(0);
38-
}
33+
// if (Environment.Is64BitOperatingSystem != Environment.Is64BitProcess) {
34+
// if (MessageBox.Show("You are running an application build made for a different OS architecture.\nIt is not compatible!\nWould you like to download correct version?", Updater.ApplicationName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) {
35+
// Updater.VisitAppSite("releases");
36+
// }
37+
// Environment.Exit(0);
38+
// }
3939

4040
var applicationContext = new TrayApplicationContext();
4141
Application.Run(applicationContext);

TrayRAMBooster/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
[assembly: Guid("E2873512-EC83-4D38-A4A9-F51F7A5A8391")]
1616

17-
[assembly: AssemblyVersion("1.9.*")]
17+
[assembly: AssemblyVersion("2.0.*")]

TrayRAMBooster/TrayRAMBooster.csproj

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,50 @@
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66
<OutputPath>bin\</OutputPath>
77
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
8+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
89
<Deterministic>false</Deterministic>
910
<LangVersion>latest</LangVersion>
1011
<ApplicationIcon>Properties\app.ico</ApplicationIcon>
1112
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
13+
<Platforms>AnyCPU;x64;x86</Platforms>
14+
<Configurations>Debug;Release</Configurations>
1215
</PropertyGroup>
1316
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DefineConstants>TRACE;DEBUG</DefineConstants>
18+
<DebugType>full</DebugType>
19+
<AssemblyName>TrayRAMBooster</AssemblyName>
20+
<PlatformTarget>AnyCPU</PlatformTarget>
21+
</PropertyGroup>
22+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
23+
<DefineConstants>TRACE;DEBUG</DefineConstants>
24+
<DebugType>full</DebugType>
25+
<AssemblyName>TrayRAMBooster_x86</AssemblyName>
26+
<PlatformTarget>x86</PlatformTarget>
27+
</PropertyGroup>
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
29+
<DefineConstants>TRACE;DEBUG</DefineConstants>
30+
<DebugType>full</DebugType>
31+
<AssemblyName>TrayRAMBooster_x64</AssemblyName>
32+
<PlatformTarget>x64</PlatformTarget>
1433
</PropertyGroup>
1534
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
16-
<Optimize>true</Optimize>
35+
<Optimize>True</Optimize>
1736
<DebugType>none</DebugType>
37+
<AssemblyName>TrayRAMBooster</AssemblyName>
38+
<PlatformTarget>AnyCPU</PlatformTarget>
1839
</PropertyGroup>
40+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
41+
<Optimize>True</Optimize>
42+
<DebugType>none</DebugType>
43+
<AssemblyName>TrayRAMBooster_x64</AssemblyName>
44+
<PlatformTarget>x64</PlatformTarget>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
47+
<Optimize>True</Optimize>
48+
<DebugType>none</DebugType>
49+
<AssemblyName>TrayRAMBooster_x86</AssemblyName>
50+
<PlatformTarget>x86</PlatformTarget>
51+
</PropertyGroup>
1952
<ItemGroup>
2053
<Reference Include="System.IO.Compression" />
2154
<Reference Include="System.Web.Extensions" />
@@ -34,4 +67,7 @@
3467
<PrivateAssets>all</PrivateAssets>
3568
</PackageReference>
3669
</ItemGroup>
70+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)' == 'Release'">
71+
<Exec Command="for %%f in ($(OutDir)\*) do if not %%~xf==.exe del /S /Q &quot;%%f&quot;" />
72+
</Target>
3773
</Project>

make.bat

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ SET msbuild="%%F"
55
)
66
ECHO %msbuild%
77

8-
@%msbuild% TrayRAMBooster.sln /t:restore /p:RestorePackagesConfig=true
9-
@%msbuild% TrayRAMBooster.sln /t:Rebuild /p:DebugType=None /p:Configuration=Release
10-
118
rem dotnet build TrayRAMBooster.sln /t:Rebuild /p:DebugType=None /p:Configuration=Release
9+
@%msbuild% TrayRAMBooster.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="Any CPU"
10+
if errorlevel 1 goto error
11+
@%msbuild% TrayRAMBooster.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"
12+
if errorlevel 1 goto error
1213

14+
if [%1]==[all] (
15+
16+
@%msbuild% TrayRAMBooster.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x64"
17+
if errorlevel 1 goto error
18+
@%msbuild% TrayRAMBooster.sln /t:Rebuild /p:Configuration=Release /p:Platform="x64"
1319
if errorlevel 1 goto error
1420

21+
@%msbuild% TrayRAMBooster.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x86"
22+
if errorlevel 1 goto error
23+
@%msbuild% TrayRAMBooster.sln /t:Rebuild /p:Configuration=Release /p:Platform="x86"
24+
if errorlevel 1 goto error
25+
)
26+
1527
goto exit
1628
:error
1729
pause

0 commit comments

Comments
 (0)