我有多个项目的解决方案。我有正确的构建顺序和依赖性。可以在具有完全相同版本的Visual Studio 2017(26430.13)的不同计算机上构建该项目。唯一的区别是,当前我正在尝试在Windows 10上构建。另一个(可以构建的)系统是Win 8.1。但是在带有Win 10的第三台计算机上也可以构建。
我的问题是系统上的以下内容无法建立解决方案:
有一个名为ucx.v2的项目(名称空间:pcbox)。当我构建此项目时,没有错误,并且可以正确构建。
还有一个名为Timer的项目。该项目在参考文献中引用了ucx.v2。没坏 在构建该项目时,我遇到了100多个关于参考错误的错误。
生成顺序是正确的,因为当我构建Timer项目时,首先它开始构建ucx.v2项目,并完成而没有任何错误。
我尝试了以下方法:-重新启动VS。-清理解决方案,重建项目-从Timer项目中删除引用,然后再次添加它,但没有任何运气。
注意:我已经从工作机中复制了解决方案。
这是错误日志:
1>------ Build started: Project: ucx.v2, Configuration: Debug Any CPU ------
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\forms\UcDataAdapter.cs(463,21,463,28): warning CS0108: 'UcDataAdapter.Dispose()' hides inherited member 'Component.Dispose()'. Use the new keyword if hiding was intended.
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\ras\RasConnectionNotify.cs(35,69,35,93): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\ras\RasConnectionNotify.cs(52,69,52,93): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\data\CommandBatch.cs(53,34,53,36): warning CS0168: The variable 'ex' is declared but never …Run Code Online (Sandbox Code Playgroud)