visual-studio-2015

“default constructor cannot be referenced” in Visual Studio 2015

*爱你&永不变心* 提交于 2020-01-12 15:45:06
问题 I am facing a really weird error message in Visual Studio 2015. The following stripped down code: struct A { A(int val = 0) : x(val) {} int x = 0; }; struct B: A { static int y; }; int B::y = 1; struct C: B { }; int main() { C c; return 0; } compiles without any problem on Clang. However Visual Studio 2015 IntelliSense gives the following error message: the default constructor of "C" cannot be referenced -- it is a deleted function Am I missing something in my code, or this is a bug in Visual

Active tab fixed to the left in Visual Studio

徘徊边缘 提交于 2020-01-12 13:52:15
问题 I have recently installed a few tools in Visual Studio, such as Resharper and Power tools. And now my Visual Studio seems to be " smarter " than before. Whenever I switch to another tab, this active tab will be set as the first tab. How can I disable this behaviour? 回答1: The active tab behavior also changed for me randomly after restarting VS. This is how I fixed it (with Productivity Power Tools extension installed) : Tools -> Options -> Productivity Power tools -> Custom document well ->

The type or namespace name 'Linq' does not exist in the namespace 'System' [duplicate]

浪尽此生 提交于 2020-01-12 04:33:10
问题 This question already has answers here : The type or namespace name 'Linq' does not exist in the namespace 'System' (9 answers) Closed 2 years ago . When I want to use button to write code in C# it doesn't go to cs file to write c# code. When I check the project source, I found this error: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; Severity Code Description Project File Line Error CS0234 The type

Targetting Windows xp from visual studio 2015 enterprise update 1

大兔子大兔子 提交于 2020-01-11 12:18:31
问题 I would like to know whether we can build the projects/binaries using visual studio 2015 which can run on Windows xp ? If its supported then how we can build ? 回答1: Configuring C++ 11 Programs for Windows XP The Windows XP platform toolset that's included in Visual Studio is a version of the Windows 7 SDK that was included in Visual Studio 2010, but it uses the current C++ compiler. It also configures project properties to appropriate default values—for example, the specification of a

XAML Designer crashes Object reference not set to an instance of an object

自古美人都是妖i 提交于 2020-01-11 11:41:40
问题 I'm using Visual Studio 2015 Community. So, I created a blank UW App (C++) and I wanted to start looking around, because that's my first time using the XAML Designer. However, with no changes to the code whatsoever, the designer won't load. The Designer returns an unhandled exception (System.NullReferenceException) - Object reference not set to an instance of an object. This is really weird, as the app compiles and runs fine. The designer gives me a fix ("Excluding project code from running

memcmp linker error Visual Studio 2015

Deadly 提交于 2020-01-11 10:45:48
问题 I have a visual studio 2012 c++ project. I recently uninstalled it and installed visual studio 2015 and upgraded the project. When i am building the project, getting error as shown below: Error LNK2019 unresolved external symbol _memcmp referenced in function Moreover i have not used anywhere in my code memcmp fucntion. I used the linker verbose function and could see below in output file: Found _memcmp Referenced in MyC++Project.obj Referenced in libcpmtd.lib(xstrcoll.obj) Loaded

TFS Build 2013 - using Visual Studio 2015

做~自己de王妃 提交于 2020-01-11 07:55:10
问题 I have been having a bit of trouble getting Build on TFS 2013 to work when using Visual Studio 2015 for the checking in of files. The solution/project that I am working on was created on VS 2015 (.NET 4.6) and I seem to be having troubles building it on my TFS 2013. I was firstly getting an error: Confirm that the path in the declaration is correct, and that the file exists on disk But I seem to have overcome this by adding: /p:VisualStudioVersion=14.0 against the MSBuild Agent. That overcome

VS 2015 intern Android Emulator not starting (vmWare 10)

扶醉桌前 提交于 2020-01-11 06:43:09
问题 I am running VS2015 CTP6 on a freshly installed and updated Windows 8.1 N x64 VM. Hyper-V support is enabled, hypervisor.cpuid.v0 = "FALSE" and vhv.enable = "TRUE" are set to vmx-file. When i try to run the build with a Visual Studio Emulator for Android-device VS will tell me "starting emulator" forever. No error, no window, nothing at all. The included AVDs (like AVD_GalaxyNexus_ToolsForApacheCordova) start fine, just the new Microsoft VS Emulator for Android isn't working. After canceling

Viewing garbage collection history in c# (VS2015)

ε祈祈猫儿з 提交于 2020-01-11 05:36:26
问题 A unforeseen and unanticipated amount of garbage collection activity is shown in the 'Process Memory' graph when I run my application which makes me want to know where in the program is the garbage generated as I don't feel that I have any memory leaks in the program. Can someone please tell me if there is a way to view the parts (or lines) of my code where garbage is generated? Thanks in advance. 回答1: Pretty much any memory profiler will show this info. Just look for a list of "Dead objects"

How do I get Visual Studio 2015 RC to pick up the repositoryPath setting from my nuget.config?

怎甘沉沦 提交于 2020-01-11 04:58:07
问题 We use a custom location for our packages folder which we specify in a nuget.config file in the same folder as our solution: <settings> <repositoryPath>..\..\lib\packages</repositoryPath> </settings> Visual Studio 2013 picks this up fine and the NuGet package manager installs packages into the specified folder, lists installed packages correctly, etc. In Visual Studio 2015 RC the NuGet package manager pops up the "Some packages are missing from this solution, click here to restore" message