visual-studio

How to listen Visual Studio code model events ?

I am implementing Visual Studio Add-in and I want my service to be notified when class or method is removed in C# editor. Is there any samples showing how to do that ? ...

What utilies you like of FxCop

I love Resharper, but Fxcop is free, and does some bits Resharper does. My question is what can do more to get best out of Fxcop? I am using VS2008, and planning to upgrade to VS2010 next March hopefully. ...

No intellisense without the html & body tag in Visual Studio

Hi If I create a .aspx-page in Visual Studio and delete the html & body tags, then the .NET intellisense will stop working. Why is the html & body tags required to make the .NET intellisense work? I have to remove the html & body tags because it is a RSS-feed I am creating and not a regular web page. Just to clarify, it is the intelli...

Visual Studio/C# auto-format. Can I control newline after attributes

Visual studio keeps doing this: [DataContract] public class MyContract { [DataMember] public bool MyBool { get; set; } [DataMember] public string MyString { get; set; } } I would like this: [DataContract] public class MyContract { [DataMember] public bool MyBool { get; set; } [DataMember] public string My...

Visual Studio Web development - removing code duplication

Hello, I am developing a basic .html website using visual studio. I am wondering on how other people find this experience. I do not really want to replicate the navigation, header, footer code in each page so what do you use? I was thinking I might have to use master pages and aspx, unfortunately masterpages and .html do not go. In d...

Visual Studio Debugging

Sometimes when pressing F10 to step over a line of code, Visual studio advances as if F5 were pressed. The problem seems sporadic. Any ideas. Thank you.. ...

Visual Studio dynamic paths

I'm using a server variable to determine the path of my JS, CSS, and Images. However when I'm viewing them in Visual Studio "Design" view, the IDE will not be able to determine the path. See snippet below. <link type="text/css" href="Stylesheets/<%=CSSVersion%>/Base.css" rel="stylesheet" /> CSSVersion would be configured on the code...

HintPath vs ReferencePath in Visual Studio

What exactly is the difference between the HintPath in a .csproj file and the ReferencePath in a .csproj.user file? We're trying to commit to a convention where dependency DLLs are in a "releases" svn repo and all projects point to a particular release. Since different developers have different folder structures, relative references won'...

Development of Visual Studio IDE

What does the Visual Studio development team at Microsoft use to develop new versions of Visual Studio? Do they use VS2005 to develop VS2008? Thinking about it makes my head hurt a little... ...

How to I tell VisualSVN to do a replace instead of a merge?

We're finding ourselves unable to open our project in Visual Studio because SVN is adding lines like "<<<<<<< .mine" to our .csproj files. This is apparently something SVN inserts when it has trouble merging files, but we're not interested in merging things as two people can never have the same file checked out. How do we set Visual ...

Setup and Deployment of Visual Studio templates, locating devenv.exe to call in custom actions

I am working on a project that consists of installing some Visual Studio templates. Part of the requirement is that the VS executable must be called during Commit and Uninstall phases to make VS aware of the templates. I don't have much information or any proper examples to go on, and I'm pretty new to setup and deployment projects. S...

Should I delete unused html?

When using Asp.net server controls, especially formviews, I often don't use all possible modes. So I end up with a ton of template HTML that is never going to be used. This is a pain to work with when I'm in HTML Source mode. Is there any reason why I shouldn't just delete the excess HTML? ...

Script Sharp 0.5.5.0 installed for VS2010 and S2008 on the same machine.

Hi, I have VS2010 and VS2008 on my laptop and I would like to install Script# in both. However if I install in one of them (2010) when I try to install it on 2008 with the other installer it fails and tell me to uninstall the "old" one first. Did someone manage to do this? ...

Two questions about installing Visual Studio 2010 (Beta 2)

Question 1: Can I work with Visual Studio 2008 while installing it? Question 2: Can I download the whole thing somewhere (but as an installable file or files, not an ISO)? I know it's theoretically better not to run anything while it installs. But my download speed is extremely slow, and it's wasting a lot of time waiting for this thi...

Why has Ctrl+F (Find) in VS2010 stopped automatically searching for the currently selected text?

Normally if you select some text in the Visual Studio editor and press Ctrl+F, when the Find and Replace modeless dialog appears, your selected text is automatically shown in the "Find what:" textbox/dropdown. For some strange reason this has stopped working - is there a setting that controls this? ...

to open up an excel file, do I need any special references?

to open up an excel file, do I need any special references? I want to access the rows programmatically. ...

Visual studio asp.net publish: does it drop current online users

Using VS2008sp1: trying to find a reliable way (or proper way) to update a running web application (ASP.NET 3.5sp1) without losing current user sessions/context. I know users can get a busy message during the publish which is ok. Question is: does IIS reset sessions? or lose any context that the current users are in? Can this be phased ...

Windows 7 for .NET development

Are there any special features or advantages that make it worthwhile switching from Windows XP to Windows 7 for .NET Web/Windows/Office development? I'm currently using Visual Studio 2008 on XP box. Should I upgrade to Windows 7? ...

Visual Studio 6 : How to change the workspace file name?

When using VC++6 sp6, how can I change the workspace file name? The workspace directory contains three main files with the following file extensions. When I tried changing the filenames while preserving the respective file extension, I get a whole bunch of errors and warnings when I tried to recompile the projects contained in that wor...

Making an extension for multiple versions of Visual Studio

I have a feeling that the Visual Studio SDK is targeted heavily towards the version of Visual Studio it is created for, so I'm wondering how to do this in the best way possible. I currently only have Visual Studio 2008, but people using Visual Studio 2010 have begun wanting to use my tool as well, and I want to help them out. There were ...