Builder NE + ClickOnce application = fail

1 view (last 30 days)
Mark Welch
Mark Welch on 20 Sep 2013
I've been using Matlab Builder NE to generate a .NET assembly for use in a WPF application.
In order to get the .NET assembly working, I had to uncheck "Embed CTF archive into the Application" in the project, and manually copy the CTF archive from the generated source into my VS project. However, when I try to deploy the published application, I get to choose between two undesirable outcomes:
  • When I include the Matlab-generated CTF in my project, the deployment fails, claiming that the CTF file already exists in the destination folder. (I checked the application manifest, and the CTF file is only mentioned once.)
  • If I remove the CTF file from the build, one is generated automatically in the deployment items for the application. However, the autogenerated CTF file does not work; the application aborts when calling into the generated .NET assembly.
I'm asking here because of the need to manually deploy the CTF archive in the first place, which arose from a technical support call with Mathworks. Search engines are not being helpful.
Can someone point me to information about what this CTF archive is for, and how I can best install it with my deployed application? Has anyone else tried to do this same thing with a Builder NE assembly?
Thanks in advance for any available information.
Windows 7, .NET 4.0, Matlab R2013a

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!