# Cannot rebuild C# Wrapper

**URL:** <https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005>\
**Category:** Windows\
**Created:** [June 8, 2021, 1:32pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005 "2021-06-08T13:32:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brook.ballard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brook.ballard/32/27140_2.png) [@brook.ballard](https://devforum.zoom.us/u/brook.ballard)\
**Post date:** [June 8, 2021, 1:32pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/1 "2021-06-08T13:32:12Z")

</div>

We have recently started to switch over to using the C# wrapper for our windows app. We know that the C# wrapper is not fully maintained at this point, so our plan will be to add in and modify functionality as needed. When I download the latest C# wrapper (v5.5.12511.0422), I can add a reference to the existing zoom\_sdk\_dotnet\_wrap.dll found in the \bin folder (which was built on 4/22/21). We can work with the code from the DLL, and the SDK Initialize call returns “SUCCESS”.

However, if I open the zoom\_sdk\_c\_sharp\_wrap.sln and rebuild the dll (Release, x86, with **zero changes** ), referencing the new dll results in the sdk Initialize return “MODULE\_LOAD\_FAILED”. Note - we have made 0 changes to the wrapper code at this point, and I’ve done this several times to be absolutely sure. We simply open the wrapper C# project, update the build config to Release/x86, and rebuild, and the resulting dll fails to initialize the sdk.

Has anyone run into this? Are we just missing a step somewhere?

The only other thing I’ve noticed is a warning when building that the output directory (solution/config) does not match the Linker output (…/bin). I’ve tried modifying this config to line up, but this did not have any impact.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 8, 2021, 8:29pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/2 "2021-06-08T20:29:22Z")

</div>

Hey @brook.ballard,

Thanks for using the dev forum! It is nice to see you again 🙂

First, I would recommend isolating your environment to the c# demo application for troubleshooting.

The folder will contain two separate projects, zoom\_sdk\_demo (which is the demo c# project that utilizes the wrapper DLL) and the zoom\_sdk\_c\_sharp\_wrap which is the project that creates the wrapper DLL.

1. Open both projects side-by-side
2. Make a very simple change in the c\_sharp\_wrap project. For example, I removed a parameter from the initParam class.
3. Clean the c\_sharp\_wrap solution, then build it. If any errors arise, resolve them and do that again.
4. THEN, clean the demo project, and build the project. Reopen the file that would show the change and the removed parameter should be gone.

Note, when I clean and rebuild either project I am cleaning/rebuilding the the actual project and not the solution.

Let me know if you get to that point, if so, try again in your environment.

Keep in mind, however, that c# support is not in scope of Developer Support. When issues arise using the c# wrapper, Developer Relations will almost always ask you to reproduce issues in the c++ version. We hope to change this in the future.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![brook.ballard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brook.ballard/32/27140_2.png) [@brook.ballard](https://devforum.zoom.us/u/brook.ballard)\
**Post date:** [June 9, 2021, 6:43pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/3 "2021-06-09T18:43:47Z")

</div>

Thanks for the quick response Michael. Yes- I have cleaned and rebuilt the wrapper, but this has not worked. Is the wrapper project coupled to the demo project? We only want to work with the wrapper, independently of the demo project. Basically, we want to plug the wrapper project into our project as an existing project, then modify and build out functionality in the wrapper, updating the dll each time, and referencing that updated dll from another project (within the solution). It seems like any time I move the wrapper dll away from the demo project, it stops working.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 9, 2021, 9:04pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/4 "2021-06-09T21:04:48Z")

</div>

Hey @brook.ballard,

No, the wrapper is not dependent on the demo project. The only reason I ask to troubleshoot in the demo project is so that we are working on the same problem in the same environment. If the wrapper DLL not working after modification in your environment, it makes it hard to troubleshoot what the issue it. If the same issue is happening in the demo application we can compare what settings are different to resolve your issue.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![brook.ballard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brook.ballard/32/27140_2.png) [@brook.ballard](https://devforum.zoom.us/u/brook.ballard)\
**Post date:** [June 9, 2021, 9:33pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/5 "2021-06-09T21:33:44Z")

</div>

Michael - as suggested, I isolated this issue to the wrapper/demo. Starting from a clean slate (freshly downloaded and unzipped wrapper) I made a single change to the zoom\_sdk\_dotnet\_wrap.cpp file - commented out line 49 which is just setting the optionalFeatures property on the InitParam object. I then rebuilt the dll, and launched the demo project. The SDK Initializes successfully. I then added a reference to the zoom\_sdk\_dotnet\_wrap.dll in our custom project, and added the same initialization code to our App\_StartUp function. When launching our project, the SDK returns MODULE\_LOAD\_FAILED.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 10, 2021, 6:21pm UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/6 "2021-06-10T18:21:03Z")

</div>

Hey @brook.ballard,

When you clean and rebuild the wrapper, you can see all of the files that were changed in the bin file(Check the date they were modified). Can you list out those files here so that I can compare?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 11, 2021, 4:21am UTC](https://devforum.zoom.us/t/cannot-rebuild-c-wrapper/52005/7 "2021-07-11T04:21:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
