Why am I recieving a "Duplicate 'AssemblyVersion'" error when I use an "AssemblyInfo.cs" file in MATLAB R2019b?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 19 Mar 2024
Edited: MathWorks Support Team
on 19 Mar 2024
I want to set the version number for my .NET Assembly by using the attribute "AssemblyVersion" in an "AssemblyInfo.cs" file. This was working for me in an earlier version of MATLAB.
When I do this in MATLAB R2019b, I receive the following error:
"AssemblyInfo.cs(6,12): error CS0579: Duplicate 'AssemblyVersion'
Why am I receiving this error and how can I specify the "AssemblyVersion"?
Accepted Answer
MathWorks Support Team
on 19 Mar 2024
As of R2019b, the "AssemblyInfo.cs" workflow does not work for the version number specifically, but can still be used for the other properties.
As an alternative on Windows, the version can be specified in the Library Compiler tool. Additionally, the version can be specified in "mcc" by appending "version=
version_number"
to end of the "-W" arguments list.
If the version number needs to be specified by using an external file, you can still give the .DLL a version number using the workflow described at this link:
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!