Comments (12)
Well to be honest I can't see any reason how this could be the fault of the the library. The debug directory is chosen by VS and if it tells wrong paths to nuget there's not too much I can do about that.
Right now I only see two solutions to this problem:
-
If the app isn't working at all (so if it's not a debugger problem) I'm afraid you'd need to copy the dlls into the correct directory by hand or customize the build-target provided by CUE.NET to do so in your special case.
-
I'm not 100% sure how the complete directory-structure of your build-result is but if it works if you use the app directly (so if it's a debugger problem) you could just add your special case to the native-paths:
// Execute this two lines before you call CueSDK.Initialize() for the first time.
CueSDK.PossibleX86NativePaths.Add(@"..\x86\CUESDK_2015.dll");
CueSDK.PossibleX64NativePaths.Add(@"..\x64\CUESDK_2015.dll");
from cue.net.
Could you give me the exception message provided by the WrapperException?
Since you seem not to run an console-application the Console.WriteLine in the exception-block won't work, but you could just set a breakpoint in there and copy the message out of the debug-window.
from cue.net.
Oh right, can do later on
EDIT: @DarthAffe I can see console output in Visual Studio's output tab
from cue.net.
Exception thrown: 'CUE.NET.Exceptions.WrapperException' in CUE.NET.dll ("Can't find the CUE-SDK at one of the expected locations:
'S:\Visual Studio\Projects\test\test\bin\x86\Debug\AppX\x86\CUESDK_2015.dll
S:\Visual Studio\Projects\test\test\bin\x86\Debug\AppX\x86\CUESDK.dll'") CUE.NET.Exceptions.WrapperException
It doesn't appear to be copying the dll to the correct location
from cue.net.
Are you using the nuget-package? If not the dlls aren't copied on their own. If yes that's somehow weird since there shouldn't be a difference between building a uwp and a normal .net app.
from cue.net.
Yes, I'm using the nuget package. The DLLs are copied to <project dir>\bin\x86\Debug\x86
but it seems the library is looking in the wrong directory?
from cue.net.
That's interesting. The default behavior is to just look for an "x86/" or "x64/" subfolder. I'm not sure why the application thinks that it's running in an AppX subfolder. Is there maybe some debug-path-configuration for uwp projects?
from cue.net.
I don't think there is, other libraries seem to work fine
Sorry for the late response, I apparently didn't hit send on this when I first wrote it
from cue.net.
Ok, I'll try this later.
from cue.net.
Sorry for the late reply again, just got some free time.
Even with your code above, it still seems to be checking in a nonexistent AppX folder
Exception thrown: 'CUE.NET.Exceptions.WrapperException' in CUE.NET.dll ("Can't find the CUE-SDK at one of the expected locations:
'S:\Visual Studio\Projects\test\test\bin\x86\Debug\AppX\x86\CUESDK_2015.dll
S:\Visual Studio\Projects\test\test\bin\x86\Debug\AppX\x86\CUESDK.dll
S:\Visual Studio\Projects\test\test\bin\x86\Debug\AppX\x86\CUESDK_2015.dll'")
I used both your code above and the following:
CueSDK.PossibleX86NativePaths.Add(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "x86\\CUESDK_2015.dll"));
CueSDK.PossibleX64NativePaths.Add(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "x64\\CUESDK_2015.dll"));
from cue.net.
That's super weird ...
Are you 100% sure that the code I wrote above is correctly executed? I just tested it again and it works fine for me (even though I can't test with UWP). Also in the error message only 3 paths are shown. The first two are the defaults, the second one seems to be the one you added with the basedirectory.
Aside of that I don't see any other option than debugging into the LoadCUESDK to see what he is trying to do with that paths.
from cue.net.
How would I know if the code is being executed correctly? It's put right before CueSDK.Initialize(), so I assume it's working.
I'll do more debugging on what the different path variables return, and see if any of them actually point to AppX
from cue.net.
Related Issues (20)
- Uninitialize or Shutdown functionality HOT 4
- Test development-changes with all devices HOT 6
- [1.0.0] Keyboard DeviceRectangle size HOT 3
- Using CUE.NET with CUE2 keyboard keys go to white when calling update() HOT 4
- Update Wiki
- Profile-API isn't able to find CUE2 profiles
- CUE.NET Does not initialize for some users HOT 5
- Memory leaks when using LED groups and brushes HOT 18
- K95 Platinum lightbar support HOT 8
- Load SDK dll from different location HOT 4
- VOID Wireless bug and feature request HOT 2
- Keys which don't exist on a physical device (ie. Macro keys) throws null reference HOT 4
- Locking the PC stops updates (sometimes) HOT 6
- HELP NEEDED: How to keep LED changes active after running application? HOT 2
- CueSDK.Reinitialize never returns HOT 1
- Can't update Key Colors individually unless Brush is applied. HOT 4
- Calling EnableKeypressCallback() more than once causes duplicated events and GC/NRE issues
- Can't read color without device freezing
- Corsair keyboard K70 MK.2 RGB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cue.net.