简体   繁体   English

VS2017版本构建未构建

[英]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. 我生气了,因为我的Visual Studio停止正确地构建了我的解决方案。...它只能在第一次编译时正确编译,但是当我尝试重新编译时,由于完全重新启动系统而无法编译。 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: 显然,我没有发现任何类型的错误可以让我了解出了什么问题,它可以成功编译,但是当我部署apk / ipa或尝试调试代码时,我发现这是更新之前最早的错误:

=== Ricompilazione: 2 completate (Completed), 0 non riuscite (failed), 1 ignorate (skipped) === (the skipped one is ios when I compile for Android and vice-versa) === Ricompilazione:2个完成(已完成),0个非riuscite(失败),1个忽略(跳过)===(当我为Android编译时,跳过的是ios,反之亦然)

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: 我仅在发布模式下而不是在调试模式下看到该问题,我尝试使用evrything:

  • Restart visual studio 重新启动Visual Studio
  • clear/rebuild 清除/重建
  • delete bin/obj 删除bin / obj
  • clear nugets cache (yes i was desperate). 清除nugets缓存(是的,我很绝望)。
  • clone the Debug mode into a Release2 mode and editing to be similar to Release Mode (and building the project in Release2 mode). 将调试模式克隆到Release2模式并进行编辑,使其类似于Release Mode(并在Release2模式下构建项目)。
  • Close project+vs, delete all msbuild/vs related process into the task manager and restart vs. 关闭project + vs,将所有与msbuild / vs相关的过程删除到任务管理器中,然后重新启动。

My code is made by 3 project: 我的代码是由3个项目制作的:

  • 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. 我确定地解决了我的问题(并且与我在开始时xD的想法完全不同),看来,如果您的应用在“自动软件包还原” nuget选项期间出现问题,则它不会显示任何错误,但会运行最后一个经过校正的编译该软件的版本。 In my case i had a problem with my Microsoft.bcl.build package that broke the 'automatic package restore' option. 就我而言,我的Microsoft.bcl.build程序包出现问题,导致无法使用“自动程序包还原”选项。 Disabling it and reinstalling the package i can finally compile evrything correctly. 禁用它并重新安装软件包,我终于可以正确编译evrything了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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