forked from OmenMon/OmenMon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOmenMon.csproj
171 lines (169 loc) · 8.74 KB
/
OmenMon.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0" encoding="utf-8"?>
<!--
//\\ OmenMon: Hardware Monitoring & Control Utility
// \\ Copyright © 2023 Piotr Szczepański * License: GPL3
// https://omenmon.github.io/
-->
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- <AllowUnsafeBlocks>true</AllowUnsafeBlocks> -->
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
<ApplicationManifest>OmenMon.manifest</ApplicationManifest>
<AssemblyName>OmenMon</AssemblyName>
<AssemblyVersionFile>All\Version.cs</AssemblyVersionFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<CoreCompileDependsOn>PrepareResources;$(CompileDependsOn)</CoreCompileDependsOn>
<Deterministic>true</Deterministic>
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
<ErrorReport>prompt</ErrorReport>
<IntermediateOutputPath>Obj</IntermediateOutputPath>
<LangVersion>11.0</LangVersion>
<OutputPath>Bin</OutputPath>
<OutputType>WinExe</OutputType>
<Platform>x64</Platform>
<PlatformTarget>x64</PlatformTarget>
<ProjectGuid>{F6104868-81A7-4D09-8AD2-8CF261D58319}</ProjectGuid>
<RootNamespace>OmenMon</RootNamespace>
<StartupObject>OmenMon.App</StartupObject>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DefineDebug>true</DefineDebug>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
<ItemGroup>
<None Include="OmenMon.config"/>
<None Include="OmenMon.manifest"/>
<None Include="Packages.config"/>
</ItemGroup>
<ItemGroup>
<Compile Include="$(AssemblyVersionFile)"/>
<Compile Include="All\Meta.cs"/>
<Compile Include="App\App.cs"/>
<Compile Include="App\Cli\Cli.cs"/>
<Compile Include="App\Cli\CliBios.cs"/>
<Compile Include="App\Cli\CliEc.cs"/>
<Compile Include="App\Cli\CliProg.cs"/>
<Compile Include="App\Cli\CliTask.cs"/>
<Compile Include="App\Cli\CliOp.cs"/>
<Compile Include="App\Cli\CliOpBios.cs"/>
<Compile Include="App\Cli\CliOpEc.cs"/>
<Compile Include="App\Cli\CliOpProg.cs"/>
<Compile Include="App\Cli\CliOpTask.cs"/>
<Compile Include="App\Gui\Gui.cs"/>
<Compile Include="App\Gui\GuiOp.cs"/>
<Compile Include="App\Gui\GuiFilter.cs"/>
<Compile Include="App\Gui\GuiFormAbout.cs"/>
<Compile Include="App\Gui\GuiFormMain.cs"/>
<Compile Include="App\Gui\GuiFormMainInit.cs"/>
<Compile Include="App\Gui\GuiIcon.cs"/>
<Compile Include="App\Gui\GuiMenu.cs"/>
<Compile Include="App\Gui\GuiKbd.cs"/>
<Compile Include="App\Gui\GuiTray.cs"/>
<Compile Include="Driver\Driver.cs"/>
<Compile Include="Driver\Ring0.cs"/>
<Compile Include="External\AdvApi.cs"/>
<Compile Include="External\ColorMgmt.cs"/>
<Compile Include="External\Gdi.cs"/>
<Compile Include="External\Kernel.cs"/>
<Compile Include="External\ShellCore.cs"/>
<Compile Include="External\TaskSchd.cs"/>
<Compile Include="External\User.cs"/>
<Compile Include="External\WinBase.cs"/>
<Compile Include="Hardware\Bios.cs"/>
<Compile Include="Hardware\BiosCtl.cs"/>
<Compile Include="Hardware\BiosData.cs"/>
<Compile Include="Hardware\Ec.cs"/>
<Compile Include="Hardware\EcData.cs"/>
<Compile Include="Hardware\EcMutex.cs"/>
<Compile Include="Hardware\Fan.cs"/>
<Compile Include="Hardware\FanArray.cs"/>
<Compile Include="Hardware\FanProgram.cs"/>
<Compile Include="Hardware\Platform.cs"/>
<Compile Include="Hardware\PlatformComponent.cs"/>
<Compile Include="Hardware\PlatformData.cs"/>
<Compile Include="Hardware\Settings.cs"/>
<Compile Include="Library\Config.cs"/>
<Compile Include="Library\ConfigData.cs"/>
<Compile Include="Library\Conv.cs"/>
<Compile Include="Library\Gui\ButtonEx.cs"/>
<Compile Include="Library\Gui\GdiFont.cs"/>
<Compile Include="Library\Gui\ColorDlgEx.cs"/>
<Compile Include="Library\Gui\ProgressBarEx.cs"/>
<Compile Include="Library\Hw.cs"/>
<Compile Include="Library\Locale.cs"/>
<Compile Include="Library\LocaleData.cs"/>
<Compile Include="Library\OnlyOnce.cs"/>
<Compile Include="Library\Os.cs"/>
<Compile Include="Library\WmiEvent.cs"/>
<Compile Include="Library\WmiInfo.cs"/>
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp"/>
<Reference Include="Microsoft.Management.Infrastructure"/>
<Reference Include="System"/>
<Reference Include="System.Drawing"/>
<Reference Include="System.Windows.Forms"/>
<Reference Include="System.Xml"/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="OmenMon.resx">
<Generator>MSBuild:Compile</Generator>
<LastGenOutput>$(IntermediateOutputPath)Resources.cs</LastGenOutput>
<LogicalName>OmenMon.Resources.resources</LogicalName>
<StronglyTypedFileName>$(IntermediateOutputPath)Resources.cs</StronglyTypedFileName>
<StronglyTypedLanguage>CSharp</StronglyTypedLanguage>
<StronglyTypedNamespace>OmenMon</StronglyTypedNamespace>
<StronglyTypedClassName>Resources</StronglyTypedClassName>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Driver.sys.gz">
<LogicalName>OmenMon.Driver.sys.gz</LogicalName>
</EmbeddedResource>
</ItemGroup>
<!-- <ItemGroup>
<ProjectReference Include="Driver.csproj">
<Project>{10ADAB1E-11B1-ABE1-5ACC-E551B1EAB0DE}</Project>
<Name>Driver</Name>
</ProjectReference>
</ItemGroup> -->
<Target Name="AddVersion" BeforeTargets="CoreCompile" Condition="'$(AssemblyVersion)'!='' And '$(AssemblyVersionWord)'!=''">
<Error
Condition="'$([System.Text.RegularExpressions.Regex]::IsMatch("$(AssemblyVersion)", "^\d+\.\d+\.\d+\.\d+$"))' == false"
Text="Assembly version must consist of exactly four non-negative integers separated by dots"/>
<Message Text="Assembly Version: $(AssemblyVersion)-$(AssemblyVersionWord)" />
<ReadLinesFromFile File="$(AssemblyVersionFile)">
<Output TaskParameter="Lines" ItemName="AssemblyVersionLines" />
</ReadLinesFromFile>
<ItemGroup>
<GeneratedVersionLines Include="@(AssemblyVersionLines)" Condition="'$([System.Text.RegularExpressions.Regex]::IsMatch("%(Identity)", "(?i)Assembly((File|Informational)?Version|Metadata)"))' == false" />
<GeneratedVersionLines Include="[assembly: AssemblyVersion("$([System.Text.RegularExpressions.Regex]::Match($(AssemblyVersion), `\d+\.\d+\.\d+`))")]" />
<GeneratedVersionLines Include="[assembly: AssemblyFileVersion("$(AssemblyVersion)")]" />
<GeneratedVersionLines Include="[assembly: AssemblyInformationalVersion("$([System.Text.RegularExpressions.Regex]::Match($(AssemblyVersion), `\d+\.\d+`))-$(AssemblyVersionWord)")]" />
<GeneratedVersionLines Include="[assembly: AssemblyMetadata("Timestamp", "$([System.DateTime]::Now.ToString('yyyy-MM-dd HH:mm'))")]" />
</ItemGroup>
<WriteLinesToFile File="$(IntermediateOutputPath)Version.cs" Lines="@(GeneratedVersionLines)" Overwrite="true" />
<ItemGroup>
<Compile Remove="$(AssemblyVersionFile)" />
<Compile Include="$(IntermediateOutputPath)Version.cs" />
</ItemGroup>
</Target>
<Target Name="BuildBeginning" BeforeTargets="BeforeBuild">
</Target>
<Target Name="BuildComplete" AfterTargets="AfterBuild">
<Copy SourceFiles="OmenMon.xml" DestinationFolder="$(OutDir)" />
<!-- <Exec Command="robocopy /nc /ndl /nfl /njh /njs /np /ns /r:2 /w:5 Bin \\Momentum\Exchange\ OmenMon.*" IgnoreExitCode="true" /> -->
</Target>
<Target Name="DeleteDirs" AfterTargets="Clean">
<RemoveDir Directories="$(IntermediateOutputPath)" />
<RemoveDir Directories="$(OutputPath)" />
</Target>
</Project>