visual-studio

How to have indented build steps in MSBuild/TFS

I understand how to do build steps using the BuildStep task in MSBuild and TFS as shown here: http://stackoverflow.com/questions/226717/how-can-we-display-a-step-inside-visual-studio-build-process What I would like to have is indented build steps like the default MSBuild/TFS build steps display: I reviewed the MSDN documentation, ...

Some ReSharper key mappings not working. How do I add a parameter through refactoring?

I have ReSharper 5.0 for C# running on VS 2008 SP1. Most key combinations like (Ctrl+R, Ctrl+R) for renaming an identifier or (Ctrl+Shift+T) for going to a file work. I thought I would try some of the other refactorings like adding a parameter to a method, but I get the following error, when I put the cursor over a private method. ...

Add multiple solutions referencing the same projects to SourceSafe?

Hi, I've replaced someone at this company, and he was their SourceSafe guy. He kind of sucked at it, but he knew more than anyone else (i.e. anything at all) and so I'm kind of stuck for places to ask this question. Sorry. Anyway, I've got a StartUp project (StartupProjectA) in Visual Studio that references projects A, B and C. I've go...

.NET Windows 7 specific errors

I have a .NET application and a setup fot it. Built using VS 2005. The development machine is Windows XP SP3. Once somebody installed it under Windows7. And get the following errors WinForm ThreadException System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memo...

Outlook 2007 - Create addin from .OTM file?

Hi, I created a custom toolbar and a VbaProject.otm in Outlook 2007 and now I'm wondering how I can actually use those to create an Add-in? I know I have to use Visual Studio to create and deploy the add-in, but how do I actually import the form, code behind and the toolbar to the add-in dll? ...

WCF client with ssl and username/password authentication

Hi, I am trying to connect to service which is accesssible over https and need authentication. The error I get is: Test method TestProject1.UnitTest1.TestReharB2B threw exception: System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The a...

Microsoft visual studio auto complete selection problem

Hello. when i am coding visual studio do not select best value. if you look this image you will understand what i mean microsoft visual studio 2010 ...

How to save the VS window layout for single/extended-multiple screen?

I often work at the office using dual screen and at home using single screen. The window layout of Visual Studio 2010 is messing with me :(. I want to save/restore the layout so that I can quickly "switch" to the layout I want. How can I do that? Is it possible? Any helps of yours are much appreciated! ...

How exactly are Projects in the same Solution related?

I assumed when I have, say Project A and Project B, and Project B depends on Project A, I would be able to use in Project B the classes defined in Project A. So if I have namespace HiFolks { public class SomeClass{} } in Project A, then I can use HiFlolks.SomeClass in Project B just as if it were defined in Project B. It worked l...

How to find duplicates method in Visual Studio?

Possible Duplicate: What tool to find code duplicates in C# projects? I have to refactor a C# batch that has a lot of duplicates method in different files (Copy and Paste bonanza); essentially I would like to create a common librabry for all of this methods replicated on many .cs files. Do you know if Visual Studio out of th...

How can I list every resource files of a directory pack URI ?

Hello, I have many XML files with "Build Action" set as "Resource". I can access them from code using the well known pack URI scheme, or just a relative URI (which is actually a valid pack URI, as stated by Microsoft in the pack URI msdn page, so everything is a pack uri :p), like this : Uri uri1 = new Uri("pack://application:,,,/someF...

Deployment project: Read a setup variable from registry

I have a setup project in VisualStudio 2005. User is invited to fill-in the server address that will be stored in a registry key. Now, I would like that if the user reinstalls this project, that the old server name be proposed by default as value in the setup interface. Is is possible to keep the ancient registry key value, to propos...

compiling VB6 code in .NET environment

Is one able to compile VB 6 code in Visual Studio.NET ? In other words, is it backwards compatible with older VB code? Since I know there is a difference between managed code (.NET) and unmanaged code, I am wondering if Visual Studio.NET is able to compile unmanaged code as well? Kind regards, Kris ...

Allow to save data on access db using vb or c# on win7 or vista?

Hi all, I want to install my app or (just access db)to AppData folder to enable write for it. so, how can I do that in setup project. Is there just parameter or should I wirte custom action. Thx. ...

How to make live template in Visual studio 2010?

How to make live template in Visual studio 2010, I don't know is it really live template or macro, but what I wan't to do is when I'm write code and when I type let's say -> in, and press space, that program automatically insert code that look like this -> #include <>. In c++ builder for that purpose we use xml file who is automatically ...

Is there a sensible way to backup Visual Studio C++ solutions without all the "extra" files the IDE creates?

I would like to make a backup of my project, but the folder now exceeds 6.6 GB mainly through extra libraries like boost etc, but even if I just select the folders with my sources, I end up with big files like: .ipch, .sdf and potentially others. To make matters worse I use eclipse to code and VS to compile, so that adds to the mess, alt...

Is there a fast way to remove braces in VS 2010?

For example I have this code: if (cond) { lock (locker) { foreach (var item in list) { callFunc(item); } } } And I now want to remove all those brackets because they are too redundant. I always do it manually but I find myself doing this often so was wondering if there's a shortcut I missed or easy ...

What is the purpose of debug/release configurations in Visual Studio 2008/2010 compiling to different folders?

What is the point of compiling assemblies to separate folders? At my work we have 50+ projects which live across a few different solutions. When projects are in the same solution you can set a Project Reference and it picks up the assembly in the \debug or \release folder accordingly. But when setting an external reference (via Browse...

Visual Studio 2008 to MySQL connectivity

I am new to the Visual Studio thingy. I have MS SQL Server 2005 and 2008 preinstalled in my Windows Vista computer. Are they real servers? Or just some add-on for their server and I need to buy a server version of Windows for it? If not, how to run them? How to add a database, etc.? And basically how to connect Visual Studio 2008 to M...

Get parent directory of file as string c++

I'm using Managed C++. I need to extract the parent directory after OpenFileDialog returns the String^ file path. System::String^ filestring = openFileDialog1->FileName; The method that microsoft uses is Directory::GetParent but this must be saved as System::IO::DirectoryInfo^ WhyIsThisNotAString = Directory::GetParent(files...