visual-studio-2015

Visual C++ Exception not shown in console

本小妞迷上赌 提交于 2021-02-20 19:03:21
问题 I've implemented a C++ Exception and throw this exception on errors without catching it. In linux I do see the exception text ("what") on console and the application exists. This is my expected behaviour. On windows (compiled with Visual C++ 2015) however a popup window opens and states a generic error. I do not see the exception message on console or anywhere else. Is it possible to log thrown/uncaught exceptions to console/stdout (or stderr) on Windows, too? Thank you 回答1: Throwing an

Visual Studio 2015 - CodeLens toggle on/off with keyboard shortcut

别等时光非礼了梦想. 提交于 2021-02-20 05:34:30
问题 I would like to have a quick keyboard shortcut to turn on/off this feature. The feature is useful, but sometimes I want to look only at code and this feature distorts the code visual appearance. I have bound EditorContextMenus.CodeLens.CodeLensOptions to a keyboard shortcut, but this is too slow because the Options menu takes too long to open. I would really like to have shortcut that toggles this feature on and off. How can I do this? Did I miss some option in Environment->Keyboard or is

Using -std=c++11 on VS2015

孤人 提交于 2021-02-19 05:56:18
问题 I have created a shared object for Android in Visual Studio 2015 . It works fine so far, but pop_back() for a wstring does not work: wstring element = "JustATest!"; if (element.back() == L'!') { element.pop_back(); } VS2015 tells me: " no member named 'pop_back' in 'std::basic_string<wchar_t>' ". Can anybody tell me how to get rid of this error? I have no idea why this should not work. Is that because for some reason VS2015 does not use C++11 here? Thank you for the help! Edit: Another error:

Adding references in Visual Studio project template?

爷,独闯天下 提交于 2021-02-19 05:55:07
问题 I'm creating a multi-project template for VS2015 where one of the created projects references the other. How do I add the reference using the template? If I add the reference using the VS GUI it will add the following to the .vcxproj file: <ItemGroup> <ProjectReference Include="path\xyz.vcxproj"> <Project>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</Project> </ProjectReference> And the GUID is a valid one, since VS knows the GUID of the referenced project. When I create the new projects from

Design-time Error finding the Resource Dictionary - Inconsistent between projects

喜欢而已 提交于 2021-02-18 21:09:50
问题 TLDR; Screens newly referencing an external ResourceDictionary file in VS2015 style correctly at run-time, but not at design-time. What gives? At work, we have a WinForms product which houses many WinForms screens with one developer actively adding new ones, as well as a handful of WPF screens with me adding new ones. Noticing a lot repetitious code/styling in existing WPF screens, I created a single project to house this - to be referenced by all existing/future WPF screens. Project:

Design-time Error finding the Resource Dictionary - Inconsistent between projects

浪子不回头ぞ 提交于 2021-02-18 21:02:42
问题 TLDR; Screens newly referencing an external ResourceDictionary file in VS2015 style correctly at run-time, but not at design-time. What gives? At work, we have a WinForms product which houses many WinForms screens with one developer actively adding new ones, as well as a handful of WPF screens with me adding new ones. Noticing a lot repetitious code/styling in existing WPF screens, I created a single project to house this - to be referenced by all existing/future WPF screens. Project:

Windows Defender Real Time Protection Service slowing down Visual Studio etc

本秂侑毒 提交于 2021-02-18 20:59:42
问题 Since past two months or so I have been observing a strange phenomenon with the Real Time Protection Service that comes bundled in as a part of Windows Defender on Windows 10. When this service is set to ON Visual Studio builds take an excruciatingly long time to complete. Visual Studio itself takes forever to launch. Further if there are managed add-ins (written using Visual Studio Tools For Office, VSTO) installed in Outlook, Outlook takes 13-14 seconds to launch! When this service is

Design-time Error finding the Resource Dictionary - Inconsistent between projects

旧城冷巷雨未停 提交于 2021-02-18 20:59:16
问题 TLDR; Screens newly referencing an external ResourceDictionary file in VS2015 style correctly at run-time, but not at design-time. What gives? At work, we have a WinForms product which houses many WinForms screens with one developer actively adding new ones, as well as a handful of WPF screens with me adding new ones. Noticing a lot repetitious code/styling in existing WPF screens, I created a single project to house this - to be referenced by all existing/future WPF screens. Project:

How to publish ASP.NET Core app to ftp server

浪子不回头ぞ 提交于 2021-02-18 06:31:52
问题 Visual Studio publish only supports importing web deploy. Is there a workaround? 回答1: Visual Studio publishing profiles supports pure FTP as a target. It does not support SFTP however. These are the options you should see: Web Deploy Web Deploy Package FTP (does not support SFTP unfortunately) File System (UNC or local path) Update since noted ASP.NET 5 With the details that the project is ASP.NET 5 / vNext, at this time, FTP and Web Deploy are not supported yet in the UI of Visual Studio.

XAML Designer System.Runtime.Remoting.RemotingException

ⅰ亾dé卋堺 提交于 2021-02-17 20:28:58
问题 I'm encountering the following System.Runtime.Remoting.RemotingException error when I create a blank Windows 10 Universal Application... Following are event viewer screens... I have checked online for other solutions and have already done the following... Uninstall/Repair Visual Studio 2015 Update 1 Reset my Windows 10 PC 1511 update Cleared the Designer/ShadowCache folder Target environment has been set to x86/x64 Target framework set to 10240 Developer mode enabled Updated graphic drivers