visual-studio

How do I remove unnecessary resources from my project?

I am working with a very big project (a solution that contains 16 projects and each project contains about 100 files). It is written in C++/C# with Visual Studio 2005. One of the projects has around 2000 resources out of which only 400 are actually used. How do I remove those unused resources? I tried to accomplish the task by searc...

Integrating MSBuild into Visual Studio

I'm a solo developer running Visual Studio 2008 and looking into MSBuild to improve my build process. Almost all of the tutorials I've found so far have plenty of information about writing a build file. However I'm having a lot of trouble finding out how to integrate MSBuild into Visual Studio. Maybe MSBuild is only used with something ...

visual studio generate test

is there any vs addins that can take a class and set up all the wiring to generate the test class and methods as well as mocking the dependencies, etc. this seems like something that can be automated. ...

Visual Studio 2008 , Is there a way to embed a product version into MSI package.

I have a solution (sln file) file that contain several projects. The sln is referring to two projects : I have a csharp project that its output is an executable assembly , along with configuration file , this project has a product version defined which increase from time to time. I have a project that when i Build it , it create an MS...

Lost in the Visual Studio maze?

Where can I find the ARPCOMMENTS through the Visual Studio GUI in a .NET solution with a setup project? The value of ARPCOMMENTS shows up when "Click here for support information." is clicked in Control Panel "Add or Remove Programs". I have changed it once, but I forgot where it is. ...

"Changes to 64-bit applications are not allowed" when debugging in Visual Studio 2008

I'm using Visual Studio 2008, C#. I try to use edit-and-continue (edit the code while debugging), and get this exception: "Changes to 64-bit applications are not allowed" Why is that? Is there a workaround? ...

How to create native DLL in Visual Studio from C# code?

I have the source code of a C# program. I want to create a DLL out of it which I want to use in C++. Is it possible to create a native DLL in Visual Studio 2008 which can be used in C++? ...

How can I connect an object that requires a writable stream to an object that wants a Readable stream?

A DataSet knows how to serialize to a stream via WriteXml(). I have an object that wants a readable stream. How can I connect the DataSet to this other object? The plumbing analogy: suppose a 1/2" copper pipe has a "male" outlet, and a valve also has a "male" fitting. To connect the two I need an adapter - female on both ends. I...

Visual Studio RegEx Replace - 2 or more?

Using visual studio search and replace, is there a way to search for two or more instances of something? Visual Studio regex does not seem to support the "{}" syntax for indicating quantity. E.G: Match Text: 11 OR 111 OR 1111 Standard Regex: [1]{2,} ...

A VS 2008 code snippet doesn't get inserted fully

I have the Javascript one liner below as a code snippet in VS 2008 SP1. When I insert it in the code (C#) window, only 'var SelectedVal =' gets inserted, instead of the whole statement. Also.. is there a way to get the Insert Snippet to show up in the context menu when in aspx editor window? Code Snippet: var SelectedVal = $('#<%=DropD...

Is there a Visual Studio (or freeware) equivalent for Expression Blend's "Edit Template" feature?

In Expression Blend, you can view and edit the control template of objects in the "Objects and Timeline" panel. I'm wondering if there's an equivalent feature in Visual Studio or if there's something free (or very inexpensive) I can download that will allow me to do this. Here's a screen cap from Expression Blend that shows what I'm tal...

What are the most important IDE features missing in Vim?

I have been programming almost exclusively in Vim since 1/1/2001, and I feel that Vim fulfulls all my needs as an editor/IDE, but I can't help but wonder if perhaps there have been some new killer features developed for other IDEs in the last decade that would allow me to be more productive than I can be using Vim. So I ask: What are the...

Visual Studio unit testing - how to access external files?

I have data files used as input to my unit tests. These files are quite big and I don't want to copy them each time unit tests are executed. Tests are executed without deployment. So I can just put them into folder under my solution, and... how to obtain path to my solution (or test project source code) when unit test is executing? ...

Is there an easy way to switch from a class code to the corresponding Unit Test in VS2008?

Everything's in the title. I use MoreUnit in Eclipse which allow me to switch back and forth between a class and its unit test and I was wondering if anything like this was available in Visual Studio 2008. Thanks Alexandre ...

Wildcards to regex in VS find & replace

I need to convert expressions of the form: return *; into: return filter(*); It seems simple enough to express it with wildcards, however, in visual studio's search & replace dailog, there's no way to associate the first asterisk with the second one. I suppose a regex can do this quite easily, however I know very little about regex...

How to access internet on blackberry 9000 simulator.

Hi... i am new in blackberry development.I am working in visual studio 2008.How to access internet and webservices. thanks Pankaj ...

Incorrect states on TFS 2008 Project Files

I have a project stored in TFS Source Control (2008) that is being worked on by 2 developers. All 3 versions (Developer1, Developer2 and Server) are up to date with each other. However, both Developers report that some files in Solution Explorer say 'Checked out by someone else or in another place' - but the same files viewed in Source C...

SSRS 2005 Sorting

Hello, A quick question for someone, hopefully! In my .rdl file source I can see the tag "< sorting >" Where abouts in the GUI (I'm using Visual Studio) can this property be set? Thanks in advance, Jim ...

Build does not release the new changes on Visual Studio 2005

I am a part of TFS project. We use Visual Studio 2005. It was allright some days ago, I mean I used to be able to build a project with new changes. However, today! For instance, I have a page under a web application. I add two text box component and I build the whole project but it does not build the project with two new text boxes. It...

How can I customise the Project Type / SubType of a VS 2008 Project Template?

I created a trivially simple empty project and chose "File | Export Template". All this works and I can now add a project of that type if I restart VS. What I want to be able to do is customise the tree node that my custom project templates appear under in the New Project dialog. For instance, at the moment they appear directly under 'Vi...