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
+