From cc213e6d734f194f78c52136855cffcd84dea874 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Wed, 28 Oct 2015 18:14:28 +0100 Subject: [PATCH] Changed build-traget to .NET 4.5. This resolves #28 --- CUE.NET.csproj | 5 ++++- Devices/Keyboard/CorsairKeyboard.cs | 2 +- .../AudioAnalyzer/Example_AudioAnalyzer_full/App.config | 6 +++--- .../Example_AudioAnalyzer_full.csproj | 7 +++++-- Examples/SimpleDevTest/App.config | 6 +++--- Examples/SimpleDevTest/SimpleDevTest.csproj | 7 +++++-- 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/CUE.NET.csproj b/CUE.NET.csproj index 47c2c85..141a06d 100644 --- a/CUE.NET.csproj +++ b/CUE.NET.csproj @@ -9,8 +9,9 @@ Properties CUE.NET CUE.NET - v4.6 + v4.5 512 + true @@ -20,6 +21,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false bin\ @@ -29,6 +31,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false diff --git a/Devices/Keyboard/CorsairKeyboard.cs b/Devices/Keyboard/CorsairKeyboard.cs index 7387038..597cc57 100644 --- a/Devices/Keyboard/CorsairKeyboard.cs +++ b/Devices/Keyboard/CorsairKeyboard.cs @@ -235,7 +235,7 @@ namespace CUE.NET.Devices.Keyboard IntPtr ptr = nativeLedPositions.pLedPosition; for (int i = 0; i < nativeLedPositions.numberOfLed; i++) { - _CorsairLedPosition ledPosition = Marshal.PtrToStructure<_CorsairLedPosition>(ptr); + _CorsairLedPosition ledPosition = (_CorsairLedPosition)Marshal.PtrToStructure(ptr, typeof(_CorsairLedPosition)); CorsairLed led = GetLed((int)ledPosition.ledId); _keys.Add(ledPosition.ledId, new CorsairKey(ledPosition.ledId, led, new RectangleF((float)ledPosition.left, (float)ledPosition.top, (float)ledPosition.width, (float)ledPosition.height))); diff --git a/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/App.config b/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/App.config index 8324aa6..d1428ad 100644 --- a/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/App.config +++ b/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/Example_AudioAnalyzer_full.csproj b/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/Example_AudioAnalyzer_full.csproj index 7983309..6ba9d6d 100644 --- a/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/Example_AudioAnalyzer_full.csproj +++ b/Examples/AudioAnalyzer/Example_AudioAnalyzer_full/Example_AudioAnalyzer_full.csproj @@ -9,11 +9,12 @@ Properties Example_AudioAnalyzer_full Example_AudioAnalyzer_full - v4.6 + v4.5 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true + x86 @@ -75,7 +76,9 @@ - + + Designer + diff --git a/Examples/SimpleDevTest/App.config b/Examples/SimpleDevTest/App.config index 8324aa6..d1428ad 100644 --- a/Examples/SimpleDevTest/App.config +++ b/Examples/SimpleDevTest/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/Examples/SimpleDevTest/SimpleDevTest.csproj b/Examples/SimpleDevTest/SimpleDevTest.csproj index 76a2ca4..2649844 100644 --- a/Examples/SimpleDevTest/SimpleDevTest.csproj +++ b/Examples/SimpleDevTest/SimpleDevTest.csproj @@ -9,9 +9,10 @@ Properties SimpleDevTest SimpleDevTest - v4.6 + v4.5 512 true + true @@ -49,7 +50,9 @@ - + + Designer +