visual-studio

what does visual studio devenv.exe /resetuserdata do exactly?

∥☆過路亽.° 提交于 2021-02-07 07:15:49
问题 I have been having an issue recently with Visual Studio 2015 and the only workaround I can find is opening up the developer command line and executing "devenv.exe /resetuserdata" That solves the problem (until the next windows update typically brings it back). I have been trying to troubleshoot this for a while so I can actually determine the root cause but one big issue is that I cannot find any msdn documentation about this command "devenv.exe /resetuserdata" So that is essentially my

Different behaviour between CString operators “+=” and “+”

眉间皱痕 提交于 2021-02-07 06:51:22
问题 While migrating an application from VisualStudio 2005 to VisualStudio 2015 we found a different behaviour in some code that concatenates CString instances when that code is built with VS2015. So, I've created a simple Win32 console application to demonstrate the problem. The console application (using MFC as shared dll and Unicode charachter set) executes this simple function: void f() { CString x( '\0' ); CString r( 'a' ); r += x; CString rr( 'a' ); rr = rr + x; int rSize = r.GetLength();

node-gyp configure got “gyp ERR! find VS”

℡╲_俬逩灬. 提交于 2021-02-07 05:34:15
问题 I am trying to start about node c/c++ add-on. the node-gyp command got error I have installed vs2019, my command is node-gyp configure --msvs_version=2019 the verbose output is gyp info it worked if it ends with ok gyp info using node-gyp@5.0.3 gyp info using node@10.16.0 | win32 | x64 gyp info find Python using Python version 2.7.15 found at "C:\Users\seact\.windows-build-tools\python27\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version was set from command line or npm config gyp ERR

Any way to convert class library function into exe?

≯℡__Kan透↙ 提交于 2021-02-07 04:52:39
问题 Is there any way to change my class library program into an .exe or a click once -application? It is Currently a dll. I am able to create a click once app but it is not working after installation. 回答1: In the properties of the project -> application tag, change the Output type to console Application. Anyway, you need to create a static Main() method as a starting point. static void Main(string[] args) { } 回答2: You can change the output type of your project in it's settings, then add a main

Any way to convert class library function into exe?

扶醉桌前 提交于 2021-02-07 04:52:38
问题 Is there any way to change my class library program into an .exe or a click once -application? It is Currently a dll. I am able to create a click once app but it is not working after installation. 回答1: In the properties of the project -> application tag, change the Output type to console Application. Anyway, you need to create a static Main() method as a starting point. static void Main(string[] args) { } 回答2: You can change the output type of your project in it's settings, then add a main

Any way to convert class library function into exe?

本秂侑毒 提交于 2021-02-07 04:52:25
问题 Is there any way to change my class library program into an .exe or a click once -application? It is Currently a dll. I am able to create a click once app but it is not working after installation. 回答1: In the properties of the project -> application tag, change the Output type to console Application. Anyway, you need to create a static Main() method as a starting point. static void Main(string[] args) { } 回答2: You can change the output type of your project in it's settings, then add a main

Dim/hide logging lines of code in Visual Studio

我们两清 提交于 2021-02-06 15:59:15
问题 Is there any way to make visual studio dim or hide/show on demand logging lines of my code? We use a lot of logging in our project and it's harder to read code like this. I would like it to be like this, for example: 回答1: I use this. Hoping one day they will add color customization and line selection regex options as well: https://marketplace.visualstudio.com/items?itemName=ElmarXCV.GrayLogLines 回答2: Unobtrusive Code extension worked for me for Visual Studio 2019. It dims the opacity of log

Projects load failed in Visual Studio 2015

戏子无情 提交于 2021-02-06 15:15:36
问题 When I am opening a .sln in Visual Studio 2010, projects are loading properly. But when I open the same solution with Visual Studio 2015 (Professional with Update 1), projects are not getting loaded with the error (load failed). This is shown below: Can anyone suggest the solution for this? 回答1: I've already had this problem and in my case I solved it by executing VS as Administrator. 回答2: I experienced this issue for different reasons , but deleting all of the .vs folders ( there was one at

Stop Visual Studio from putting using directives outside namespace

半世苍凉 提交于 2021-02-06 14:51:06
问题 Is there a setting in Visual Studio (or Resharper) that allows you to specify what namespaces should be default and which scope they are put in? The default for an MVC project for example is using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Namespace { public class Class1 { } } but Resharper and Stylecop complain: All using directives must be placed inside of the namespace. [StyleCop Rule: SA1200] Using directive is not required by the code and can

VS2017 Blank Sign In Screen

自闭症网瘾萝莉.ら 提交于 2021-02-06 10:51:07
问题 I have a unique issue with my installation of Visual Studio 2017 where the sign in dialog is blank, and no matter how long I wait it never seems to allow me to log in. I have tried changing the default browser to Chrome, Edge and IE just in case it was using that under the hood for rendering this page. Prior to that I had an issue with the Virtual Machine running the IDE which required me to re-register *.VBS associations to complete the install, that has been resolved and the install has