visual-studio-2010

How to make TFS not auto check source control from Visual Studio?

痴心易碎 提交于 2021-02-18 19:12:38
问题 every time I open my Solution in Visual Studio it tries to communicate and validate every file is update to date in source control. I am working on a very large project and was wondering how I could disable it for this Solution? Furthermore is I am curious as to also how to enable it? 回答1: In Visual Studio 2010: 1) Go to Tools -> Options -> Source Control -> Environment. 2) In "Source Control Environment Settings," select "Custom" from the drop down. 3) Uncheck "Get everything when a solution

How to generate a new MS access file programmatically

痞子三分冷 提交于 2021-02-18 07:50:30
问题 I have looked far and wide, in the deepest darkest corners of the internet, but for the life of me, I can not find the correct way to open a NEW Access file and then using vb.net to write data in the database.. The keywords here are NEW database, I don't want to open an existing file. Is this even possible? Thanks in advance! 回答1: I have finally found the way, thanks to a co-worker of mine Neither ADO.NET nor ActiveX Data Object (ADO) provides the means to create Microsoft Access Database.

How to convert an existing assembly to a ms unit test assembly?

隐身守侯 提交于 2021-02-17 21:16:04
问题 In Visual Studio 2010 Pro, how can I easily convert a classic assembly to a ms unit test assembly ? It there a flag to activate in the .csproj file ? 回答1: The problem is that test projects are "marked" on the project file - you can convert a class library to Test project follow these four simple steps: Unload the project (.prj) file and then open it for update. add the following line to the project C#: <Project> <PropertyGroup> <AssemblyName>....</AssemblyName> <!-- add this line below -->

How to convert an existing assembly to a ms unit test assembly?

耗尽温柔 提交于 2021-02-17 21:11:27
问题 In Visual Studio 2010 Pro, how can I easily convert a classic assembly to a ms unit test assembly ? It there a flag to activate in the .csproj file ? 回答1: The problem is that test projects are "marked" on the project file - you can convert a class library to Test project follow these four simple steps: Unload the project (.prj) file and then open it for update. add the following line to the project C#: <Project> <PropertyGroup> <AssemblyName>....</AssemblyName> <!-- add this line below -->

How to convert an existing assembly to a ms unit test assembly?

雨燕双飞 提交于 2021-02-17 21:10:56
问题 In Visual Studio 2010 Pro, how can I easily convert a classic assembly to a ms unit test assembly ? It there a flag to activate in the .csproj file ? 回答1: The problem is that test projects are "marked" on the project file - you can convert a class library to Test project follow these four simple steps: Unload the project (.prj) file and then open it for update. add the following line to the project C#: <Project> <PropertyGroup> <AssemblyName>....</AssemblyName> <!-- add this line below -->

more than one instance of overloaded function matches the argument list

 ̄綄美尐妖づ 提交于 2021-02-17 19:31:05
问题 I am getting the above error when I use double x = log10(100); I have used it in other class, in the same project and it does not show this error. How do I fix it? Many thanks Chintan 回答1: The error usually indicates that there is more than one overload for the function log10 and that none of them is better than the others for that particular call. For example, the overloads could take float and double : 100 is an int that can be converted to either and the conversions are equivalent, so the

Setting a VS2010 environment variable from a batch file?

给你一囗甜甜゛ 提交于 2021-02-15 07:42:54
问题 I'm using a batch file to define some variables that will be used in my program. I want the batch file to change the environment variable and use it in my code , but it's just now working - the macro is not being changed. to be more specific and clear : I have a program that creates a DLL and sets it's version In the common setting of the project - I created a new macro (Common properties->User macros) : TEST_VER = 5 now I want to add a batch file , that will run in the pre-build command and

VS2010: How to use Environment Variables in Post-Build

删除回忆录丶 提交于 2021-02-15 03:53:00
问题 On my PC I have created a system environment variable called 3DSMaxInstallDirectory At the command line, if I give echo %3DSMaxInstallDirectory%Plugins\ I get D:\Program Files\Autodesk\3ds Max 2011\Plugins\ In Visual Studio I enter into the Post-Build section copy "$(TargetDir)$(TargetName).*" "$(3DSMaxInstallDirectory)Plugins\" However on build I get Error 4 The command "copy "C:\Users\Sebastian\Documents\Visual Studio 2010\Projects\MaxBridge\MaxBridgeImporterPlugin\bin\Debug\MaxBridgePlugin

C# read and calculate multiple values from textbox [closed]

筅森魡賤 提交于 2021-02-11 17:59:09
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question I have a question about creating calculator in C# Windows Form Application. I want it to be possible write with form buttons an expression in textbox so for example 2+3+7= and after pressing "=" button program will read all digits and signs and perform calculation