简体   繁体   中英

VS2017 Release build not building

I'm becoming mad because my visual studio stop builds my solution correctly.... It compiles right only the first time but when i try to recompile it doesn't since a fully system reboot. Obviously I don't receve any type of error that can let me understand that something went wrong, it compiles successfully but when i deploy apk/ipa or try to debug the code I see that's the oldest one before my updates:

=== Ricompilazione: 2 completate (Completed), 0 non riuscite (failed), 1 ignorate (skipped) === (the skipped one is ios when I compile for Android and vice-versa)

Below an hilarious problem that let me understand that something went wrong: 在此处输入图片说明

I see that problem only in Release mode and not in Debug mode, and i try evrything:

  • Restart visual studio
  • clear/rebuild
  • delete bin/obj
  • clear nugets cache (yes i was desperate).
  • clone the Debug mode into a Release2 mode and editing to be similar to Release Mode (and building the project in Release2 mode).
  • Close project+vs, delete all msbuild/vs related process into the task manager and restart vs.

My code is made by 3 project:

  • proj portable

  • proj.droid

  • proj.ios

I definitively solve my problem (and is completely different from what i was thinking at the start xD), seems that if your app have some problem during the "automatic package restore" nuget options it doesnt show any error but run the last corrected-compiled version of the software. In my case i had a problem with my Microsoft.bcl.build package that broke the 'automatic package restore' option. Disabling it and reinstalling the package i can finally compile evrything correctly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM