Search code examples
c#sqlitewindows-phone-8visual-studio-2013deployment

Deployment optimization failed, how to fix?


I am developing a windows phone app (The solution consist of two projects, i am referring one project in the other) with sqlite as the Database. The App runs only on the ARM platform. In Debug mode the app runs fine on the device and all functionalities of the app appears working but when i change it to Release mode i get the following error

Deployment optimization failed due to an invalid assembly. Rebuild your source projects and try again.

I rebuild the project several time but getting the same error on Release mode. I found this and tried it but couldn't solve my issue., I also removed all the unused assemblies in my .cs files. how can i fix this ? what am i doing wrong ?


Solution

  • I finally found a solution !! In release mode i removed .dlls one by one and built the solution when error occurs i added them back. In my case the error was because of a dll from nuget , i fixed that and as next step i configured Debug Mode to be Simiar to Release mode by right clicking on the projects and selecting properties and then changing configurations same for both Debug and Release modes...