visual-studio

Visual Studio navigate to source code outside the current solution

一个人想着一个人 提交于 2021-02-19 04:46:11
问题 At this new company I joined there is a very big and huge multi solution product that I'm working on. So sometimes when I'm looking through the source i have an interface that has an implementation that is within a project in another solution and when I Ctrl-F12 click that interface I get a "The symbol has no implementations." dialog box from Visual Studio, because it can't find the piece of code where the interface is implemented in. Is there any way of like telling Visual Studio to just

What is __CxxFrameHandler4 and what does linker error “unresolved external symbol __CxxFrameHandler4” mean, exactly?

旧城冷巷雨未停 提交于 2021-02-19 04:24:05
问题 I'm using several libraries built through vcpkg (such as civet-web and prometheus-cpp), against my Visual C++ projects. When building x86 all is perfect, in x64 I get a bunch of linker errors: error LNK2001: unresolved external symbol __CxxFrameHandler4 Searching online all references to this symbol/error are about specific projects, I cannot find what __CxxFrameHandler4 is and what problem this error is highlighting. I don't know if it's a problem with the way vcpkg is building the library,

Disable being able to edit code while debugging

我与影子孤独终老i 提交于 2021-02-18 23:35:34
问题 Recently when I've been debugging my application, I've been able to write code into C# files when the application isn't in the broken state. I've tried totally disabling the "Edit and Continue" setting in the visual studio options but that doesn't seem to be working. What I'm expecting to happen is when I'm debugging and I type into a C# file, I want that popup that says "Changes are not allowed while the application is running" prompting me to put a breakpoint in my code to apply changes

How to load dll's during debug in VS2013

大憨熊 提交于 2021-02-18 22:34:06
问题 I have some code var aa = a(); b(aa); While debugging, I set a breakpoint on the b() call. Then going to the immediate window , I'd like to be able to execute code from a DLL that is in my project but is not yet loaded . Say I want a new Boo and call Foo() . The code is in the namespace Baz in dll Spongle.dll . When I type >> new Baz.Boo().Foo(aa) I get the error: The type or namespace name 'Baz' is not valid in this scope. If I change my code such that my Boo is already loaded it works fine.

Visual Studio project not being built when I build Solution from msbuild

你说的曾经没有我的故事 提交于 2021-02-18 22:11:20
问题 I build whole Visual Studio solution using msbuild, it worked fine but there is one project not being built when I build whole solution This is my msbuild script <MSBuild Condition="'$(debug)' ==''" Projects="$(MySolution)" Targets="build" Properties="Configuration=Release"> <Output TaskParameter="TargetOutputs" ItemName="BuildOutput" /> </MSBuild> Something I need to check on this specific project in my Visual Studio solution? 回答1: If this is a new project added to a solution and all other

Visual Studio project not being built when I build Solution from msbuild

空扰寡人 提交于 2021-02-18 22:11:06
问题 I build whole Visual Studio solution using msbuild, it worked fine but there is one project not being built when I build whole solution This is my msbuild script <MSBuild Condition="'$(debug)' ==''" Projects="$(MySolution)" Targets="build" Properties="Configuration=Release"> <Output TaskParameter="TargetOutputs" ItemName="BuildOutput" /> </MSBuild> Something I need to check on this specific project in my Visual Studio solution? 回答1: If this is a new project added to a solution and all other

'warning C4709: comma operator within array index expression' - but no comma to be seen anywhere!

三世轮回 提交于 2021-02-18 20:54:01
问题 Take this little example code: struct Test{ operator int() const{ return 0; } }; Test test(){ return Test(); } int main(){ int arr[10]; arr[test()] = 5; } Compiling under Visual Studio 2010 with /W4 generates said warning. Interestingly, if I add but a simple default constructor, the warning suddenly vanishes. Also, it only works in that constellation. If I remove the function call or don't return a user-defined type, the warning disappears. Also, as expected, GCC doesn't produce such a

Can't type certain square brackets in Visual Studio 2010 + Resharper

与世无争的帅哥 提交于 2021-02-18 20:40:22
问题 In certain cases typing an opening square bracket results in nothing at all. In particular when I want to type them on a variable in the right side of assignment expression: arr[i] = arr So I cant type, for example: arr[i] = arr[9] It has something to do with Resharper. However, turning of autocomplete and stuff doesn't seem to solve it. Anyone familiar with this problem? 回答1: I had the same issue the first time I insalled Resharper. Look under Tools > Options > Environment > Keyboard to what

Can't Add ADO.NET Entity Data Model to .NET Core 2.1 Project

孤街醉人 提交于 2021-02-18 20:13:43
问题 The Issue... As the title states, I've installed the .NET Core 2.1 SDK and created a new .NET Core 2.1 project. When I go to Project > Add Item... > Data , I do not have the ADO.NET Entity Data Model option. I am using Visual Studio 2017 15.7.3 , which I've installed only hours ago. The Error and Warning logs are clean. Any assistance is appreciated. What I've done so far... Researched. You'll notice I've pulled most of my attempts to solve this issue from primarily these three resources:

Can't Add ADO.NET Entity Data Model to .NET Core 2.1 Project

梦想的初衷 提交于 2021-02-18 20:11:57
问题 The Issue... As the title states, I've installed the .NET Core 2.1 SDK and created a new .NET Core 2.1 project. When I go to Project > Add Item... > Data , I do not have the ADO.NET Entity Data Model option. I am using Visual Studio 2017 15.7.3 , which I've installed only hours ago. The Error and Warning logs are clean. Any assistance is appreciated. What I've done so far... Researched. You'll notice I've pulled most of my attempts to solve this issue from primarily these three resources: