diff --git a/CUE.NET.csproj b/CUE.NET.csproj
index 8a536c0..2950544 100644
--- a/CUE.NET.csproj
+++ b/CUE.NET.csproj
@@ -12,39 +12,21 @@
v4.6
512
-
+
true
- bin\x64\
- TRACE;DEBUG;WIN64
- full
- x64
- prompt
- MinimumRecommendedRules.ruleset
-
-
- bin\x64\
- TRACE;WIN64
- true
- pdbonly
- x64
- prompt
- MinimumRecommendedRules.ruleset
-
-
- true
- bin\x86\
+ bin\
TRACE;DEBUG;WIN32
full
- x86
+ AnyCPU
prompt
MinimumRecommendedRules.ruleset
-
- bin\x86\
+
+ bin\
TRACE;WIN32
true
pdbonly
- x86
+ AnyCPU
prompt
MinimumRecommendedRules.ruleset
@@ -107,23 +89,7 @@
-
-
-
-
-
-
-
- if $(PlatformName) == x86 copy "$(SolutionDir)libs\CUESDK_2013.dll" "$(TargetDir)CUESDK_2013.dll"
-if $(PlatformName) == x64 copy "$(SolutionDir)libs\CUESDK.x64_2013.dll" "$(TargetDir)CUESDK.x64_2013.dll"
-
-
+
\ No newline at end of file
diff --git a/CUE.NET.nuspec b/CUE.NET.nuspec
index e9b4b65..6a7d937 100644
--- a/CUE.NET.nuspec
+++ b/CUE.NET.nuspec
@@ -2,21 +2,22 @@
CUE.NET
+ CUE.NET
0.1.0
- C# Wrapper library around the Corsair CUE SDK
- DarthAffe
- DarthAffe
+ Darth Affe
+ Darth Affe
+ https://github.com/DarthAffe/CUE.NET
https://raw.githubusercontent.com/DarthAffe/CUE.NET/master/LICENSE
true
Corsair HID SDK Wrapper
- C# (.NET) Wrapper library around the Corsair CUE-SDK
-
-I'm currently working on this library and it's far from being finished. Please be patient (or drop me a message) if something is missing, behave
- 2015 DarthAffe
+ C# (.NET) Wrapper library around the Corsair CUE-SDK
+ Copyright © Wyrez 2015
en-US
-
-
+
+
+
+
\ No newline at end of file
diff --git a/CUE.NET.sln b/CUE.NET.sln
index 377c477..30ce44c 100644
--- a/CUE.NET.sln
+++ b/CUE.NET.sln
@@ -9,35 +9,47 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{1F
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleDevTest", "Examples\SimpleDevTest\SimpleDevTest.csproj", "{7FD88256-5E14-4D7C-862B-7BC2CD04081A}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FF50AF6A-D2AC-4772-B013-C10D127DBE29}"
+ ProjectSection(SolutionItems) = preProject
+ CUE.NET.nuspec = CUE.NET.nuspec
+ CUE.NET.targets = CUE.NET.targets
+ nuget.exe = nuget.exe
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libs", "libs", "{D69EF6D8-68FF-4C56-B5CB-253971B1DF91}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "x86", "x86", "{0525D895-E706-4920-8733-DABD9194BFB1}"
+ ProjectSection(SolutionItems) = preProject
+ libs\x86\CUESDK_2013.dll = libs\x86\CUESDK_2013.dll
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "x64", "x64", "{2F99124B-FAED-432D-B797-45566D373411}"
+ ProjectSection(SolutionItems) = preProject
+ libs\x64\CUESDK_2013.dll = libs\x64\CUESDK_2013.dll
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|x64.ActiveCfg = Release|x64
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|x64.Build.0 = Release|x64
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|x86.ActiveCfg = Release|x86
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|x86.Build.0 = Release|x86
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|x64.ActiveCfg = Release|x64
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|x64.Build.0 = Release|x64
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|x86.ActiveCfg = Release|x86
- {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|x86.Build.0 = Release|x86
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|x64.ActiveCfg = Debug|x64
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|x64.Build.0 = Debug|x64
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|x86.ActiveCfg = Debug|x86
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|x86.Build.0 = Debug|x86
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|x64.ActiveCfg = Release|x64
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|x64.Build.0 = Release|x64
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|x86.ActiveCfg = Release|x86
- {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|x86.Build.0 = Release|x86
+ {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {70A266B5-E9D4-4EAA-A91A-947C0039FFB6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7FD88256-5E14-4D7C-862B-7BC2CD04081A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{7FD88256-5E14-4D7C-862B-7BC2CD04081A} = {1F52DDC9-E9D0-4A7B-8E78-930528203EE6}
+ {D69EF6D8-68FF-4C56-B5CB-253971B1DF91} = {FF50AF6A-D2AC-4772-B013-C10D127DBE29}
+ {0525D895-E706-4920-8733-DABD9194BFB1} = {D69EF6D8-68FF-4C56-B5CB-253971B1DF91}
+ {2F99124B-FAED-432D-B797-45566D373411} = {D69EF6D8-68FF-4C56-B5CB-253971B1DF91}
EndGlobalSection
EndGlobal
diff --git a/CUE.NET.targets b/CUE.NET.targets
new file mode 100644
index 0000000..0b0f74f
--- /dev/null
+++ b/CUE.NET.targets
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %(RecursiveDir)%(FileName)%(Extension)
+ Always
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ bin\%(RecursiveDir)%(Filename)%(Extension)
+
+
+
+
+
+
+
+
+ $(PostBuildEventDependsOn);
+ CopyCueNETSDKFiles;
+
+
+ $(BuildDependsOn);
+ CopyCueNETSDKFiles;
+
+
+ $(CleanDependsOn);
+ CleanCueNETSDKFiles;
+
+
+
+
+
+
+
+ CollectCueNETSDKFiles;
+ $(PipelineCollectFilesPhaseDependsOn);
+
+
+
diff --git a/CueSDK.cs b/CueSDK.cs
index 147ceb9..c3c2679 100644
--- a/CueSDK.cs
+++ b/CueSDK.cs
@@ -17,6 +17,7 @@ namespace CUE.NET
// ReSharper disable UnusedAutoPropertyAccessor.Global
+ public static string LoadedArchitecture => _CUESDK.LoadedArchitecture;
public static CorsairProtocolDetails ProtocolDetails { get; private set; }
public static bool HasExclusiveAccess { get; private set; }
public static CorsairError LastError => _CUESDK.CorsairGetLastError();
diff --git a/Examples/SimpleDevTest/Program.cs b/Examples/SimpleDevTest/Program.cs
index aa661a8..fdcaf38 100644
--- a/Examples/SimpleDevTest/Program.cs
+++ b/Examples/SimpleDevTest/Program.cs
@@ -30,6 +30,7 @@ namespace SimpleDevTest
{
// Initialize CUE-SDK
CueSDK.Initialize();
+ Console.WriteLine("Initialized with " + CueSDK.LoadedArchitecture + "-SDK");
// Get connected keyboard or throw exception if there is no light controllable keyboard connected
CorsairKeyboard keyboard = CueSDK.KeyboardSDK;
diff --git a/Examples/SimpleDevTest/SimpleDevTest.csproj b/Examples/SimpleDevTest/SimpleDevTest.csproj
index 9afa9f9..76a2ca4 100644
--- a/Examples/SimpleDevTest/SimpleDevTest.csproj
+++ b/Examples/SimpleDevTest/SimpleDevTest.csproj
@@ -13,42 +13,22 @@
512
true
-
+
true
- bin\x64\
+ bin\
DEBUG;TRACE
full
- x64
+ AnyCPU
prompt
MinimumRecommendedRules.ruleset
true
-
- bin\x64\
+
+ bin\
TRACE
true
pdbonly
- x64
- prompt
- MinimumRecommendedRules.ruleset
- true
-
-
- true
- bin\x86\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- true
-
-
- bin\x86\
- TRACE
- true
- pdbonly
- x86
+ AnyCPU
prompt
MinimumRecommendedRules.ruleset
true
@@ -79,8 +59,8 @@
- if $(PlatformName) == x86 copy "$(SolutionDir)libs\CUESDK_2013.dll" "$(TargetDir)CUESDK_2013.dll"
-if $(PlatformName) == x64 copy "$(SolutionDir)libs\CUESDK.x64_2013.dll" "$(TargetDir)CUESDK.x64_2013.dll"
+ xcopy "$(SolutionDir)libs\x64\CUESDK_2013.dll" "$(TargetDir)x64\" /y
+xcopy "$(SolutionDir)libs\x86\CUESDK_2013.dll" "$(TargetDir)x86\" /y