visual-studio

Having problems automatically syncing my assembly version to my SubVersion revision

I'm trying to setup my VisualStudio project to set the assembly version based on the latest subversion revision number as described on this page. But the version number always seems to lag one revision. I've split out the assembly version attribute into a separate file, VersionInfo.cs, that is updated with a pre build event. I'm using ...

linked report from a chart- SSRS

Hi, I am displaying a table in an SSRS report. What I want to do is, if I click on one of the columns in this chart, it opens another report by passing parameters from parent report to child report. How can I achieve this? Regards Manjot ...

Is it possible to use WinMerge inside Visual Studio 2008 and Visual Source Safe 6.0?

I would like to use WinMerge as the default diff tool inside VS2008 from the solutions explorer in place of the "Compare..." context menu item. Is this possible? I'm looking for a quick replacement of the current bland diff tool an I just like WinMerge better. I'm not interested in going to the folder explorer and doing the comparison th...

Open two instances of a markup file in VS2008

With a normal .cs files i can choose "Windows" -> "New Window", to work in the same file in two different locations. I prefer this feature to "Split", because it seems less error phrone in my version of VS 2008 SP1. However when I'm working on markup files (.aspx, .ascx, .asp) the "New Window" is dimmed, does anyone know if the there is ...

Resharper: Is it possible to force an update of an Interface?

Hi there, In resharper is it possible to force an update of an interface? basically i have a class that inherits from an interface but this class is constantly changing so i need to reflect the changes in the Interface otherwise VS complains that i am not implementing something as the signature of the method has changed. I was wonderi...

Expression blend solutions won't open in Visual studio

Hi I'm a designer. My key tools are Photoshop, Illustrator and Expression Blend. As much as I love the user interaction of Blend I'm finding problems when I open a Visual Studio file in Blend created by the developer. The same goes for the developer as when he tried to open my files it comes up with an error message. I understand Blend ...

Why does an unhandled exception not terminate a process while debugging?

This is a behavior I noticed several times before and I would like to know the reason behind that. If you run the following program under the (Visual Studio 2008) debugger, the debugger will keep breaking on the throw statement no matter how often you continue debugging. You have to stop debugging to get out there. I would expect that th...

Retrieve revision number in VS with qmake

My current workflow: hg update (or whatever one uses to check out a revision) MyProject.pro → qmake → MyProject.vcproj Open Visual Studio, edit files Build project During the build step, how can I update my config.h header file with information from version control system (e.g. hg id)? MyProject.vcproj is generated by qmake, so I sh...

Is there a way to find all unused code in a .NET project using ReSharper?

I've just done a major, major overhaul on a colleagues project and throughout the process almost everything got rewritten. There was far too much code beforehand. Now, I am left with the prospect that in amongst my project somewhere are old pre-refactoring methods that are no longer needed. Is there a way to search the whole project fo...

Does anyone have an example of creating a custom text marker in Visual Studio?

In case my initial approach is wrong, here's what I'm trying to accomplish. I want to be able to recognize snippets of text in my code editor (I'm using C#, but that shouldn't matter) and change the way they are formatted. Perhaps use different colors or fonts, etc. I started off thinking this would be as easy as popping a regular exp...

best way deploying standalone installer for crystal report?

Because a crystal report requires crystal reports to execute, I need to find a way to deploy the report on a user's desktop as a standalone app. After some searching around, it seems the best way is to embed the report using VB or C#. Priorities here are getting the thing programmed fast and easy obviously. I've been told this can b...

Is there an easy way to find unused assembly references in my .NET project?

Possible Duplicate: Tools for finding unused references I inherited a brownfield project and am in the process of refactoring the code to support new requirements. The number of assembly references has grown considerably over time, and I would like to know if any references are no longer being used. What is the best approach t...

Coloring of User Types in Visual Studio 2008 and the future 2010

I really have an issue with Visual Studio's support for coloring User Types in VB.NET, I'm an C# developer that have been forced to code in Vb.NET by political rules in my organization, and I really misses the support for coloring user types in Vb.NET, I had hoped that this would be solved in Visual Studio 2010 and well in the beta they ...

msi installer - service isn't starting

I've created an msi for a .net service (AqPlugins). It builds without issue. I've done an install using the msi on a server. In the application log I see: Windows Installer reconfigured the product. Product Name: AqPlugins. Product Version: 1.0.0. Product Language: 1033. Reconfiguration success or error status: 0. Howeve...

LINQ debug time code change... is it possible in vs2008?

is there any ways to accomplish this? it is really annoying having to restart every time. ...

"Copy Local" for website references

Hi folks, VS2005.NET I have a website project that references 3rd party dll's and i'd like to have the DLL copied to the bin folder similar to the way Copy Local works for "regular" .Net Project I'm not sure how to get the referenced file to the output folder for inclusion in the deployment besides dropping it into the project itself...

Limitations in Visual Studio 2008 when using limited account privileges

Hi, Unfortunately I lack admin rights on my machine at work. This makes me wonder, what limitations are there when doing development in Visual Studio 2008 Professional Edition? I believe one of these limitations may be in not being able to write to the file system? What else applies? Can I write to "My Documents" (using XP Pro)? Thank...

Visual Studio - Unit tests loading resources in the project

Consider a VS Test project looking like this: The goal is to run some tests given some data in those Xml files. How would you easily load a given Xml file into an XmlDoc within the unit test methods? Current state is: XmlDocument doc = new XmlDocument(); string xmlFile = "4.xml"; string dir = System.IO.Directory.GetCurrentDir...

Recommended C# .Net project configuration for sharing project across multiple computers

I am the only developer working on an ASP.Net MVC project but will share it across multiple computers during development. I'm using VS 2008 and will back up against either Subversion or Git. I'm looking for recommendations on how to configure the project dependencies and web.config files to ease the pain in transitioning between system...

Access contact list to use e-mail address?

hi, i have no idea of how to access the contact list of the windows mobile programmatically to use the email addresses. i want to show the the email of contact list only and when user selects one of them email value is retrieved in a string . please help me. regards, Madhup ...