Visual studio 2017 visual studio 2017社区构建失败,未显示任何错误

Visual studio 2017 visual studio 2017社区构建失败,未显示任何错误,visual-studio-2017,Visual Studio 2017,这是我最近每天打开和编辑的一个项目 总有一天我可以在午餐前编译、构建、发布项目 我回来后,它的build fail和show error box build fail(有构建错误,您想继续并运行上一个成功的构建吗),但是没有显示错误(除了一些字符串,我没有更改任何内容,它是本地项目,因此只有我可以编辑它) 有警告信息,但我不知道这是否有关系 Severity Code Description Project File Line Suppression State Warn

这是我最近每天打开和编辑的一个项目

总有一天我可以在午餐前编译、构建、发布项目

我回来后,它的build fail和show error box build fail(有构建错误,您想继续并运行上一个成功的构建吗),但是没有显示错误(除了一些字符串,我没有更改任何内容,它是本地项目,因此只有我可以编辑它)

有警告信息,但我不知道这是否有关系

Severity    Code    Description Project File    Line    Suppression State
Warning     Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
我想知道一个解决方案怎么会突然自行消亡,我怎样才能跟踪和恢复这个解决方案(如前所述,我在午餐前正在做这个项目)

输出

2>------ Rebuild All started: Project: Iing.WebApp, Configuration: Debug Any CPU ------
2>Build started 4/12/2019 3:54:53 PM.
2>CoreClean:
2>  Deleting file "C:\Users\sammak\Documents\Projects\MODIST2017 - Copy\Iing.WebApp\obj\Debug\Iing.WebApp.csprojAssemblyReference.cache".
2>  Deleting file "C:\Users\sammak\Documents\Projects\MODIST2017 - Copy\Iing.WebApp\obj\Debug\RdlCompile.cache".
2>_HandlePackageFileConflicts:
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.IO, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.IO.dll'.  NETSDK1033: Choosing 'Platform:System.IO.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.1.0'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Runtime, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Runtime.dll'.  NETSDK1033: Choosing 'Platform:System.Runtime.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.1.1'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Security.Cryptography.Algorithms.dll'.  NETSDK1033: Choosing 'Platform:System.Security.Cryptography.Algorithms.dll' because AssemblyVersion '4.3.0.0' is greater than '4.2.1.0'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Security.Cryptography.Encoding.dll'.  NETSDK1033: Choosing 'Platform:System.Security.Cryptography.Encoding.dll' because AssemblyVersion '4.0.2.0' is greater than '4.0.1.0'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Security.Cryptography.Primitives.dll'.  NETSDK1033: Choosing 'Platform:System.Security.Cryptography.Primitives.dll' because AssemblyVersion '4.0.2.0' is greater than '4.0.1.0'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Security.Cryptography.X509Certificates, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Security.Cryptography.X509Certificates.dll'.  NETSDK1033: Choosing 'Platform:System.Security.Cryptography.X509Certificates.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.1.2'.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:System.Net.Http.WebRequest.dll'.  NETSDK1038: Could not determine winner because 'Reference:System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' does not exist.
2>D:\VS2017\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Platform:System.Net.Http.WebRequest.dll' and 'Reference:System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL'.  NETSDK1038: Could not determine winner because 'Reference:System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' does not exist.
2>
同样的问题,

1>Build FAILED.
1>    0 Warning(s)
1>    0 Error(s)
因此,我在输出窗口中搜索失败,然后我找到了这个

1>Task "RdlCompile"
1>Done executing task "RdlCompile" -- FAILED.
1>Done building target "RunRdlCompiler" in project "foo.vbproj" -- FAILED.
确保您有以下选项:输出详细信息=详细信息

选项/build and run/“MSBuild项目生成输出详细信息”=详细信息


看起来微软已经解决了这个问题并正在进行修复。此外,似乎还有一个解决办法(我还没有尝试过)

我会重新启动vs,然后进行清理和重建。如果在“错误”窗口中仍然没有输出,请查看“输出”窗口,并确保将输出类型设置为“生成”,查看您在其中看到的内容(可能有很多)无,此解决方案包含2个项目。显示的输出1为成功,1为立即失败(附件供参考)我更改了构建并运行,以在输出中显示正常的详细信息,它显示了更多的消息,但没有任何消息对我有意义。由于我没有更改此处提到的任何内容,所以我尝试使用相同的visual studio 2017社区将相同的解决方案复制到其他pc上。它能够编译和构建。。。。。。。然后我把工作的解决方案放回发布的IDE,它不能重新安装吗?(我讨厌它的解决方案,因为它太暴力了,但是如果你几天前就这么做了,事情很可能已经解决了。那么解决方案是什么呢?在我的例子中,o RdlCompile是一个自动更新并引发了问题,所以,我再次安装了VS2019和RdlCompile。该修复方案在评论部分确实有效。这完全是由于更新导致的microsoft错误。)ey在没有通知的情况下安装。这真是太疯狂了