c# - Entity Framework 构建退出并出现警告,并且在克隆 CodePlex 存储库后不会运行测试

标签 c# visual-studio entity-framework msbuild

我在关注 these instructions 后尝试构建 EF .一切似乎都已成功完成,但是当我运行 build.cmd 时,我收到两个警告:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembl y "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Chec k to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\Chasemedallion\Documents\entityframework\test\EntityFramework\VBTests\VBTests.vbproj]

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1988,5): warning MSB3283: Cannot find wrapper assembly for type library "EnvDTE". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit. [C:\Users\Michael\Documents\Interests\CS\entityframework\src\EntityFramework.PowerShell\EntityFramework.PowerShell.csproj]

在第二次警告后,命令退出并且不运行任何测试,即使使用/t:Test 运行也是如此。任何人都可以指点这些错误是什么或如何解决它们吗?奇怪的是,当我使用 Ctrl+Shift+B 从 VS2012 Express(桌面)构建时,我没有看到任何警告。

此外,我已确认 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 位于 C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PublicAssemblies 中。

最佳答案

脚本需要从 Developer/VS 命令提示符运行,因为它设置环境变量和路径的方式使得查找文件和解析依赖项成为可能。

关于c# - Entity Framework 构建退出并出现警告,并且在克隆 CodePlex 存储库后不会运行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13105885/

相关文章:

asp.net - 阻止 EF Core 构建具有前缀名称 IdentityDbContext 的表

javascript - 尝试将 $UI 元素附加到 <div> 标记时,如果没有错误输出,JQuery 将无法工作

c# - 通过屏幕截图分析检测游戏破解 C#

java - 是否可以像 C# 中的 app.config 那样在 Java 中转换 .properties 文件

mysql - MS SQL 数据库管理/IDE

c# - 对部分类/方法的 XML 注释

javascript - 从下拉列表中获取过滤后的数据并显示在另一个下拉列表中

visual-studio - 添加没有依赖项的NuGet软件包

c# - 当触发 Masstransit 消费者时启动新的 LifetimeScope

c# - Entity Framework 7.0 什么时候发布?