Is there a size limit for Revit 2015 Add-in dlls ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a complex add-in so the dll size gets somewhat large.
In Revit 2013 and 2014 the size is 21.9 MB (22,998,528 bytes) and works fine in both.
In Revit 2015 the size is 22.3 MB (23,481,856 bytes) and when I run it I get the attached error (LoadError.png).
But if I remove some of the tools in the add-in and get its size down to 21.7 MB (22,795,264 bytes), it works fine.
So my question is, is this because Revit has a maximum threshold for the add-in dll size ? or is this linked to the .NET symbol limit ?
I am using C++ (mixed managed and native)
Things I tried:
1 - This might sound like the tools I removed are the cause of the problem, but I tried removing different combinations of tools and all tools work but they don't work all at the same time.
2 - Tried compiling with /GF "Enable String Pooling" but didn't help.