How to create DLL, CS, and CSPROJ files when using "compiler.build.dotNETAssembly" to build .NET Assembly from MATLAB code in MATLAB R2023a?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 11 Jan. 2024
Beantwortet: MathWorks Support Team
am 26 Jul. 2024 um 13:25
In MATLAB R2023a, I am using the function "compiler.build.dotNETAssembly" in MATLAB Compiler SDK to build .NET assembly from a MATLAB function contained in an M-file. I am following along with the example presented in the documentation page below, and have completed all the prerequisite work for the example:
https://www.mathworks.com/help/compiler_sdk/dotnet/deploy-mlcode-in-dotnetapp-using-ml-data-api-for-dotnet.html#mw_14828dc7-c757-4425-b821-f58710285bbb
However, the output folder, listed under "P:\MATLAB\WORK\OUTPUT" on the documentation page, does not contain any ".CS", ".CSPROJ", or ".DLL" files.
Akzeptierte Antwort
MathWorks Support Team
am 11 Jan. 2024
The function "compiler.build.dotNETAssembly" does not automatically generate ".CS", ".CSPROJ", or ".DLL" files in MATLAB R2023a. This functionality was introduced in MATLAB R2023b.
For MATLAB R2023a, refer to the "Integrate MATLAB Code into .NET Application" section of the following documentation page for instructions to generate the desired wrapper files using the .NET SDK Command Line API or Microsoft Visual Studio (Windows only):
This process allows you to integrate your compiled MATLAB code into a .NET app that has ".CS", ".CSPROJ", and ".DLL" files, similar to the files directly generated by "compiler.build.dotNETAssembly" in later releases.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deploy to .NET Applications Using MWArray API finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!