简体   繁体   English

Visual Studio 2015 CodedUI测试无法在2017年签入后加载2013年dll

[英]Visual Studio 2015 CodedUI Test can't load 2013 dll after 2017 check in

I didn't run into this problem, but a member of my team did. 我没有遇到这个问题,但是我的团队中有一个成员。 Most of the team is working in a Windows 10 environment, using Visual Studio 2015 Enterprise. 团队中的大多数人都使用Visual Studio 2015 Enterprise在Windows 10环境中工作。 This one particular team member is using Windows 7 (we started upgrading last year, but they have chosen not to do so...though this may force them to). 一位特定的团队成员正在使用Windows 7(我们从去年开始升级,但是他们选择不升级……尽管这可能会迫使他们升级)。 However, that is the only difference that I can see (they are using Visual Studio 2015 Enterprise). 但是,这是我可以看到的唯一区别(他们正在使用Visual Studio 2015 Enterprise)。

We have another team that we work closely with that is using Visual Studio 2017 (our team should be upgrading soon, but we're not there yet). 我们还有一个与之紧密合作的团队正在使用Visual Studio 2017(我们的团队应该尽快升级,但我们还没有升级)。 One of those members made a check in to our Testing solution (which is all CodedUI tests) that altered all of our project files. 其中一位成员签入了我们的测试解决方案(所有CodedUI测试),该解决方案更改了我们所有的项目文件。 However, the only change that I can see is that the false property was added to the Microsoft.VisualStudio.QualityTools.CodedUITestFramework reference (it didn't change the version called out, which is 14.0.0.0). 但是,我看到的唯一变化是将false属性添加到了Microsoft.VisualStudio.QualityTools.CodedUITestFramework参考中(它没有更改被调用的版本14.0.0.0)。

My environment handled this changed just fine (Windows 10, VS2015) but the one team member with Windows 7 is seeing the following error when they try to run a test: 我的环境对此更改进行了很好的处理(Windows 10,VS2015),但是使用Windows 7的一个团队成员在尝试运行测试时看到以下错误:

Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 无法加载文件或程序集“ Microsoft.VisualStudio.QualityTools.CodedUITestFramework,版本= 12.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified.. 该系统找不到指定的文件..

I guess I should note that we started writing our Testing solution in VS2013, originally. 我想我应该注意,我们最初是从VS2013开始编写测试解决方案的。 That's why the reference is to 12.0.0.0. 这就是为什么引用到12.0.0.0的原因。 Also, the environment in question has both versions of the dll available. 此外,有问题的环境具有可用的dll的两个版本。

It doesn't matter which test they try to run, all of our tests throw this error. 他们尝试运行哪个测试都没有关系,我们所有的测试都会抛出此错误。 The Testing solution builds just fine on their environment, so everything is compiling fine. 测试解决方案可以在他们的环境上很好地构建,因此一切都可以编译。

Any suggestions? 有什么建议么? I think our immediate solution is to get all of our environments upgraded, but I'd like to understand why this error is happening. 我认为我们的直接解决方案是升级所有环境,但是我想了解为什么会发生此错误。 We've seen it before (around the time when we upgraded from VS2013 to VS2015), but just never took the time to investigate. 我们之前已经看过它(大约是从VS2013升级到VS2015的时候),但从来没有花时间进行调查。

I'm sure I haven't gotten to the exact root of the problem, but we found that by uninstalling Visual Studio 2013 from the environments in question fixed the error. 我确定我还没有找到问题的确切根源,但是我们发现通过从有问题的环境中卸载Visual Studio 2013可以修复错误。 The problem actually had nothing to do with Windows 10 vs. Windows 7. 该问题实际上与Windows 10和Windows 7无关。

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

相关问题 强制Visual Studio 2015使用CodedUI在单个文件夹中进行测试 - Force visual studio 2015 to test in single folder with CodedUI VS2017安装后,Visual Studio 2013/15不会加载可移植的Silverlight项目 - Visual Studio 2013/15 doesn't load portable Silverlight projects after VS2017 install 使用 Assembly.Load(byte[], byte[]) 加载 dll 在 Visual Studio 2013 和 2015 之间的不同行为 - Loading dll using Assembly.Load(byte[], byte[]) different behaviour between Visual Studio 2013 and 2015 Visual Studio-无法加载任何dll - Visual studio - Can't load any dll Visual Studio 2013 和 2015 - Visual Studio 2013 and 2015 将表单添加到Visual Studio 2015负载测试 - Adding a Form to Visual Studio 2015 Load Test Visual Studio 2013/2015测试项目模板 - 适用于NUnit? - Visual Studio 2013/2015 Test Project Template - for NUnit? Visual Studio 2013或2015 EditorPackage无法正常加载 - Visual Studio 2013 or 2015 EditorPackage did not load correctly constantly 无法加载Visual Studio 2017 SpecFlow和CodedUI程序集 - Visual Studio 2017 SpecFlow and CodedUI Assembly Could Not Be Loaded Visual Studio 测试运行无法加载测试 - Visual Studio Test Run can't load test
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM