You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application has been once deployed without using Costura and a reference assembly has been updated in the meantime. We now deploy our (fully managed code) application, thanks to costura, using a single .exe. Because we cannot delete the old dlls in the folder, costura cannot work correctly.
The problem that arise is that the .Net Framework doesn't give a chance for Costura to intervene, since AppDomain.AssemblyResolve isn't called, because it picks the existing dll in the application folder. Then, if the assembly has a strong name, it will throw an Exception because of version mismatch, and if not it will simply use the older version.
The application is autoupdated on system we don't have access to, and the autoupdater can't be extended to remove the old files.
If possible, I would like to contribute to this project by implementing the solution to this problem, however I failed at some attempts to solve it (tried this by doing what costura does manually without weaving). Any idea would be welcome.
The text was updated successfully, but these errors were encountered:
@riemaecker the root of this problem is that you are not doing a clean deploy. While appreciate the offer to contribute I am not sure this is a problem that costura should be solving.
The application has been once deployed without using Costura and a reference assembly has been updated in the meantime. We now deploy our (fully managed code) application, thanks to costura, using a single .exe. Because we cannot delete the old dlls in the folder, costura cannot work correctly.
The problem that arise is that the .Net Framework doesn't give a chance for Costura to intervene, since AppDomain.AssemblyResolve isn't called, because it picks the existing dll in the application folder. Then, if the assembly has a strong name, it will throw an Exception because of version mismatch, and if not it will simply use the older version.
The application is autoupdated on system we don't have access to, and the autoupdater can't be extended to remove the old files.
If possible, I would like to contribute to this project by implementing the solution to this problem, however I failed at some attempts to solve it (tried this by doing what costura does manually without weaving). Any idea would be welcome.
The text was updated successfully, but these errors were encountered: