S/A requires more explicit dependencies than MSBuild does?
eric-914
Posts: 46
I have a .dll named "MyProject", which uses another .dll I made named "MyLibrary". "MyLibrary" has a reference to: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling
I've got a reference in "MyProject" to "MyLibrary", and Visual Studio/MSBuild can compile "MyProject" just fine.
S/A, however, cannot:
SmartAssembly v6.8.0.121
Copyright c Red Gate Software 2005-2013
Loading project MyProject.saproj
Loading...
ERROR: Cannot find dependency 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', which is required for assembly:
MyLibrary, Version=1.6.0.0, Culture=neutral, PublicKeyToken=...
MyProject, Version=1.6.0.0, Culture=neutral, PublicKeyToken=...
Ensure that this dependency is in the main assembly folder, or in the Global Assembly Cache (GAC).
Now this is irritating because my S/A project is only obfuscating "MyProject".dll. It's not even trying to merge/embed "MyLibrary".dll, let alone even lower dependencies.
Can this get fixed?
My current work around plan is to script a copy of the Microsoft....dll to the "MyProject".dll folder.
I've got a reference in "MyProject" to "MyLibrary", and Visual Studio/MSBuild can compile "MyProject" just fine.
S/A, however, cannot:
SmartAssembly v6.8.0.121
Copyright c Red Gate Software 2005-2013
Loading project MyProject.saproj
Loading...
ERROR: Cannot find dependency 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', which is required for assembly:
MyLibrary, Version=1.6.0.0, Culture=neutral, PublicKeyToken=...
MyProject, Version=1.6.0.0, Culture=neutral, PublicKeyToken=...
Ensure that this dependency is in the main assembly folder, or in the Global Assembly Cache (GAC).
Now this is irritating because my S/A project is only obfuscating "MyProject".dll. It's not even trying to merge/embed "MyLibrary".dll, let alone even lower dependencies.
Can this get fixed?
My current work around plan is to script a copy of the Microsoft....dll to the "MyProject".dll folder.
Comments
Can S/A at least list out all the dependencies it claims it needs at one time?
ERROR: Cannot find dependency 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', which is required for assembly:
S/A is only telling me one supposedly required dependency at a time.
I'm trying to do this through TeamCity. It takes awhile for me to find out what the next "missing dependency" is.
Now, true, the next-level dependencies will be required to RUN the code, but shouldn't be necessary to COMPILE the code.
It's S/A that's demanding ALL dependencies required to RUN be in the build folder, not just those that are required to COMPILE.