Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Commit 70cd820

Browse files
committed
remove Net 4.0 support
VS 2015 have dificulty supporting Bcl async packages
1 parent 497e618 commit 70cd820

File tree

17 files changed

+38
-185
lines changed

17 files changed

+38
-185
lines changed

.build/default.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Task default -depends Clean, Build, Package
3535

3636
Task Build -depends Restore-Packages {
3737
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration }
38-
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration-Net45 }
3938
}
4039

4140
Task Package -depends Build {

EventHook.Examples/EventHook.ConsoleApp.Example/EventHook.ConsoleApp.Example.csproj

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -9,8 +9,9 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>EventHook.ConsoleApp.Example</RootNamespace>
1111
<AssemblyName>EventHook.ConsoleApp.Example</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -21,7 +22,8 @@
2122
<DefineConstants>DEBUG;TRACE</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
24-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
25+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
26+
<Prefer32Bit>false</Prefer32Bit>
2527
</PropertyGroup>
2628
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2729
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -31,27 +33,8 @@
3133
<DefineConstants>TRACE</DefineConstants>
3234
<ErrorReport>prompt</ErrorReport>
3335
<WarningLevel>4</WarningLevel>
34-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
35-
</PropertyGroup>
36-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-Net45|AnyCPU'">
37-
<DebugSymbols>true</DebugSymbols>
38-
<OutputPath>bin\Debug-Net45\</OutputPath>
39-
<DefineConstants>DEBUG;TRACE</DefineConstants>
40-
<DebugType>full</DebugType>
41-
<PlatformTarget>AnyCPU</PlatformTarget>
42-
<ErrorReport>prompt</ErrorReport>
43-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
44-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
45-
</PropertyGroup>
46-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Net45|AnyCPU'">
47-
<OutputPath>bin\Release-Net45\</OutputPath>
48-
<DefineConstants>TRACE</DefineConstants>
49-
<Optimize>true</Optimize>
50-
<DebugType>pdbonly</DebugType>
51-
<PlatformTarget>AnyCPU</PlatformTarget>
52-
<ErrorReport>prompt</ErrorReport>
53-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5436
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
37+
<Prefer32Bit>false</Prefer32Bit>
5538
</PropertyGroup>
5639
<ItemGroup>
5740
<Reference Include="System" />
@@ -67,15 +50,15 @@
6750
<Compile Include="Program.cs" />
6851
<Compile Include="Properties\AssemblyInfo.cs" />
6952
</ItemGroup>
53+
<ItemGroup>
54+
<None Include="app.config" />
55+
</ItemGroup>
7056
<ItemGroup>
7157
<ProjectReference Include="..\..\EventHook\EventHook.csproj">
7258
<Project>{4ff5e04f-3425-4f55-a50a-30ceba7c2b95}</Project>
7359
<Name>EventHook</Name>
7460
</ProjectReference>
7561
</ItemGroup>
76-
<ItemGroup>
77-
<None Include="app.config" />
78-
</ItemGroup>
7962
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8063
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8164
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<runtime>
44
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
55
<dependentAssembly>
6-
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
7-
<bindingRedirect oldVersion="0.0.0.0-2.6.7.0" newVersion="2.6.7.0" />
6+
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
7+
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
88
</dependentAssembly>
99
<dependentAssembly>
10-
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
11-
<bindingRedirect oldVersion="0.0.0.0-2.6.7.0" newVersion="2.6.7.0" />
10+
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
11+
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
1212
</dependentAssembly>
1313
</assemblyBinding>
1414
</runtime>
15-
</configuration>
15+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>

EventHook.Examples/EventHook.WPF.Example/EventHook.WPF.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</ItemGroup>
9797
<ItemGroup>
9898
<ProjectReference Include="..\..\EventHook\EventHook.csproj">
99-
<Project>{4ff5e04f-3425-4f55-a50a-30ceba7c2b95}</Project>
99+
<Project>{3847a7f4-3f6b-4626-af4c-8fdfba6165f2}</Project>
100100
<Name>EventHook</Name>
101101
</ProjectReference>
102102
</ItemGroup>

EventHook.Examples/EventHook.WinForms.Example/EventHook.WinForms.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</ItemGroup>
8080
<ItemGroup>
8181
<ProjectReference Include="..\..\EventHook\EventHook.csproj">
82-
<Project>{4ff5e04f-3425-4f55-a50a-30ceba7c2b95}</Project>
82+
<Project>{3847a7f4-3f6b-4626-af4c-8fdfba6165f2}</Project>
8383
<Name>EventHook</Name>
8484
</ProjectReference>
8585
</ItemGroup>

EventHook.sln

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
4+
VisualStudioVersion = 14.0.25123.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook", "EventHook\EventHook.csproj", "{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}"
7-
EndProject
86
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{C622ACD2-76FB-4B6D-844D-C0C406C73214}"
97
EndProject
108
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{44D5BA9F-DF7B-4208-BCD0-A909ECAADE1C}"
@@ -20,46 +18,30 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.ConsoleApp.Exampl
2018
EndProject
2119
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.WPF.Example", "EventHook.Examples\EventHook.WPF.Example\EventHook.WPF.Example.csproj", "{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}"
2220
EndProject
21+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook", "EventHook\EventHook.csproj", "{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}"
22+
EndProject
2323
Global
2424
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2525
Debug|Any CPU = Debug|Any CPU
26-
Debug-Net45|Any CPU = Debug-Net45|Any CPU
2726
Release|Any CPU = Release|Any CPU
28-
Release-Net45|Any CPU = Release-Net45|Any CPU
2927
EndGlobalSection
3028
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Debug-Net45|Any CPU.ActiveCfg = Debug-Net45|Any CPU
34-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Debug-Net45|Any CPU.Build.0 = Debug-Net45|Any CPU
35-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Release-Net45|Any CPU.ActiveCfg = Release-Net45|Any CPU
38-
{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}.Release-Net45|Any CPU.Build.0 = Release-Net45|Any CPU
3929
{17264D8C-CF5A-4032-9E70-090525D574F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4030
{17264D8C-CF5A-4032-9E70-090525D574F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
41-
{17264D8C-CF5A-4032-9E70-090525D574F2}.Debug-Net45|Any CPU.ActiveCfg = Debug|Any CPU
42-
{17264D8C-CF5A-4032-9E70-090525D574F2}.Debug-Net45|Any CPU.Build.0 = Debug|Any CPU
4331
{17264D8C-CF5A-4032-9E70-090525D574F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
4432
{17264D8C-CF5A-4032-9E70-090525D574F2}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{17264D8C-CF5A-4032-9E70-090525D574F2}.Release-Net45|Any CPU.ActiveCfg = Release|Any CPU
46-
{17264D8C-CF5A-4032-9E70-090525D574F2}.Release-Net45|Any CPU.Build.0 = Release|Any CPU
4733
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4834
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
49-
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Debug-Net45|Any CPU.ActiveCfg = Debug-Net45|Any CPU
50-
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Debug-Net45|Any CPU.Build.0 = Debug-Net45|Any CPU
5135
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
5236
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Release-Net45|Any CPU.ActiveCfg = Release-Net45|Any CPU
54-
{0075830E-89B6-4E6B-9C49-CA377746AB4C}.Release-Net45|Any CPU.Build.0 = Release-Net45|Any CPU
5537
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5638
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Debug-Net45|Any CPU.ActiveCfg = Debug|Any CPU
58-
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Debug-Net45|Any CPU.Build.0 = Debug|Any CPU
5939
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
6040
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Release|Any CPU.Build.0 = Release|Any CPU
61-
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Release-Net45|Any CPU.ActiveCfg = Release|Any CPU
62-
{41F4FF6F-0E65-439C-9091-BA2C8E25BAE0}.Release-Net45|Any CPU.Build.0 = Release|Any CPU
41+
{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}.Release|Any CPU.Build.0 = Release|Any CPU
6345
EndGlobalSection
6446
GlobalSection(SolutionProperties) = preSolution
6547
HideSolutionNode = FALSE

EventHook/ApplicationWatcher.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using System.Collections.Concurrent;
5-
using System.Threading;
64
using EventHook.Hooks;
75
using EventHook.Helpers;
86
using Nito.AsyncEx;

EventHook/ClipboardWatcher.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
using EventHook.Helpers;
33
using Nito.AsyncEx;
44
using System;
5-
using System.Collections.Concurrent;
6-
using System.Globalization;
7-
using System.IO;
8-
using System.Runtime.Serialization.Formatters.Binary;
9-
using System.Threading;
105
using System.Threading.Tasks;
116

127
namespace EventHook

EventHook/EventHook.csproj

Lines changed: 9 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -4,109 +4,41 @@
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{4FF5E04F-3425-4F55-A50A-30CEBA7C2B95}</ProjectGuid>
7+
<ProjectGuid>{3847A7F4-3F6B-4626-AF4C-8FDFBA6165F2}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>EventHook</RootNamespace>
1111
<AssemblyName>EventHook</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
1515
<RestorePackages>true</RestorePackages>
16+
<TargetFrameworkProfile />
1617
</PropertyGroup>
1718
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
2122
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>TRACE;DEBUG;NET40</DefineConstants>
23+
<DefineConstants>TRACE;DEBUG;NET45</DefineConstants>
2324
<ErrorReport>prompt</ErrorReport>
2425
<WarningLevel>4</WarningLevel>
2526
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
26-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
27+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
28+
<Prefer32Bit>false</Prefer32Bit>
2729
</PropertyGroup>
2830
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2931
<DebugType>pdbonly</DebugType>
3032
<Optimize>true</Optimize>
3133
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE;NET40</DefineConstants>
34+
<DefineConstants>TRACE;NET45</DefineConstants>
3335
<ErrorReport>prompt</ErrorReport>
3436
<WarningLevel>4</WarningLevel>
3537
<PlatformTarget>AnyCPU</PlatformTarget>
36-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
37-
</PropertyGroup>
38-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-Net45|AnyCPU'">
39-
<DebugSymbols>true</DebugSymbols>
40-
<OutputPath>bin\Debug-Net45\</OutputPath>
41-
<DefineConstants>TRACE;DEBUG;NET45</DefineConstants>
42-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
43-
<DebugType>full</DebugType>
44-
<PlatformTarget>AnyCPU</PlatformTarget>
45-
<ErrorReport>prompt</ErrorReport>
46-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
4738
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
39+
<Prefer32Bit>false</Prefer32Bit>
4840
</PropertyGroup>
49-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Net45|AnyCPU'">
50-
<OutputPath>bin\Release-Net45\</OutputPath>
51-
<DefineConstants>TRACE;NET45</DefineConstants>
52-
<Optimize>true</Optimize>
53-
<DebugType>pdbonly</DebugType>
54-
<PlatformTarget>AnyCPU</PlatformTarget>
55-
<ErrorReport>prompt</ErrorReport>
56-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
57-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
58-
</PropertyGroup>
59-
<ItemGroup Condition=" '$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
60-
<Reference Include="Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
61-
<EmbedInteropTypes>True</EmbedInteropTypes>
62-
</Reference>
63-
<Reference Include="Microsoft.Threading.Tasks">
64-
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
65-
</Reference>
66-
<Reference Include="Microsoft.Threading.Tasks.Extensions">
67-
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
68-
</Reference>
69-
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
70-
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
71-
</Reference>
72-
<Reference Include="Nito.AsyncEx">
73-
<HintPath>..\packages\Nito.AsyncEx.2.1.3\lib\net40\Nito.AsyncEx.dll</HintPath>
74-
</Reference>
75-
<Reference Include="Nito.AsyncEx.Concurrent">
76-
<HintPath>..\packages\Nito.AsyncEx.2.1.3\lib\net40\Nito.AsyncEx.Concurrent.dll</HintPath>
77-
</Reference>
78-
<Reference Include="Nito.AsyncEx.Enlightenment">
79-
<HintPath>..\packages\Nito.AsyncEx.2.1.3\lib\net40\Nito.AsyncEx.Enlightenment.dll</HintPath>
80-
</Reference>
81-
<Reference Include="PresentationCore" />
82-
<Reference Include="PresentationFramework" />
83-
<Reference Include="System" />
84-
<Reference Include="System.Core" />
85-
<Reference Include="System.Drawing" />
86-
<Reference Include="System.IO">
87-
<HintPath>..\packages\Microsoft.Bcl.1.1.7\lib\net40\System.IO.dll</HintPath>
88-
</Reference>
89-
<Reference Include="System.Net" />
90-
<Reference Include="System.Printing" />
91-
<Reference Include="System.Runtime">
92-
<HintPath>..\packages\Microsoft.Bcl.1.1.7\lib\net40\System.Runtime.dll</HintPath>
93-
</Reference>
94-
<Reference Include="System.Threading.Tasks">
95-
<HintPath>..\packages\Microsoft.Bcl.1.1.7\lib\net40\System.Threading.Tasks.dll</HintPath>
96-
</Reference>
97-
<Reference Include="System.Windows.Forms" />
98-
<Reference Include="System.Xaml" />
99-
<Reference Include="System.Xml.Linq" />
100-
<Reference Include="System.Data.DataSetExtensions" />
101-
<Reference Include="Microsoft.CSharp" />
102-
<Reference Include="System.Data" />
103-
<Reference Include="System.Xml" />
104-
<Reference Include="UIAutomationClient" />
105-
<Reference Include="UIAutomationProvider" />
106-
<Reference Include="UIAutomationTypes" />
107-
<Reference Include="WindowsBase" />
108-
</ItemGroup>
109-
<ItemGroup Condition=" '$(Configuration)'=='Debug-Net45' Or '$(Configuration)'=='Release-Net45'">
41+
<ItemGroup>
11042
<Reference Include="Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
11143
<EmbedInteropTypes>True</EmbedInteropTypes>
11244
</Reference>
@@ -167,19 +99,9 @@
16799
</ItemGroup>
168100
<ItemGroup>
169101
<None Include="app.config" />
170-
</ItemGroup>
171-
<ItemGroup Condition=" '$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
172102
<None Include="packages.config" />
173103
</ItemGroup>
174-
<ItemGroup Condition=" '$(Configuration)'=='Debug-Net45' Or '$(Configuration)'=='Release-Net45'">
175-
<None Include="packages-Net45.config" />
176-
</ItemGroup>
177104
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
178-
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
179-
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
180-
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
181-
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
182-
</Target>
183105
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
184106
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
185107
<PropertyGroup>

EventHook/EventHook.nuspec

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,12 @@
1111
<authors>titanium007</authors>
1212
<owners></owners>
1313
<dependencies>
14-
<group targetFramework="net40">
15-
<dependency id="Microsoft.Bcl" version="1.1.7" />
16-
<dependency id="Microsoft.Bcl.Async" version="1.0.16" />
17-
<dependency id="Microsoft.Bcl.Build" version="1.0.14" />
18-
<dependency id="Nito.AsyncEx" version="2.1.3" />
19-
</group>
2014
<group targetFramework="net45">
2115
<dependency id="Nito.AsyncEx" version="3.0.1" />
2216
</group>
2317
</dependencies>
2418
</metadata>
2519
<files>
26-
<file src="bin\$configuration$\EventHook.dll" target="lib\net40" />
27-
<file src="bin\$configuration$-Net45\EventHook.dll" target="lib\net45" />
20+
<file src="bin\$configuration$\EventHook.dll" target="lib\net45" />
2821
</files>
2922
</package>

EventHook/Hooks/WindowHook.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using EventHook.Helpers;
22
using System;
3-
using System.Threading;
4-
using System.Windows;
5-
using System.Windows.Forms;
6-
using System.Windows.Interop;
73

84
namespace EventHook.Hooks
95
{

EventHook/KeyboardWatcher.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
using System;
2-
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
4-
using System.Text;
5-
using System.Threading;
62
using EventHook.Hooks;
73
using EventHook.Helpers;
84
using System.Threading.Tasks;

0 commit comments

Comments
 (0)