Simplify GetIcon function.
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7 <ProjectGuid>{1DA8C1B3-18C5-4E74-BE4E-0B0E15FBAF49}</ProjectGuid>
8 <OutputType>WinExe</OutputType>
9 <AppDesignerFolder>Properties</AppDesignerFolder>
10 <RootNamespace>SharpDisplayManager</RootNamespace>
11 <AssemblyName>SharpDisplayManager</AssemblyName>
12 <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
13 <FileAlignment>512</FileAlignment>
14 <TargetFrameworkProfile />
15 <IsWebBootstrapper>true</IsWebBootstrapper>
16 <NuGetPackageImportStamp>
17 </NuGetPackageImportStamp>
18 <PublishUrl>ftp://lenclud%40monroe.dreamhost.com/publish.slions.net/SharpDisplayManager/</PublishUrl>
19 <Install>true</Install>
20 <InstallFrom>Web</InstallFrom>
21 <UpdateEnabled>true</UpdateEnabled>
22 <UpdateMode>Background</UpdateMode>
23 <UpdateInterval>7</UpdateInterval>
24 <UpdateIntervalUnits>Days</UpdateIntervalUnits>
25 <UpdatePeriodically>true</UpdatePeriodically>
26 <UpdateRequired>false</UpdateRequired>
27 <MapFileExtensions>true</MapFileExtensions>
28 <InstallUrl>http://publish.slions.net/SharpDisplayManager/</InstallUrl>
29 <SupportUrl>http://publish.slions.net/SharpDisplayManager/</SupportUrl>
30 <ProductName>Sharp Display Manager</ProductName>
31 <PublisherName>Slions</PublisherName>
32 <SuiteName>Sharp Display Manager</SuiteName>
33 <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
34 <WebPage>index.htm</WebPage>
35 <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
36 <ApplicationRevision>0</ApplicationRevision>
37 <ApplicationVersion>0.6.1.0</ApplicationVersion>
38 <UseApplicationTrust>false</UseApplicationTrust>
39 <CreateDesktopShortcut>true</CreateDesktopShortcut>
40 <PublishWizardCompleted>true</PublishWizardCompleted>
41 <BootstrapperEnabled>true</BootstrapperEnabled>
43 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
44 <PlatformTarget>AnyCPU</PlatformTarget>
45 <DebugSymbols>true</DebugSymbols>
46 <DebugType>full</DebugType>
47 <Optimize>false</Optimize>
48 <OutputPath>..\..\bin\MiniDisplay\Debug\</OutputPath>
49 <DefineConstants>DEBUG;TRACE</DefineConstants>
50 <ErrorReport>prompt</ErrorReport>
51 <WarningLevel>4</WarningLevel>
52 <Prefer32Bit>false</Prefer32Bit>
54 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
55 <PlatformTarget>AnyCPU</PlatformTarget>
56 <DebugType>pdbonly</DebugType>
57 <Optimize>true</Optimize>
58 <OutputPath>..\..\bin\MiniDisplay\Release\</OutputPath>
59 <DefineConstants>TRACE</DefineConstants>
60 <ErrorReport>prompt</ErrorReport>
61 <WarningLevel>4</WarningLevel>
62 <Prefer32Bit>false</Prefer32Bit>
64 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
65 <DebugSymbols>true</DebugSymbols>
66 <OutputPath>..\bin\x86\Debug\</OutputPath>
67 <BaseIntermediateOutputPath>..\bin\x86\Debug\obj</BaseIntermediateOutputPath>
68 <DefineConstants>DEBUG;TRACE</DefineConstants>
69 <DebugType>full</DebugType>
70 <PlatformTarget>x86</PlatformTarget>
71 <ErrorReport>prompt</ErrorReport>
72 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
73 <Prefer32Bit>false</Prefer32Bit>
74 <UseVSHostingProcess>true</UseVSHostingProcess>
76 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
77 <OutputPath>..\bin\x86\Release\</OutputPath>
78 <BaseIntermediateOutputPath>..\bin\x86\Release\obj</BaseIntermediateOutputPath>
79 <DefineConstants>TRACE</DefineConstants>
80 <Optimize>true</Optimize>
81 <DebugType>pdbonly</DebugType>
82 <PlatformTarget>x86</PlatformTarget>
83 <ErrorReport>prompt</ErrorReport>
84 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
85 <Prefer32Bit>false</Prefer32Bit>
88 <SignManifests>true</SignManifests>
91 <ManifestCertificateThumbprint>70A149AB9F89E507D9411D109553BE22455895D6</ManifestCertificateThumbprint>
94 <ManifestKeyFile>SharpDisplayManager_TemporaryKey.pfx</ManifestKeyFile>
97 <GenerateManifests>true</GenerateManifests>
100 <ApplicationIcon>Resources\vfd.ico</ApplicationIcon>
103 <StartupObject>SharpDisplayManager.Program</StartupObject>
107 <TargetZone>LocalIntranet</TargetZone>
110 <Reference Include="LibCecSharp, Version=2.2.0.0, Culture=neutral, processorArchitecture=x86">
111 <HintPath>.\LibCecSharp.dll</HintPath>
112 <SpecificVersion>False</SpecificVersion>
114 <Reference Include="Microsoft.VisualBasic" />
115 <Reference Include="MiniDisplayInterop, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
116 <HintPath>..\packages\LibMiniDisplay.1.1.8\lib\net20\MiniDisplayInterop.dll</HintPath>
117 <Private>True</Private>
119 <Reference Include="NAudio, Version=1.7.3.0, Culture=neutral, processorArchitecture=MSIL">
120 <SpecificVersion>False</SpecificVersion>
121 <HintPath>..\packages\NAudio.1.7.3\lib\net35\NAudio.dll</HintPath>
123 <Reference Include="SharpLibDisplay, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
124 <HintPath>..\packages\SharpLibDisplay.0.1.3\lib\net40\SharpLibDisplay.dll</HintPath>
125 <Private>True</Private>
127 <Reference Include="SharpLibHid">
128 <HintPath>..\packages\SharpLibHid.1.2.1\lib\net20\SharpLibHid.dll</HintPath>
129 <Private>True</Private>
131 <Reference Include="SharpLibNotification, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
132 <HintPath>..\packages\SharpLibNotification.0.0.1\lib\net40\SharpLibNotification.dll</HintPath>
133 <Private>True</Private>
135 <Reference Include="SharpLibWin32, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
136 <SpecificVersion>False</SpecificVersion>
137 <HintPath>..\packages\SharpLibWin32.0.0.7\lib\net20\SharpLibWin32.dll</HintPath>
139 <Reference Include="System" />
140 <Reference Include="System.Configuration" />
141 <Reference Include="System.Core" />
142 <Reference Include="System.Runtime.Serialization" />
143 <Reference Include="System.Security" />
144 <Reference Include="System.ServiceModel" />
145 <Reference Include="System.Xml.Linq" />
146 <Reference Include="System.Data.DataSetExtensions" />
147 <Reference Include="Microsoft.CSharp" />
148 <Reference Include="System.Data" />
149 <Reference Include="System.Deployment" />
150 <Reference Include="System.Drawing" />
151 <Reference Include="System.Windows.Forms" />
152 <Reference Include="System.Xml" />
153 <Reference Include="System.Xml.Serialization" />
156 <Compile Include="CbtHook.cs" />
157 <Compile Include="CecClient.cs" />
158 <Compile Include="ConsumerElectronicControl.cs" />
159 <Compile Include="ClientData.cs" />
160 <Compile Include="MainForm.Hid.cs">
161 <DependentUpon>MainForm.cs</DependentUpon>
163 <Compile Include="NetworkManager.cs" />
164 <Compile Include="DialogBox.cs" />
165 <Compile Include="Display.cs" />
166 <Compile Include="DisplaySettings.cs" />
167 <Compile Include="MainForm.cs">
168 <SubType>Form</SubType>
170 <Compile Include="MainForm.Designer.cs">
171 <DependentUpon>MainForm.cs</DependentUpon>
173 <Compile Include="MarqueeLabel.cs" />
174 <Compile Include="Program.cs" />
175 <Compile Include="ProgressForm.cs">
176 <SubType>Form</SubType>
178 <Compile Include="ProgressForm.Designer.cs">
179 <DependentUpon>ProgressForm.cs</DependentUpon>
181 <Compile Include="Properties\AssemblyInfo.cs" />
182 <Compile Include="Session.cs" />
183 <Compile Include="Settings.cs" />
184 <Compile Include="StartupManager.cs" />
185 <Compile Include="TaskScheduler.cs" />
186 <Compile Include="Win32API.cs" />
187 <Compile Include="WindowsHook.cs" />
188 <Compile Include="WndProcRetHook.cs" />
189 <EmbeddedResource Include="MainForm.resx">
190 <DependentUpon>MainForm.cs</DependentUpon>
192 <EmbeddedResource Include="ProgressForm.resx">
193 <DependentUpon>ProgressForm.cs</DependentUpon>
195 <EmbeddedResource Include="Properties\Resources.resx">
196 <Generator>ResXFileCodeGenerator</Generator>
197 <LastGenOutput>Resources.Designer.cs</LastGenOutput>
198 <SubType>Designer</SubType>
200 <Compile Include="Properties\Resources.Designer.cs">
201 <AutoGen>True</AutoGen>
202 <DependentUpon>Resources.resx</DependentUpon>
203 <DesignTime>True</DesignTime>
205 <None Include="App.config" />
206 <None Include="app.manifest" />
207 <None Include="packages.config" />
208 <None Include="Properties\Settings.settings">
209 <Generator>SettingsSingleFileGenerator</Generator>
210 <LastGenOutput>Settings.Designer.cs</LastGenOutput>
212 <Compile Include="Properties\Settings.Designer.cs">
213 <AutoGen>True</AutoGen>
214 <DependentUpon>Settings.settings</DependentUpon>
215 <DesignTimeSharedInput>True</DesignTimeSharedInput>
217 <None Include="Resources\Windows-Media-Center-icon-32.png" />
218 <None Include="SharpDisplayManager_TemporaryKey.pfx" />
221 <ProjectReference Include="..\Client\SharpDisplayClient.csproj">
222 <Project>{7ee64074-8cdb-4448-b40c-81b75d6b31cd}</Project>
223 <Name>SharpDisplayClient</Name>
225 <ProjectReference Include="..\PowerManager\PowerManager.vcxproj">
226 <Project>{c174f23d-3055-49bc-b6b0-563011af624d}</Project>
227 <Name>PowerManager</Name>
231 <BootstrapperPackage Include=".NETFramework,Version=v4.0">
232 <Visible>False</Visible>
233 <ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
234 <Install>true</Install>
235 </BootstrapperPackage>
236 <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
237 <Visible>False</Visible>
238 <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
239 <Install>false</Install>
240 </BootstrapperPackage>
241 <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
242 <Visible>False</Visible>
243 <ProductName>.NET Framework 3.5 SP1</ProductName>
244 <Install>false</Install>
245 </BootstrapperPackage>
246 <BootstrapperPackage Include="Microsoft.Windows.Installer.4.5">
247 <Visible>False</Visible>
248 <ProductName>Windows Installer 4.5</ProductName>
249 <Install>true</Install>
250 </BootstrapperPackage>
253 <EmbeddedResource Include="Resources\vfd.ico" />
256 <COMReference Include="NETWORKLIST">
257 <Guid>{DCB00D01-570F-4A9B-8D69-199FDBA5723B}</Guid>
258 <VersionMajor>1</VersionMajor>
259 <VersionMinor>0</VersionMinor>
261 <WrapperTool>tlbimp</WrapperTool>
262 <Isolated>False</Isolated>
263 <EmbedInteropTypes>True</EmbedInteropTypes>
265 <COMReference Include="Shell32">
266 <Guid>{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}</Guid>
267 <VersionMajor>1</VersionMajor>
268 <VersionMinor>0</VersionMinor>
270 <WrapperTool>tlbimp</WrapperTool>
271 <Isolated>False</Isolated>
272 <EmbedInteropTypes>True</EmbedInteropTypes>
276 <Content Include="..\bin\x86\Release\MiniDisplay.dll">
277 <Link>MiniDisplay.dll</Link>
279 <Content Include="libcec.dll">
280 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
283 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
284 <Import Project="..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets" Condition="Exists('..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets')" />
285 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
287 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
289 <Error Condition="!Exists('..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibMiniDisplay.1.1.8\build\LibMiniDisplay.targets'))" />
291 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
292 Other similar extension points exist, see Microsoft.Common.targets.
293 <Target Name="BeforeBuild">
295 <Target Name="AfterBuild">