locked
dll location for windows store app

    Question

  • Hello,

    1) I have Windows Store C# app.

    2) I added native code DLL.

    3) Windows Store C# app will use functions from native code DLL.

    4) I placed "output.dll" from native code Dll in  C:\Windows\System32\

    5) I run  Windows Store C# app and it works correctly. ( It calls all needed functions from "output.dll" )

    6) I placed "output.dll" in  the same folder with executable from Windows Store C# app and

        I've got error message that dll could not be found.

    Question_1:

    Is it normal behaviour for Windows Store app ?

    Question_1:

    When app will be later on installed from Windows Store where will be dll placed ?

    Monday, December 15, 2014 5:20 PM

Answers

  • You need to include the DLL as content in your project so it is include with and deployed in the appx package. Copying it to the executable folder isn't sufficient since that is just a template folder and not where the app will actually run from.

    • Marked as answer by dave_it_02 Tuesday, December 16, 2014 1:27 AM
    Monday, December 15, 2014 8:30 PM
    Owner

All replies

  • You need to include the DLL as content in your project so it is include with and deployed in the appx package. Copying it to the executable folder isn't sufficient since that is just a template folder and not where the app will actually run from.

    • Marked as answer by dave_it_02 Tuesday, December 16, 2014 1:27 AM
    Monday, December 15, 2014 8:30 PM
    Owner
  • Rob,

    thank you very much.

    Tuesday, December 16, 2014 1:28 AM