Tag: visual studio 2012

每次Visual Studio打开时,VMDebugger加载项都会崩溃

每次我打开一个VS 2012的实例,我遇到以下错误, 大约一个星期 (所以这不是由于昨天的更新4 )。 即使我点击是 ,当我重新打开Visual Studio时,错误再次显示。 无论如何,VMWaredebugging器似乎正确加载 (实际上我不使用它,它与VMWare工作站一起)。 我无法隔离导致错误开始出现的单个操作。 任何人都遇到同样的错误?

什么是最好的方式来定位多个版本的.NET框架?

我正在构build一个类库,我将把它部署到一个NuGet包中,这使我可以根据添加的项目的.NET框架版本,select不同的程序集作为参考添加。 这是一个很好的function,但是我想知道的是,是否有可能拥有一个类库项目,并针对多个.NET框架版本进行构build? 我宁愿避免有: MyLibrary40.dll和MyLibrary45.dll 如果可能的话,因为这两个项目将不得不分享大量的代码。 4.5版本将提供asyncfunction,这是4.5的function。 有谁知道这是最好的方法是什么? 我可以使用多个构buildconfiguration吗? 还是我必须走下单独的项目路线? 如果我在C ++中工作,我可能会在一个configuration中仅支持的函数中使用多个configuration和#if块,但是我担心这会导致我有两个具有相同名称的程序集执行不同的操作。 提前致谢!

如何首先创build一个EntityFramework代码的视觉模型

如果你看这里,你会注意到这个人正在显示实体模型图,我想知道如何从我的EntityFramework代码第一类创build一个实体模型图。 试图通过查看代码来记住每件事物如何链接在一起,这只会令人沮丧。

C2977:“std :: tuple”:太多的模板参数(MSVC11)

我试图用Visual C ++ 11build立googletest,但下面的代码会导致错误 template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9> void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t, // <– error C2977 ::std::ostream* os) { PrintTupleTo(t, os); } 这是一个错误文字: f:\gtest-1.6.0\include\gtest\gtest-printers.h(550): error C2977: 'std::tuple' : too many template arguments […]

vs2012中的SQL CLR项目

安装VS2012的发行版后,我无法findSQL CLR proect模板。 我如何去创build这种types的项目。 谢谢!

如何在Windows或Linux下编译Qt 5,32或64位,VS2010,VS2012,VS2013或VS2015 Express或g ++上的静态或dynamic

只是一个post,以帮助那些试图做到这一点,因为我没有博客。 这也适用于Linux。 随意编辑并改进它。

Visual Studio 2012错误:包'Visual C ++包'未能加载

当我试图打开任何在Visual Studio 2012中正常工作的解决scheme时,错误“包装”Visual C ++包“未能加载”不断显示。 解决scheme无法打开。 我不确定我的Visual Studio 2012安装有什么问题。

resharper – 是否有可能去CTRL点击方法的实现,而不是去声明?

如果我使用Resharper 8在VS2012中按住CTRL键单击方法的名称,我将被redirect到方法的“声明” – 如果我的项目中有很多接口,这是非常不方便的。 如果可以configurationresharper去实现方法的实现(如果有多个 – 显示一个上下文菜单,我需要从中select所需的方法)? 我可以做到这一点,如果我做右键单击 – >“去执行”,但我真的喜欢有这个按Ctrl点击。

vstest.executionengine.x86.exe不能closures

运行unit testing时遇到错误。 如果我debuggingunit testingvstest.executionengine.x86.exe运行,然后closurestesting通过。 如果我只是运行testing(即使testing就像创build一个新列表一样简单,没有断言)vstest.executionengine.x86.exe不closures,并保持运行在任务pipe理器。 这对于编写更复杂的testing(包括删除文件/清理sqllite数据库)来说是一个问题。 任何帮助,将不胜感激。 编辑: 重现步骤 : 创build新的unit testing项目 debuggingunit testing – vstest.executionengine.x86打开和closures,testing通过。 运行unit testing – vstest.executionengine.x86打开并保持打开状态

在App.config中的connectionStrings configSource不起作用

我试图从我的App.config分离我的连接string,因为你不能像Web.config那样进行转换,所以我想我可以使用configSource属性来指向另一个configuration文件,但似乎没有工作。 这工作, App.config : <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=*snip*" requirePermission="false" /> </configSections> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultConnectionFactory> </entityFramework> <connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Server=*snip*" /> </connectionStrings> </configuration> 但是这不, App.config : <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=*snip*" requirePermission="false" /> […]