Set the system tray icon font to a fixed size. Fixed the exiting of the application when the form was never shown and Close() is called.
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6 <ProjectGuid>{F5E0C1F7-9E9B-46F2-AC88-8C9C1C923880}</ProjectGuid>
7 <ProductVersion>9.0.30729</ProductVersion>
8 <SchemaVersion>2.0</SchemaVersion>
9 <OutputType>WinExe</OutputType>
10 <NoStandardLibraries>false</NoStandardLibraries>
11 <AssemblyName>OpenHardwareMonitor</AssemblyName>
12 <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
13 <FileAlignment>512</FileAlignment>
14 <RootNamespace>OpenHardwareMonitor</RootNamespace>
15 <ApplicationIcon>Resources\icon.ico</ApplicationIcon>
16 <ApplicationManifest>Resources\app.manifest</ApplicationManifest>
17 <StartupObject>OpenHardwareMonitor.Program</StartupObject>
19 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20 <DebugSymbols>true</DebugSymbols>
21 <DebugType>full</DebugType>
22 <Optimize>false</Optimize>
23 <OutputPath>Bin\Debug\</OutputPath>
24 <DefineConstants>TRACE;DEBUG</DefineConstants>
25 <ErrorReport>prompt</ErrorReport>
26 <WarningLevel>4</WarningLevel>
27 <UseVSHostingProcess>false</UseVSHostingProcess>
29 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30 <DebugType>none</DebugType>
31 <Optimize>true</Optimize>
32 <OutputPath>Bin\Release\</OutputPath>
33 <DefineConstants>TRACE</DefineConstants>
34 <ErrorReport>prompt</ErrorReport>
35 <WarningLevel>4</WarningLevel>
36 <UseVSHostingProcess>false</UseVSHostingProcess>
38 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Merge|AnyCPU' ">
39 <OutputPath>bin\Merge\</OutputPath>
40 <DefineConstants>TRACE</DefineConstants>
41 <Optimize>true</Optimize>
42 <PlatformTarget>AnyCPU</PlatformTarget>
43 <UseVSHostingProcess>false</UseVSHostingProcess>
44 <ErrorReport>prompt</ErrorReport>
45 <OutputType>Module</OutputType>
48 <Reference Include="Aga.Controls, Version=1.7.0.0, Culture=neutral, PublicKeyToken=fcc90fbf924463a3, processorArchitecture=MSIL">
49 <SpecificVersion>False</SpecificVersion>
50 <HintPath>External\Aga.Controls.dll</HintPath>
52 <Reference Include="System" />
53 <Reference Include="System.Configuration" />
54 <Reference Include="System.Data" />
55 <Reference Include="System.Drawing" />
56 <Reference Include="System.Management" />
57 <Reference Include="System.Windows.Forms" />
58 <Reference Include="System.Xml" />
61 <Compile Include="GUI\ParameterForm.cs">
62 <SubType>Form</SubType>
64 <Compile Include="GUI\ParameterForm.Designer.cs">
65 <DependentUpon>ParameterForm.cs</DependentUpon>
67 <Compile Include="GUI\SensorNotifyIcon.cs" />
68 <Compile Include="GUI\SensorSystemTray.cs" />
69 <Compile Include="GUI\TypeNode.cs" />
70 <Compile Include="Hardware\CPU\AMD10CPU.cs" />
71 <Compile Include="Hardware\CPU\AMD0FCPU.cs" />
72 <Compile Include="Hardware\CPU\CPULoad.cs" />
73 <Compile Include="Hardware\Hardware.cs" />
74 <Compile Include="Hardware\HDD\HDD.cs" />
75 <Compile Include="Hardware\HDD\HDDGroup.cs" />
76 <Compile Include="Hardware\HDD\SMART.cs" />
77 <Compile Include="Hardware\IParameter.cs" />
78 <Compile Include="Hardware\LPC\Chip.cs" />
79 <Compile Include="Hardware\LPC\F718XX.cs" />
80 <Compile Include="Hardware\LPC\LPCHardware.cs" />
81 <Compile Include="Hardware\Mainboard\Mainboard.cs" />
82 <Compile Include="Hardware\Mainboard\MainboardGroup.cs" />
83 <Compile Include="Hardware\Mainboard\Manufacturer.cs" />
84 <Compile Include="Hardware\Parameter.cs" />
85 <Compile Include="Hardware\Mainboard\SMBIOS.cs" />
86 <Compile Include="Hardware\LPC\W836XX.cs" />
87 <Compile Include="Hardware\Computer.cs" />
88 <Compile Include="Properties\AssemblyInfo.cs" />
89 <Compile Include="GUI\AboutBox.cs">
90 <SubType>Form</SubType>
92 <Compile Include="GUI\AboutBox.Designer.cs">
93 <DependentUpon>AboutBox.cs</DependentUpon>
95 <Compile Include="Hardware\ATI\ADL.cs" />
96 <Compile Include="Hardware\ATI\ATIGroup.cs" />
97 <Compile Include="Hardware\ATI\ATIGPU.cs" />
98 <Compile Include="Utilities\Config.cs" />
99 <Compile Include="Utilities\CrashReport.cs" />
100 <Compile Include="Utilities\EmbeddedResources.cs" />
101 <Compile Include="GUI\HardwareNode.cs" />
102 <Compile Include="Hardware\IGroup.cs" />
103 <Compile Include="Hardware\IHardware.cs" />
104 <Compile Include="Hardware\ISensor.cs" />
105 <Compile Include="Hardware\LPC\IT87XX.cs" />
106 <Compile Include="Hardware\LPC\LPCGroup.cs" />
107 <Compile Include="GUI\MainForm.cs">
108 <SubType>Form</SubType>
110 <Compile Include="GUI\MainForm.Designer.cs">
111 <DependentUpon>MainForm.cs</DependentUpon>
113 <Compile Include="Hardware\Nvidia\NVAPI.cs" />
114 <Compile Include="Hardware\Nvidia\NvidiaGPU.cs" />
115 <Compile Include="Hardware\Nvidia\NvidiaGroup.cs" />
116 <Compile Include="Utilities\HexStringArray.cs" />
117 <Compile Include="Utilities\IconFactory.cs" />
118 <Compile Include="Utilities\IReadOnlyArray.cs" />
119 <Compile Include="Utilities\PInvokeDelegateFactory.cs" />
120 <Compile Include="GUI\PlotPanel.cs">
121 <SubType>UserControl</SubType>
123 <Compile Include="GUI\PlotPanel.Designer.cs">
124 <DependentUpon>PlotPanel.cs</DependentUpon>
126 <Compile Include="Program.cs" />
127 <Compile Include="Hardware\CPU\IntelCPU.cs" />
128 <Compile Include="Hardware\CPU\CPUGroup.cs" />
129 <Compile Include="Hardware\Sensor.cs" />
130 <Compile Include="GUI\SensorNode.cs" />
131 <Compile Include="Hardware\TBalancer\TBalancer.cs" />
132 <Compile Include="Hardware\TBalancer\TBalancerGroup.cs" />
133 <Compile Include="Hardware\WinRing0.cs" />
134 <Compile Include="Utilities\ReadOnlyArray.cs" />
137 <EmbeddedResource Include="GUI\AboutBox.resx">
138 <DependentUpon>AboutBox.cs</DependentUpon>
139 <SubType>Designer</SubType>
141 <EmbeddedResource Include="GUI\MainForm.resx">
142 <DependentUpon>MainForm.cs</DependentUpon>
143 <SubType>Designer</SubType>
145 <EmbeddedResource Include="GUI\PlotPanel.resx">
146 <DependentUpon>PlotPanel.cs</DependentUpon>
147 <SubType>Designer</SubType>
149 <EmbeddedResource Include="Resources\ati.png">
151 <EmbeddedResource Include="Resources\bigng.png" />
152 <EmbeddedResource Include="Resources\clock.png" />
153 <EmbeddedResource Include="Resources\computer.png" />
154 <EmbeddedResource Include="Resources\cpu.png" />
155 <EmbeddedResource Include="Resources\fan.png" />
156 <EmbeddedResource Include="Resources\temperature.png" />
159 <EmbeddedResource Include="Resources\chip.png" />
160 <EmbeddedResource Include="Resources\hdd.png" />
161 <EmbeddedResource Include="Resources\load.png" />
162 <EmbeddedResource Include="Resources\voltage.png" />
163 <EmbeddedResource Include="Resources\nvidia.png" />
166 <None Include="Resources\app.manifest" />
167 <None Include="Resources\icon.ico" />
170 <EmbeddedResource Include="Resources\smallicon.ico" />
173 <EmbeddedResource Include="GUI\ParameterForm.resx">
174 <DependentUpon>ParameterForm.cs</DependentUpon>
176 <EmbeddedResource Include="Resources\flow.png" />
179 <EmbeddedResource Include="Resources\mainboard.png" />
181 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
183 <VisualStudio AllowExistingFolder="true" />
188 <PostBuildEvent>copy "$(ProjectDir)External\*.*" "$(TargetDir)"
189 copy "$(ProjectDir)Licenses\*.*" "$(TargetDir)"</PostBuildEvent>