visual-studio

SharePoint - How To Upgrade VSEWSS Solution From VS2005 to VS2008

Hi I have a MOSS solution successfully created in Visual Studio 2005 using VseWss 1.1 I have now tried to upgrade to Visual Studio 2008 to use VseWss 1.3 The upgrade did not raise any errors however now when I try to deploy I get the following error: The class id 00000000-0000-0000-0000-000000000000 exists in this Solution in both MyGl...

Source Control with Visual Studio Integration (Preferably free)

We've been using Visual Source Safe 6.0d for quite some time now, and it has served us well. However, upon attempting to upgrade to SourceSafe 2005, we discovered that it costs an arm and a leg! Additionally, it does not appear to be a painless upgrade. That said, we want a different solution that costs less money (preferrably free). ...

Warning number guide in Visual C# 2008

What is a good resource for finding out the warning numbers in Visual C# 2008. I found this page: http://msdn.microsoft.com/en-us/library/4wtxwb6k(VS.71).aspx but it's very hard to sort through the warning numbers. I am trying to figure out which warning number to use for the warning disable pragma: http://msdn.microsoft.com/en-us/libr...

Write C# snippets that end by hitting TAB

The C# code snippets I create can only be ended by hitting Enter, while the built-in snippets such as 'struct' can be completed by tabbing through the custom fields. It's not a big issue but it is annoying. I tried copying the entire XML for the struct snippet into my own, replacing only the shortcut name. Even so I had to hit Enter to ...

How to resolve "DomainClass XXX is not abstract, and is neither a root of the model nor embedded within it." warning.

I'm getting the following warning in VisualStudio: "DomainClass ManagedField is not abstract, and is neither a root of the model nor embedded within it." The warning is correct my class isn't abstract (and shouldn't be) and it shouldn't be the root of the model. So it comes down to the last part "nor embedded within it" my class Manage...

VS2005 not attaching to aspnet worker process

Hi When I start a debug session in VS2005 (to debug an ASP.Net web site), The browser is launched but the Debug session ends. VS is not attaching to the worker serive. I can attach manualy to aspnet_wp service and then debug. Before I not my new works PC this happend automatiacly now its a manual task. What have I done or forgotten to...

How do I get the VS debugger to display the type name of an object member?

The Visual Studio autoexp.dat syntax allows you to display ‘the name of the most-derived type of the object’ with the 'special format' <,t>, which is very helpful if you have lots of derived types. From the syntax, I assumed that you could do the same thing for members, such as <member,t>, but when I try that the preview only shows ??? ...

VisualStudio: Shortcut for when Renaming Variable

In Visual Studio, when you rename a variable name in its definition, there's a little underline in the last letter so if you hover that, you'll get the option "Rename OldVaribleName to NewVariableName" and so rename all entries in that procedure of that variable. Is there a shortcut for that and not use the mouse? ...

Visual Studio 2008: How to load source code while debugging.

When debugging in Visual Studio 2008 I get the error "There is no source code available for the current location" but it does not prompt me to browse for source code. If I click "Show Disasembly" and then right click to select "Go to source code" I get the error "The source code cannot be displayed. How do I load the source code while ...

Is AnkhSVN a good alternative to Visual SourceSafe?

We've had it with Microsoft Visual SourceSafe 6.0d and want to move to SubVersion. Our IDE is Visual Studio 2005, but we plan to ugprade to 2008 soon. We are considering to install VisualSVN server, and then use the AnkhSVN add-in for Visual Studio. VisualSVN server has a good reputation with the community, so I have plenty of faith i...

Visual Studio missing "create website" on start page

I recently imported a visual studio 2008 settings file. This caused my "open website" and "create website" links to no longer appear under recent projects on the start page of visual studio. I only have open project and create project. When I goto File-->open I can select "website". Just not from the start page. How can I get those ...

Adding editors in Visual Studio "Open With..." dialog box

I added a batch (.bat) file to my project. I want to add a new editor for batch files that would actually execute this batch file in command prompt window. What I did, but didn't remember my editor: Right clicked on my .bat file Selected Open with... Clicked Add Set program as "cmd /c" and some Friendly name Accepted this dialog. A ne...

How to make [DebuggerDisplay] respect inherited classes or at least work with collections?

I've got a class which inherits from a List<MagicBean>. It works well and as expected in all respects except one: when I add the [DebuggerDisplay] attribute. Even though looking at List has its as [DebuggerDisplay("Count = {Count}")], if I so much as copy and paste that onto mine, I lose the ability to look directly at all of the MagicBe...

Is there a way to install a dll into the GAC in a VSI file

I created a Visual Studio Project Template that includes a Wizard Extension. Is there a way to have that assembly installed into the GAC by the VSI installer file? I looked around MSDN, but I don't see anything about automating that step. ...

Setting up a build dependency without using a reference?

All: I am working on a solution where one of the projects is actually plug-in to the main exe that the solution builds. Since this one project is a plug in, it's wrong to reference the plug-in from the main exe (that assembly isn't guaranteed to be present in a deployment, it's optional). So here's my problem: If I modify code in my pl...

Is it possible to customize the Visual Studio autoformat?

I'm using Visual Studio to develop a C/C++ library. I would like to know if there is a way to customize the autoformat tool (Ctrl+K,F) so that: It automatically break lines that are bigger than 120 columns Format a function/method parameter the following way: void myFunction(int parameterA, float parameterB, string par...

Broken std::map visualiser in VS2005

I'm using the Intel compiler and visual studio and I can't seem to debug values that are in maps. I get a quick preview which shows the size of the map but the elements only show up as "(error)", I'll illustrate with a quick example, i've generated a map with a single entry myMapVariable[6]=1; if I mouse over I get this "myMapVariable ...

What is the shortcut key in visual studio for cleaning entire solution?

What is the shortcut key in visual studio for cleaning entire solution? ...

Unable to open website in Visual studio any more

Hi, Pls refer http://stackoverflow.com/questions/1021178/finding-the-net-framework Based on the inputs I was able to open the website using Click on File -> Open -> WebSite (Or press Alt+Shift+O). Select the folder which containing your file (aspx, aspx.vb, web.config) It was all working fine till today morning. Today morning, I...

Visualize generated SQL from Linq To Entities

I am looking for a way to see what the sql is that my L2E code has generated for debugging purposes. I have read a blogpost by Scott G. on a visualizer for Linq2SQL but I can't get it to work for L2E. Do you know of some way to visualize the generated SQL from L2E? I am using Visual Studio 2008 SP1 Professional. ...