visual-studio-2010

How to map existing folders (which are moved to new machine) with the TFS without need to download the entire data from TFS?

梦想与她 提交于 2020-01-21 06:32:30
问题 Earlier I had mapped my local folders to the TFS. I had to change machine/computer for some reason. So I copied all the folders to the new machine. Now when I try to map the TFS folders to the existing folders on the new machine, it always shows Not Downloaded under the Latest column of the Source Control Explorer (VS 2010). I can get the latest version but it's very time consuming. Can someone suggest a way to establish relationship between existing folders and the TFS folders in lesser time

Where is WIN32 defined, and how can I include this definition in my project?

余生颓废 提交于 2020-01-21 06:32:08
问题 I am including a third party header and source file into my project. At the top of the header there is this: #if defined(WIN32) || defined(WIN16) #ifndef MSDOS #define MSDOS #endif #endif #include <stdio.h> #include <stdlib.h> #ifndef MSDOS #include <unistd.h> #endif #include "des.h" The problem is that #if defined(WIN32) fails and the compilation fails when trying to #include unistd.h which I don't want to do. I have third party project that works with this header file i.e. WIN32 is defined

How do I retain database connectivity, with my project, when the source file path changes?

人盡茶涼 提交于 2020-01-21 06:12:26
问题 I am using a Microsoft Access Database in my project; saved to the bin folder. What can I do, to ensure connectivity to that database, when the file path changes? Imports System.Data.OleDb Public Class Form3 Dim con As New OleDb.OleDbConnection Dim da As OleDbDataAdapter Dim ds As New DataSet Dim str1 As String con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\AARVIII\Documents\DATABASE\MP1.accdb" 回答1: Your connection string locates your database in a fixed

How do I retain database connectivity, with my project, when the source file path changes?

自古美人都是妖i 提交于 2020-01-21 06:09:20
问题 I am using a Microsoft Access Database in my project; saved to the bin folder. What can I do, to ensure connectivity to that database, when the file path changes? Imports System.Data.OleDb Public Class Form3 Dim con As New OleDb.OleDbConnection Dim da As OleDbDataAdapter Dim ds As New DataSet Dim str1 As String con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\AARVIII\Documents\DATABASE\MP1.accdb" 回答1: Your connection string locates your database in a fixed

How do I retain database connectivity, with my project, when the source file path changes?

依然范特西╮ 提交于 2020-01-21 06:08:08
问题 I am using a Microsoft Access Database in my project; saved to the bin folder. What can I do, to ensure connectivity to that database, when the file path changes? Imports System.Data.OleDb Public Class Form3 Dim con As New OleDb.OleDbConnection Dim da As OleDbDataAdapter Dim ds As New DataSet Dim str1 As String con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\AARVIII\Documents\DATABASE\MP1.accdb" 回答1: Your connection string locates your database in a fixed

How can I do a parallel build in Visual Studio 2010?

久未见 提交于 2020-01-20 12:58:47
问题 How can I get VS 2010 to run more than one C++ compile process at a time? I mean building object modules in parallel; I'm not interested in building more than one project at a time (I know about Tools > Options > Build and Run < Maximum number of parallel project builds, but that doesn't do what I want). Basically, I'm looking for Visual Studio's equivalent of "make -jN". 回答1: Tools -> Options Projects and Solutions\VC++ Project Settings Maximum concurrent C++ compilations Also, as Ross Smith

How can I do a parallel build in Visual Studio 2010?

不问归期 提交于 2020-01-20 12:55:57
问题 How can I get VS 2010 to run more than one C++ compile process at a time? I mean building object modules in parallel; I'm not interested in building more than one project at a time (I know about Tools > Options > Build and Run < Maximum number of parallel project builds, but that doesn't do what I want). Basically, I'm looking for Visual Studio's equivalent of "make -jN". 回答1: Tools -> Options Projects and Solutions\VC++ Project Settings Maximum concurrent C++ compilations Also, as Ross Smith

How can I do a parallel build in Visual Studio 2010?

此生再无相见时 提交于 2020-01-20 12:54:06
问题 How can I get VS 2010 to run more than one C++ compile process at a time? I mean building object modules in parallel; I'm not interested in building more than one project at a time (I know about Tools > Options > Build and Run < Maximum number of parallel project builds, but that doesn't do what I want). Basically, I'm looking for Visual Studio's equivalent of "make -jN". 回答1: Tools -> Options Projects and Solutions\VC++ Project Settings Maximum concurrent C++ compilations Also, as Ross Smith

Why does data driven unit test fail in vs2012 when it worked fine in vs2010?

二次信任 提交于 2020-01-20 06:11:28
问题 I have some data driven unit tests that were working just fine in Visual Studio 2010. These tests were implemented using the following pattern. [TestMethod()] [DeploymentItem("path_to_data_dir_relative_to_solution\\my_data.xml")] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\my_data.xml", "Token", DataAccessMethod.Sequential)] public void MyTestMethod() { // Arrange const string EXPECTED_PARAM_NAME = "table"; string data = TestContext.DataRow["Data"]

Why does data driven unit test fail in vs2012 when it worked fine in vs2010?

妖精的绣舞 提交于 2020-01-20 06:11:05
问题 I have some data driven unit tests that were working just fine in Visual Studio 2010. These tests were implemented using the following pattern. [TestMethod()] [DeploymentItem("path_to_data_dir_relative_to_solution\\my_data.xml")] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\my_data.xml", "Token", DataAccessMethod.Sequential)] public void MyTestMethod() { // Arrange const string EXPECTED_PARAM_NAME = "table"; string data = TestContext.DataRow["Data"]