visual-studio-2008

Weird intellisense behavior with private constructor

Example: public class Name { public string FirstName { get; private set; } public string LastName { get; private set; } private Name() { } public Name(string firstName, string lastName) { FirstName = firstName; LastName = lastName; } } When trying to instantiate this c# class, intellisense sh...

Record Application Execution

Hi, I am testing the application in the debug mode under several conditions. Now I'm doing it by writing some of the states and executed functions on the piece of paper and then comparing the scenarios. Does anyone know if there is any built-in functionality in VS2008 or any additional tool that could record the selected states and exe...

C# single project organization

I am reorganizing my source files into a single solution with a single project, due to various reasons: a paranoic configured antivirus software; Advices on partitioning code through .NET assemblies Control component dependencies to gain clean architecture Benefit from the C# and VB.NET compilers perf This leaves me with many namespa...

Visual Studio 2008;: adding a webreference

Aloha I have a VS2008 solution to which I want to add a webservice reference. I enter an url like 'http://192.168.100.87:7001/wsdl/IMySOAPWebService'. The Add Web Reference dialog starts looking then throws me this error: There was an error downloading 'http://192.168.100.87:7001/wsdl/IMySOAPWebService/$metadata'. Adding the ex...

Setting up Visual Studio windows

Hi, I've set up Visual Studio 2008, exactly as I want it with one screen (got dual monitors) used only for coding and the other setup with multiple tab groups, each containing different tabs, like one group contains the output, error list and todo list tabs, another group has tabs for the toolbox and properties windows. Now this is all ...

How do I find a complete list of extensions installed in VS2008?

I want that list, because if something horrible happens, and I'll have to reinstall Visual Studio - I'll need this list, so that I can recreate the same development environment. This also makes it hard to search for updates - I can not see the versions of currently installed plug-ins. So, is there a single place in Visual Studio, that w...

Highlight all references to X?

The Eclipse IDE has a neat little feature that I really miss in Visual Studio. If I place the cursor on a variable or method name, the IDE will automatically highlight all references to it in the current document within the relevant scope. I can't seem to find an option to turn on similar behaviour in VS2008 or Resharper 4. I know VS ...

XSD utility question in VS2008

I've copied a Dataset from one csproj to another, and the new project gets the following compile warning: "The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'." In researching this warning I discovered that if I opened a VS cmd prompt and run XSD.exe on the xsd file directly I get more info. It says: "Err...

Consuming a web reference in a class library (C#/.NET)

I have a project that uses a class library for the business layer functionality (database access, etc.). A web application sits on top of this. I have a web service that I would like to call in the class library. Every time I add a 'service reference' (I am using VS2008) to the class library, everything seems to work OK. The name of the ...

ASP.NET MVC Beta Project can't create controller tests properly in subfolder

I'm using VS2008 Team Suite, ASP.NET MVC Beta, with TestDriven.Net installed. When I created my project from the template, it created a "Tests" project as well and put some controller tests for the AccountController in a folder inside this project. I've added other controllers and associated tests. Howerver, when I right-click on a met...

"WebServiceBindingAttribute is required on proxy classes"

I'm working on an application that makes asynchronous calls to the WebService. I added a proxy class to make asynchronous calls. The code compiles and runs properly, however whenever I try to double-click the proxy class in solution explorer (Visual Studio 2008) I am presented with a page To prevent possible data loss before loading th...

Where is the "AJAX-enabled WCF Service"?

I have installed Visual Studio 2008 and patch it with SP1. However, I cannot find the "AJAX-enabled WCF Service" in my New Project dialog. Does any more patches should be added to make the "AJAX-enabled WCF Service" template appear? ...

VS2008 Setup Project - Overwrite Newer Version

VS2008 setup projects provide the option to halt installation if a newer version is detected by setting "DetectNewerInstalledVersion". Is there a way to remove a newer version if it exists ie similar to "RemovePreviousVersions" options? ...

VS2008 Setup Project - No Repair Option

Is there anyway to disable the repair option so that if a user runs the msi again it automatically uninstalls without prompting for Repair/Remove options? Edit: This is for a controlled corporate environment and has been passed down as a requirement. ...

Virtual Directory in ASP.NET project

In our web application we have a directory which resides outside of the project. On IIS that's no problem to do, but can I do that also in my project in Visual Studio? Edit: My project is running on File System, and not on Local IIS ...

Localization in Visual Studio 2008

I am trying to localize a desktop app (C#) in VS2008. I have mastered localizing the forms for multiple languages and I also have a project resource file for general strings but I cannot fathom out how to create multiple language versions of this file! It doesn't seem to be documented anywhere. The consequence seems to be that if I ...

How can I get the current editor in visual studio 2008 using C#

I'm writing an addin for VS 2008 in C#. And I want to know what kind of editor/designer "scope" is open (for example VS Editor/VB Editor"). Can I catch the event where the scope changes? Thanks. ...

Have ReSharper keep 'using System;' when optimizing usings

Hello. I was wondering if there is some option to keep ReSharper from removing just the using System; directive? Perhaps this is configurable somewhere? Also, is there a way to have ReSharper sort the remaining directives just as Visual Studio 2008 does it (alphabetically, I think)? Thanks. ...

Visual Studio 2008 designers screw up on large VB projects.

We have 3 developers all using the same version (VS 2008 SP1) and we all use large VB projects (windows forms). From time to time, the IDE will have all sorts of issues such as locking up, crashing, and even not being able to drag a form object around or it will just instantly disappear. On the largest of our projects (which is actually...

Localization of DisplayNameAttribute

Hi, I am looking for a way to localize properties names displayed in a PropertyGrid. The property's name may be "overriden" using the DisplayNameAttribute attribute. Unfortunately attributes can not have non constant expressions. So I can not use strongly typed resources such as: class Foo { [DisplayAttribute(Resources.MyPropertyNa...