Switch solution to 2013.
Event repeat now a Handler option.
Handler now deregisters devices when disposed.
Adding Thinkpad custom usages.
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.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>{4F3F96E6-668A-488E-BA0C-ED249AFACE9E}</ProjectGuid>
8 <OutputType>Library</OutputType>
9 <AppDesignerFolder>Properties</AppDesignerFolder>
10 <RootNamespace>SharpLibHid</RootNamespace>
11 <AssemblyName>SharpLibHid</AssemblyName>
12 <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
13 <FileAlignment>512</FileAlignment>
14 <TargetFrameworkProfile />
16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17 <DebugSymbols>true</DebugSymbols>
18 <DebugType>full</DebugType>
19 <Optimize>false</Optimize>
20 <OutputPath>bin\Debug\</OutputPath>
21 <DefineConstants>DEBUG;TRACE</DefineConstants>
22 <ErrorReport>prompt</ErrorReport>
23 <WarningLevel>4</WarningLevel>
24 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
26 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27 <DebugType>pdbonly</DebugType>
28 <Optimize>true</Optimize>
29 <OutputPath>bin\Release\</OutputPath>
30 <DefineConstants>TRACE</DefineConstants>
31 <ErrorReport>prompt</ErrorReport>
32 <WarningLevel>4</WarningLevel>
33 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
36 <Reference Include="System" />
37 <Reference Include="System.Core" />
38 <Reference Include="System.Windows.Forms" />
39 <Reference Include="System.Xml.Linq" />
40 <Reference Include="System.Data.DataSetExtensions" />
41 <Reference Include="Microsoft.CSharp" />
42 <Reference Include="System.Data" />
43 <Reference Include="System.Xml" />
46 <Compile Include="Hid\HidDevice.cs">
47 <SubType>Code</SubType>
49 <Compile Include="Hid\HidEvent.cs">
50 <SubType>Code</SubType>
52 <Compile Include="Hid\HidHandler.cs">
53 <SubType>Code</SubType>
55 <Compile Include="Hid\HidUsageTables.cs">
56 <SubType>Code</SubType>
58 <Compile Include="Hid\HidUtils.cs">
59 <SubType>Code</SubType>
61 <Compile Include="Properties\AssemblyInfo.cs" />
62 <Compile Include="Win32\RawInput.cs" />
63 <Compile Include="Win32\Win32AppCommand.cs" />
64 <Compile Include="Win32\Win32CreateFile.cs" />
65 <Compile Include="Win32\Win32Hid.cs" />
66 <Compile Include="Win32\Win32RawInput.cs" />
69 <COMReference Include="stdole">
70 <Guid>{00020430-0000-0000-C000-000000000046}</Guid>
71 <VersionMajor>2</VersionMajor>
72 <VersionMinor>0</VersionMinor>
74 <WrapperTool>primary</WrapperTool>
75 <Isolated>False</Isolated>
76 <EmbedInteropTypes>True</EmbedInteropTypes>
79 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
80 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
81 Other similar extension points exist, see Microsoft.Common.targets.
82 <Target Name="BeforeBuild">
84 <Target Name="AfterBuild">