# Publishing application with Windows SDK C# Wrapper

**URL:** <https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691>\
**Category:** Windows\
**Created:** [August 26, 2019, 7:45pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691 "2019-08-26T19:45:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [August 26, 2019, 7:45pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/1 "2019-08-26T19:45:31Z")

</div>

**Description**  
I’m developing with WindowsSDK C# Wrapper and I’m building and running the application on release mode.

But if I try to run as DEBUG or Publish the application, this line of code allways return sdkerr\_uninitialize

```
CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(new AuthParam { appKey = zoomAppKey, appSecret = appSecret });

```

How I can configure the application so I can run as Develop and publish the application?

**Which version?**  
I’m using the C# Wrapper Demo as base:

> **[C# wrapper - Windows - Native SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/c-sharp-wrapper)**
>
> C# Wrapper
> 
> 
> 
> Contents
> 
> 
> 
> 1\\. C# wrapper
> 
> Even though our Windows SDK demo and native interfaces are written in C/C++, we are still thinking about benef...

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 27, 2019, 4:58pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/2 "2019-08-27T16:58:53Z")

</div>

Hey @igor.lunarx,

The description of the `sdkerr_uninitialize` is “SDK is not initialized before the use”.

Are you initializing the SDK properly?

> **[Error Codes - Resource - Windows - Native SDKs - Zoom Software Development...](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/resource/error-codes)**
>
> Error Codes
> 
> 
> 
> Contents
> 
> 
> 
> The SDK might return errors in the callbacks or as return values. This list provides a description of possible error codes an...

-Tommy

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 27, 2019, 5:16pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/3 "2019-08-27T17:16:08Z")

</div>

Hi igor,

Thanks for the post. Our Windows SDK only supports “Release” at the moment, so you will need to debug and release under the “Release” mode.

For publishing the app, may I inquire what kind of publish are you referring? The “Publish” button in Visual Studio? Our Windows SDK does not have any other specific requirements as long as you follow the instruction in the doc:[https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/integration) and ensure that the SDK’s `.dll` files are under the same directory with your `.exe` file.

Are you getting any errors that are related to SDK while publishing?

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [August 27, 2019, 5:32pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/4 "2019-08-27T17:32:17Z")

</div>

On Visual Studio with the “Release” mode, everything works fine. But when I change for Debug it does not work.

I can workarround that with a PostBuild event. But I dont think that’s ideal.

```
xcopy /E /Y "$(ProjectDir)DependecyDir\*" "$(ProjectDir)$(OutDir)"
```

---

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [August 27, 2019, 5:45pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/5 "2019-08-27T17:45:58Z")

</div>

> [@carson.zoom](#):
>
> Our Windows SDK does not have any other specific requirements as long as you follow the instruction in the doc:[https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/integration) and ensure that the SDK’s `.dll` files are under the same directory with your `.exe` file.
> 
> Are you getting any errors that are related to SDK while publishi

Carson, thanks for the attention.

My project is basically the C# Wrapper Demo project from the Zoom Page. I’ve tried two ways to publish the project and neither work.

 ![properties%20publish](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8a83d7e596898a8368c9959628ec9af081d182fe.png) ![rightclick](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7d6f657fc5295d24b8f440b1c59e9a1d2b5056a4.png)

The project only have the reference for the wrapper. Am I missing something?

![references](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/38f643e18b525e45cae49701e9fd1340c6c394c5.png)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 28, 2019, 7:15am UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/6 "2019-08-28T07:15:22Z")

</div>

Hi igor,

Thanks for the reply and thanks for the screenshots. I have not published apps using this method with our demo app before. I have passed this information to our engineering team to investigate this and get back to your asap.

Thanks!

---

<div class="post-metadata">

**Author:** ![greedylumpsoftware](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greedylumpsoftware/32/1305_2.png) [@greedylumpsoftware](https://devforum.zoom.us/u/greedylumpsoftware)\
**Post date:** [June 2, 2020, 9:47pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/7 "2020-06-02T21:47:41Z")

</div>

I guess I’ll skip the why question and go right to: how do i debug it in release mode?  
And I’m having the same problem; the sdk does not initialize for the c# wrapper project in debug mode but to do anything meaningful I need to be able to hit break points and inspect local variables.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 6:31am UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/8 "2020-06-04T06:31:10Z")

</div>

Hi @greedylumpsoftware,

Thanks for the reply. The C# wrapper is open sources so you may configure the source code and add debug features into the source code and rebuild it at any time.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:51pm UTC](https://devforum.zoom.us/t/publishing-application-with-windows-sdk-c-wrapper/5691/9 "2020-08-21T21:51:31Z")

</div>

Closed on August 21, 2020, 9:51pm UTC


