Apologies we weren't able to reply on this sooner!
It looks like SmartAssembly is using the dll from theDevExpress install folder.
Just to confirm, is your main assembly located in c:\Program Files (x86)\DevExpress 20.2 as well? If it is, and SmartAssembly still isn't detecting it, is it possible for you to share your project and assembly files with us to test with?
(On the other hand, if the main .exe/.dll is in another location, placing a copy of the DevExpress file in the same location should resolve this.)
Ramos | Product Support Engineer | Redgate Software
visited our Help Center?
Thanks for sending that over!
Our developers have clarified that as of SmartAssembly 7.5.0, framework folders take precedence over assembly's output directory. Because DevExpress adds itself to framework assemblies list in the registry, SmartAssembly treats it as framework assembly and doesn't allow to merge or embed it.
We're going to investigate this further and have logged an issue in our tracking system with reference SA-2421.
For now, the workaround would be to use HintPath or MandatoryPath in .saproj to force SmartAssembly to pick up the assembly from the main assembly folder, not a framework folder. For example:
<!-- add this: --><Assembly AssemblyName="DevExpress.Data.Desktop.v20.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" MandatoryPath="DevExpress.Data.Desktop.v20.2.dll"> <Merging /> <Embedding Compress="1" Encrypt="1" /></Assembly>
Note that MandatoryPath expects either an absolute path or a path relative to the .saproj project file.
Hope that helps for now!
(Other alternatives would be to build the project on a machine without DevExpress installed or downgrade to SA 7.4.6.)
I'm really sorry to say that we're still unable to give an ETA on this as our developers are working on other bug fixes at the moment.
At the moment, the only workarounds would be to:
- Use HintPath or MandatoryPath in the saproj file (using the find&replace dialog in Notepad++ will hopefully make this easier!)
- Using the older version of SA which did not have this issue, v7.4.6 available here
- Build the project on a machine without DevExpress installed
Apologies again as I know this is not the answer you were hoping for and the workarounds are not ideal, but I do hope one of the options above may work for you!
Tips and how-to guides for Redgate products
Ask, discuss, and solve questions about Redgate's tools
Meet us at an event, get sponsored, and join our Friends of Redgate
In-depth articles and opinion from Redgate's technical journal