visual-studio-2013

Can not find system.web.http

匆匆过客 提交于 2020-12-30 04:48:46
问题 I have to add a system.web.http assembly reference because I added the HttpConfiguration class to my unit test class library project. When I browse the Add reference dialog I can not find the system.web.http assembly. The class library project has the .Net 4.5.1 framework targeted. 回答1: in order to get the system.web.http you will need to install a nuget package in the nuget command line: Install-Package Microsoft.AspNet.WebApi.Core https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Core/

Change (use older) c++ version in Visual Studio [duplicate]

放肆的年华 提交于 2020-12-29 12:01:04
问题 This question already has answers here : disable c++11 features in vs2013 (5 answers) Closed 5 years ago . Is it possible to use an older version in Visual Studio than c++11? A similar question revealed that it is not possible to use a newer version, but I want the compiler to complain when I am using language features that are only available for c++11. 回答1: To completely disable C++11 features in Visual Studio, you must compile with a toolset old enough that it does not have any C++11

Change (use older) c++ version in Visual Studio [duplicate]

雨燕双飞 提交于 2020-12-29 11:59:45
问题 This question already has answers here : disable c++11 features in vs2013 (5 answers) Closed 5 years ago . Is it possible to use an older version in Visual Studio than c++11? A similar question revealed that it is not possible to use a newer version, but I want the compiler to complain when I am using language features that are only available for c++11. 回答1: To completely disable C++11 features in Visual Studio, you must compile with a toolset old enough that it does not have any C++11

Visual Studio add pre-build event that always runs (C# project)

非 Y 不嫁゛ 提交于 2020-12-29 08:47:43
问题 In my project, I am running an external tool to update some binary files. These files are included in the project as "content". At the moment the tool is set to run during "pre-build event" in C# project properties. Unfortunately, this event is only executed if the project is out of date, which is not what I need. I am working around this by always using "rebuild" instead of "build" on my project, but this is tedious and slow. I need to execute this tool always, irrespective of whether a

Enabling visual styles with C++ Win32 API?

ⅰ亾dé卋堺 提交于 2020-12-26 07:15:28
问题 According to the MSDN article, visual styles are supposed to be applied to Win32 applications by default. However, the UI elements all appeared as Windows Classic until I inserted this into my header: #pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") Now, when I try to add a button using this call: CreateWindow(L"button", L"Quit", WS_VISIBLE | WS

Enabling visual styles with C++ Win32 API?

牧云@^-^@ 提交于 2020-12-26 07:15:10
问题 According to the MSDN article, visual styles are supposed to be applied to Win32 applications by default. However, the UI elements all appeared as Windows Classic until I inserted this into my header: #pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") Now, when I try to add a button using this call: CreateWindow(L"button", L"Quit", WS_VISIBLE | WS

Enabling visual styles with C++ Win32 API?

浪尽此生 提交于 2020-12-26 07:15:00
问题 According to the MSDN article, visual styles are supposed to be applied to Win32 applications by default. However, the UI elements all appeared as Windows Classic until I inserted this into my header: #pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") Now, when I try to add a button using this call: CreateWindow(L"button", L"Quit", WS_VISIBLE | WS

See the type of a var in Visual Studio

为君一笑 提交于 2020-12-04 19:56:58
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3:

See the type of a var in Visual Studio

本秂侑毒 提交于 2020-12-04 19:52:39
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3:

See the type of a var in Visual Studio

本秂侑毒 提交于 2020-12-04 19:49:15
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3: