visual-studio-2012

Visual Studio Intellisense methods with underscore don't appear

人盡茶涼 提交于 2019-12-23 10:58:22
问题 I'm using VS2012, and one of my project-wide Javascript function namespaces has all of its exposed methods beginning with underscores _ , for example: var NameSpace = { _aMethod = function () { }, _anotherMethod = function () { } }; I created a quick vsdoc file for the namespace, and the namespace itself appears, but none of the methods do . NOTE: If I remove the _ at the beginning of the methods, it works like a charm. // This would work, and show up in the VSDOC var NameSpace = { aMethod =

Reopen closed tab in Visual Studio 2012

人走茶凉 提交于 2019-12-23 10:46:07
问题 In my web browser (Google Chrome), after a tab is closed, I can re-open it with the menu item 'reopen closed tab'. (Firefox has this feature too, 'undo close tab'.) How can I do undo closing a tab in Visual Studio 2012? I found this similar question from 2009, but the accepted answer doesn't work for Visual Studio 2012. Reopen last closed tab in Visual Studio 回答1: The Productivity Power Tools extension has the Undo Close functionality. Some of the older extensions designed for VS2010 may not

nhibernate could not resolve property (Only in Visual Studio 2015) with a LeftOuterJoin

人盡茶涼 提交于 2019-12-23 10:34:47
问题 I need some help as can't really explain this one. We have a semi complex nhibernate query: var query = _tyreRepository.Session.QueryOver<Tyre>(() => tyreAlias) .JoinQueryOver<Pattern>(() => tyreAlias.Pattern, () => patternAlias) .JoinQueryOver<Brand>(() => patternAlias.Brand, () => brandAlias) .JoinQueryOver<RimSize>(() => tyreAlias.RimSize, () => rimSizeAlias) .JoinQueryOver(() => tyreAlias.SpeedIndex, () => speedIndexAlias, JoinType.LeftOuterJoin); Which works fine in Visual Studio 2012,

Can't find VSIX dlls with DllImport

て烟熏妆下的殇ゞ 提交于 2019-12-23 10:06:04
问题 I have a VSIX extension which depends on code deployed from an unmanaged DLL. I've included the DLL with the VSIX, and I cracked open the VSIX with a zip program to confirm that it is deployed correctly. However, when I use the DllImport attribute, the .NET Framework claims that it can't find it. How can I import functions from a DLL packaged inside my VSIX? 回答1: I dunno what is going wrong here, but I reinstalled Windows and Visual Studio, made no changes to the project, and now everything

Git with Visual Studio Source Control Explorer available yet?

时间秒杀一切 提交于 2019-12-23 09:58:44
问题 we set up Git as version control system (we used tfs before). Now the source control explorer is not available anymore. I found this thread from 2013: Using Git in Visual Studio, how do I navigate repository files? It's 2015 now and I cannot find any info from late 2014 or 2015. Does anybody know something new? Thanks 回答1: VS2015 still does not have a file browser for Git projects. They do have a list of *.sln files that can be opened within a Git repo. If you have say a "ReadMe.txt" at the

Boost multiprecision fails because the implementation of complex tries to cast to double in internal functions like _Isinf or _Isnan

♀尐吖头ヾ 提交于 2019-12-23 09:58:13
问题 I need a BSD-like licensed C(++) multiprecision library with complex numbers support so I tried boost. The following code fails: #include <boost/multiprecision/cpp_dec_float.hpp> #include <complex> using namespace boost::multiprecision; std::complex<cpp_dec_float_50>(1.0, 2.0) / std::complex<cpp_dec_float_50>(1.0, 2.0) in Visual Studio 2012 with an error C2440 because the implementation of complex tries to cast to double in internal functions like _Isinf or _Isnan. Is this an error on my part

C++ CMake FLANN failing when building pcl in vs2012

社会主义新天地 提交于 2019-12-23 09:56:39
问题 Trying to build PCL on VS2012 in Windows 8.1 so I can attempt to integrate my Kinect for Windows v2 sensor with it, however I seem to be running into a bunch of CMake errors that I don't know what to do with. this is partially because I am not very familiar with CMake, and so I am following the tutorial here which outlines the building of dependencies using the CMake GUI. However, throughout this process I have found that the only things that have built properly are the ones I build using

C++ CMake FLANN failing when building pcl in vs2012

故事扮演 提交于 2019-12-23 09:53:42
问题 Trying to build PCL on VS2012 in Windows 8.1 so I can attempt to integrate my Kinect for Windows v2 sensor with it, however I seem to be running into a bunch of CMake errors that I don't know what to do with. this is partially because I am not very familiar with CMake, and so I am following the tutorial here which outlines the building of dependencies using the CMake GUI. However, throughout this process I have found that the only things that have built properly are the ones I build using

url rewrite with visual studio 2012

纵然是瞬间 提交于 2019-12-23 09:47:49
问题 I'm trying to use the url rewrite module with an MVC application on VS 2012. I've installed the module using web platform 4.0, followed Ruslan's blog post, updated his js script according to the comments (specifically the last one by Brant Burnett on Oct 19th, and the script executed successfully. I checked the DotNetConfig.xsd and everything looks fine. If I open IIS management console I see the Url Rewrite module and everything looks ok. I create an simple MVC solution (with the default

Can I stop Visual Studio 2012+ from ever publishing packages.config and EF diagram files?

◇◆丶佛笑我妖孽 提交于 2019-12-23 09:37:01
问题 When I publish an ASP.NET Web Application in Visual Studio 2012/2013/2015, Visual Studio will also publish the packages.config (from NuGet) and any *.edmx.diagram files (from Entity Framework), by default. I know that I can go into the project and individually switch the properties for these files from Build Action Content to Build Action None , however, I have to do this for each project that I use Entity Framework, or any other NuGet-provided package. I can configure the publishing process