visual-studio

Automating Database Project Deployment

I'm using the method outlined in this question to automate the database deploy with Hudson. When I deploy the project from within Visual Studio, everything works fine and it updates the target database. When it runs in Hudson, I get this warning: "Deploy warning TSD01266: The source's object [DBName] is different than the target's vers...

Visual Studio "format the whole document" -- executable from the command line?

Visual Studio 2008 has a handy command "format the whole document" (ctrl+k,ctrl+d). This will clean up and auto-indent many different types of files, including .aspx, .xml, etc. Is it possible to invoke this functionality from the command line, so I don't need to open the Visual Studio and wait for files to open? ...

Current Directory in XML

Hi, I am converting some environment variables to property sheets for some C++ projects. This way when the projects are used from the branch or the trunk in SVN we don't have to use a junction to switch between the branch and trunk. My property sheet, paths.vsprops, is in this format: <?xml version="1.0" encoding="Windows-1252"?> <Visu...

How to see the full name of a field in TFS

I am trying to setup a config file to work with my TFS Fields and I am having problems finding the full name of a field. For example, In the query view I just see Delivery Order, but I know that it's full name is Conchango.TeamSystem.Scrum.DeliveryOrder. Anyidea how I can see that value for all the fields on my Work Items? ...

Why doesn't VS2010 debugger stop at my breakpoints?

I am working on a C#.NET class library project in VS2010. In my project settings -> debug settings, I have the project set to start an external program (C:\Windows\SysWOW64\wscript.exe) which runs a very simple jscript file (test.js). The script simply creates an instance of the class and calls one of it's methods. The problem is when ...

Adding Preprocessor directive dynamically from commandline build VS2008

Hi all, I am using VS2008, and developing C/C++ projects. I am using .bat file to build my projects from commandline (VC2k8 command prompt). I need a way to include preprossor directive dynamically at build time. I am using devenv to build from command line. >devenv my\project\path\myproject.sln /build release > logs\build.log Actua...

Regular Expression in Visual Studio Find & Replace - multiple spaces between search terms

I require a regular expression for the Visual Studio Search and Replace funtionality, as follows: Search for the following term: sectorkey in ( There could be multiple spaces between each of the above 3 search terms, or even multiple line breaks/carriage returns. The search term is looking for SQL statements that have hard-coded Secto...

Sharing Config settings between Web App and Console App

I'd like to share my VS2010 3.5 Web Apps settings with my Console App's (2 projects in the same solution). eg connection string, smtp, log4net settings This looked close: http://devlicio.us/blogs/derik_whittaker/archive/2008/04/15/how-to-share-configuration-files-between-projects.aspx ...

Program runs differently when I step into and when I setp over a function in debug mode

I have a function GetAlertData() that returns a Datatable. I invoke it as: var dt = GetAlertData() Behavior in debug mode: Case 1: When I do F11 all the time and go into the GetAlertData function, all works well and I get the correct table Case 2: When I do F10 on this function and step over it, GetAlertData returns a table with all...

Delete unused files

Hi. My project contains many JavaScript files. many of them are not needed. and there is no reference from them on my project. is there any way or tool for removing them from solution automatically on Visual studio 2010? ...

Lightswitch Evaluation

Has somebody already evaluated the new MS Silverlight RAD tool "Lightswitch"? Is it also suitable for developing complex applications? Can I use it without Silverlight knowledge? Is it so flexible, that I can also extend "Lightswitch appications" with own code (C#,XAML)? ...

How to use a Class from one C# project with another C# project

In the same solution, i have two projects P1 and P2. how can i make use of a class of P1 in P2 ? ...

Java IDEs vs Microsoft IDEs

Hi Guys, I come from a strong Java background and in recent years have been also developing in C#. What I can never understand is how far behind (Personal Opinion) the Visual Studio IDE's are in compared with Intelli-J IDEA and Eclipse (Java). There have been improvements by Microsoft from VS 2005 to VS 2008, but I feel they are not q...

Timeout by attaching a process in visual studio

Hello everyone, I am creating a webpage in Visual Studio 2005, and I attach that project to a process like Firefox or whatever. If I create a breakpoint in the code (for example to a click event), and I am too much time looking at the code, suddenly the process unattach and I cannot continue looking the code. Question: Does anyone know...

How do I go to the first error?

When I introduce a breaking change, a list of compilation errors appears at the Error List. Is there a keyboard way to go to the first error? (Shortcut or some command I can associate one). The View.NextError command, associated to Ctrl+Shift+F12 or F8 by default, leaves me at the SECOND error of the list. Also, for the same reason, when...

The Purpose of Base Address Randomization

Since VS2008(Is it right?), MSVC linker option has a Base Address Randomization. What the main purpose of this feature? What I only glad to is, I don't need to rebase my Dlls manually anymore. Is that all? Was it their purpose? Is there any other benefit else. ...

VStudio theme in eclipse ?

I am a .net developer working with VStudio from few years. Now due to some priority I have to work in java using eclipse studio. I am very fond of vstudio theme and color.. can someone help me to find vstudio theme for eclipse ? ...

Intrinsic function, cannot be defined (C)

I implemented a function called abs(). I get this error: Intrinsic function, cannot be defined What have I done wrong? I'm using Visual Studio 2005. ...

Serializing binary struct gcc vs cl

Full disclosure - this is homework, although completed and fully working, I'm searching for a nicer solution. I have a binary file, which was created by a program compiled within Visual Studio (I believe). The structure looks something like this. struct Record { char c; double d; time_t t; }; The size of this structure o...

Getting a Crash Dump for a .NET Application that Uses Native Interop

I have a .NET application that makes calls to a native Win32 DLL using interop services. When I run this program, it will crash somewhere inside the DLL. However, I have been unable to get any stack dump information. When I run in the Visual Studio debugger, the debugger exits when the crash happens. I get the "Blah-blah-app has stop...