Refactored the hardware code and added the visitor pattern for operations on the computer/hardware/sensor/parameter tree.
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.Web" />
58 <Reference Include="System.Windows.Forms" />
59 <Reference Include="System.Xml" />
62 <Compile Include="GUI\CrashReportForm.cs">
63 <SubType>Form</SubType>
65 <Compile Include="GUI\CrashReportForm.Designer.cs">
66 <DependentUpon>CrashReportForm.cs</DependentUpon>
68 <Compile Include="GUI\ParameterForm.cs">
69 <SubType>Form</SubType>
71 <Compile Include="GUI\ParameterForm.Designer.cs">
72 <DependentUpon>ParameterForm.cs</DependentUpon>
74 <Compile Include="GUI\SensorNotifyIcon.cs" />
75 <Compile Include="GUI\SensorProperties.cs" />
76 <Compile Include="GUI\SensorSystemTray.cs" />
77 <Compile Include="GUI\StartupManager.cs" />
78 <Compile Include="GUI\TaskScheduler.cs" />
79 <Compile Include="GUI\TypeNode.cs" />
80 <Compile Include="GUI\UpdateVisitor.cs" />
81 <Compile Include="Hardware\CPU\AMD10CPU.cs" />
82 <Compile Include="Hardware\CPU\AMD0FCPU.cs" />
83 <Compile Include="Hardware\CPU\CPUID.cs" />
84 <Compile Include="Hardware\CPU\CPULoad.cs" />
85 <Compile Include="Hardware\Hardware.cs" />
86 <Compile Include="Hardware\HDD\HDD.cs" />
87 <Compile Include="Hardware\HDD\HDDGroup.cs" />
88 <Compile Include="Hardware\HDD\SMART.cs" />
89 <Compile Include="Hardware\IComputer.cs" />
90 <Compile Include="Hardware\Identifier.cs" />
91 <Compile Include="Hardware\IElement.cs" />
92 <Compile Include="Hardware\IVisitor.cs" />
93 <Compile Include="Hardware\IParameter.cs" />
94 <Compile Include="Hardware\LPC\Chip.cs" />
95 <Compile Include="Hardware\LPC\F718XX.cs" />
96 <Compile Include="Hardware\LPC\LPCHardware.cs" />
97 <Compile Include="Hardware\Mainboard\Mainboard.cs" />
98 <Compile Include="Hardware\Mainboard\MainboardGroup.cs" />
99 <Compile Include="Hardware\Mainboard\Manufacturer.cs" />
100 <Compile Include="Hardware\Parameter.cs" />
101 <Compile Include="Hardware\Mainboard\SMBIOS.cs" />
102 <Compile Include="Hardware\LPC\W836XX.cs" />
103 <Compile Include="Hardware\Computer.cs" />
104 <Compile Include="Hardware\TBalancer\FTD2XX.cs" />
105 <Compile Include="Properties\AssemblyInfo.cs" />
106 <Compile Include="GUI\AboutBox.cs">
107 <SubType>Form</SubType>
109 <Compile Include="GUI\AboutBox.Designer.cs">
110 <DependentUpon>AboutBox.cs</DependentUpon>
112 <Compile Include="Hardware\ATI\ADL.cs" />
113 <Compile Include="Hardware\ATI\ATIGroup.cs" />
114 <Compile Include="Hardware\ATI\ATIGPU.cs" />
115 <Compile Include="Utilities\Config.cs" />
116 <Compile Include="Utilities\EmbeddedResources.cs" />
117 <Compile Include="GUI\HardwareNode.cs" />
118 <Compile Include="Hardware\IGroup.cs" />
119 <Compile Include="Hardware\IHardware.cs" />
120 <Compile Include="Hardware\ISensor.cs" />
121 <Compile Include="Hardware\LPC\IT87XX.cs" />
122 <Compile Include="Hardware\LPC\LPCIO.cs" />
123 <Compile Include="GUI\MainForm.cs">
124 <SubType>Form</SubType>
126 <Compile Include="GUI\MainForm.Designer.cs">
127 <DependentUpon>MainForm.cs</DependentUpon>
129 <Compile Include="Hardware\Nvidia\NVAPI.cs" />
130 <Compile Include="Hardware\Nvidia\NvidiaGPU.cs" />
131 <Compile Include="Hardware\Nvidia\NvidiaGroup.cs" />
132 <Compile Include="Utilities\HexStringArray.cs" />
133 <Compile Include="Utilities\IconFactory.cs" />
134 <Compile Include="Utilities\IReadOnlyArray.cs" />
135 <Compile Include="Utilities\ListSet.cs" />
136 <Compile Include="Utilities\PInvokeDelegateFactory.cs" />
137 <Compile Include="GUI\PlotPanel.cs">
138 <SubType>UserControl</SubType>
140 <Compile Include="GUI\PlotPanel.Designer.cs">
141 <DependentUpon>PlotPanel.cs</DependentUpon>
143 <Compile Include="Program.cs" />
144 <Compile Include="Hardware\CPU\IntelCPU.cs" />
145 <Compile Include="Hardware\CPU\CPUGroup.cs" />
146 <Compile Include="Hardware\Sensor.cs" />
147 <Compile Include="GUI\SensorNode.cs" />
148 <Compile Include="Hardware\TBalancer\TBalancer.cs" />
149 <Compile Include="Hardware\TBalancer\TBalancerGroup.cs" />
150 <Compile Include="Hardware\WinRing0.cs" />
151 <Compile Include="Utilities\ReadOnlyArray.cs" />
154 <EmbeddedResource Include="GUI\AboutBox.resx">
155 <DependentUpon>AboutBox.cs</DependentUpon>
156 <SubType>Designer</SubType>
158 <EmbeddedResource Include="GUI\MainForm.resx">
159 <DependentUpon>MainForm.cs</DependentUpon>
160 <SubType>Designer</SubType>
162 <EmbeddedResource Include="GUI\PlotPanel.resx">
163 <DependentUpon>PlotPanel.cs</DependentUpon>
164 <SubType>Designer</SubType>
166 <EmbeddedResource Include="Resources\ati.png">
168 <EmbeddedResource Include="Resources\bigng.png" />
169 <EmbeddedResource Include="Resources\clock.png" />
170 <EmbeddedResource Include="Resources\computer.png" />
171 <EmbeddedResource Include="Resources\cpu.png" />
172 <EmbeddedResource Include="Resources\fan.png" />
173 <EmbeddedResource Include="Resources\temperature.png" />
176 <EmbeddedResource Include="Resources\chip.png" />
177 <EmbeddedResource Include="Resources\hdd.png" />
178 <EmbeddedResource Include="Resources\load.png" />
179 <EmbeddedResource Include="Resources\voltage.png" />
180 <EmbeddedResource Include="Resources\nvidia.png" />
183 <None Include="Resources\app.manifest" />
184 <None Include="Resources\icon.ico" />
187 <EmbeddedResource Include="Resources\smallicon.ico" />
190 <EmbeddedResource Include="GUI\ParameterForm.resx">
191 <DependentUpon>ParameterForm.cs</DependentUpon>
193 <EmbeddedResource Include="Resources\flow.png" />
196 <EmbeddedResource Include="GUI\CrashReportForm.resx">
197 <DependentUpon>CrashReportForm.cs</DependentUpon>
199 <EmbeddedResource Include="Resources\mainboard.png" />
201 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
203 <VisualStudio AllowExistingFolder="true" />
208 <PostBuildEvent>copy "$(ProjectDir)External\*.*" "$(TargetDir)"
209 copy "$(ProjectDir)Licenses\*.*" "$(TargetDir)"</PostBuildEvent>