visual-studio-2013

VS2013 or VS2015 shows “unspecified error”

柔情痞子 提交于 2021-02-06 14:26:34
问题 When I open my worked solution (after merge from other branch) VS2013 shows error message "unspecified error" and I cannot close the window (the error's dialog jumps each time when I close it). VS2012 opens the solution without error messages. I suspect issue related to TFS configuration. How can I found actual reason of the error? 回答1: I have searched a lot about its root cause but couldn't found any concrete information. For me, Deleting the solution's .suo file. resolve this problem. 回答2:

VS2013 or VS2015 shows “unspecified error”

偶尔善良 提交于 2021-02-06 14:24:12
问题 When I open my worked solution (after merge from other branch) VS2013 shows error message "unspecified error" and I cannot close the window (the error's dialog jumps each time when I close it). VS2012 opens the solution without error messages. I suspect issue related to TFS configuration. How can I found actual reason of the error? 回答1: I have searched a lot about its root cause but couldn't found any concrete information. For me, Deleting the solution's .suo file. resolve this problem. 回答2:

How to refer to test files from Xunit tests in Visual Studio?

元气小坏坏 提交于 2021-02-05 20:48:38
问题 We’re using Xunit for testing. We’re running our tests via the built-in Visual Studio 2013 Test Runner, using the Xunit plugin. The issue is that some of the tests need to refer to files on the filesystem . It seems that Xunit (or the VS Test Runner—not sure which), copies the assembles, but not any supporting files in the bin directory, to another directory before executing the tests, hence our test files are not found. [The MS Testing framework specifies attributes for listing files to be

How can I step directly into a function without stepping into intermediate functions for parameters?

筅森魡賤 提交于 2021-02-05 08:36:08
问题 In Visual Studio 2013 (or any version really) and I am debugging a C++ project, I want to be able to bypass stepping into intermediate functions that are called due to parameters being passed into the function of interest. How can I bypass stepping into these intermediate functions (not of interest directly) and just go straight to my function of interest? For example, let's say I have a function that passes in a list of objects and another parameter that is a string. If I set a breakpoint

Visual basic. Change default startup form in code, depending on value of variable

不想你离开。 提交于 2021-02-05 08:17:26
问题 I have been working on a Visual Basic project in Visual Studio and have encountered a problem. I understand that the Startup form property in the Application page of the Project Designer can be changed to a default form, however what I require is a way to do this through code in ApplicationEvents.vb depending on the value of a variable within application settings. The goal is that if a user completes a form then a value is assigned to a variable, e.g. variable username = "xxx". If this value

How to check version of Visual Studio

泄露秘密 提交于 2021-02-05 05:00:42
问题 I want check how version of Visual studio i have in my pc, i means what version and what update for exemple visual studio 2013 update 4 or update 2, thank you 回答1: Click on Help > About Microsoft Visual Studio . You will see the version number and the update you have installed. 来源: https://stackoverflow.com/questions/28332618/how-to-check-version-of-visual-studio

How to check version of Visual Studio

烂漫一生 提交于 2021-02-05 04:59:11
问题 I want check how version of Visual studio i have in my pc, i means what version and what update for exemple visual studio 2013 update 4 or update 2, thank you 回答1: Click on Help > About Microsoft Visual Studio . You will see the version number and the update you have installed. 来源: https://stackoverflow.com/questions/28332618/how-to-check-version-of-visual-studio

How to take a screenshot of a second screen monitor?

独自空忆成欢 提交于 2021-02-04 16:23:05
问题 I need get a screenshot of a second screen monitor. I found a simple way to make a screen shot, but only works for screen shot of a primary monitor. Here is the code: #include <windows.h> void ScreenShot(char*BmpName){ HWND DesktopHwnd = GetDesktopWindow(); RECT DesktopParams; HDC DevC = GetDC(DesktopHwnd); GetWindowRect(DesktopHwnd, &DesktopParams); DWORD Width = DesktopParams.right - DesktopParams.left; DWORD Height = DesktopParams.bottom - DesktopParams.top; DWORD FileSize = sizeof

Using a relative path for a database file in c#, visual studio 2013

大兔子大兔子 提交于 2021-01-29 22:28:25
问题 inside my code i am using this command: conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source =C:\Users\ori\Documents\Visual Studio 2013\Projects\maxstar01\Database.accdb"); i am in a team of programmers which we all work on our own computers but everyone are using the same folder name "maxstar01" (which inside there is the solution file and all of it's directories and that database file). so i want to use a relative path which will call the database.accdb that sits

Using a relative path for a database file in c#, visual studio 2013

给你一囗甜甜゛ 提交于 2021-01-29 21:22:41
问题 inside my code i am using this command: conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source =C:\Users\ori\Documents\Visual Studio 2013\Projects\maxstar01\Database.accdb"); i am in a team of programmers which we all work on our own computers but everyone are using the same folder name "maxstar01" (which inside there is the solution file and all of it's directories and that database file). so i want to use a relative path which will call the database.accdb that sits