visual-studio-2008

Why does Visual Studio 2008 ask about enabling debugging when debugging is already enabled?

I have a generated (via MSBuild) Web.config that runs prior to the Build target whose content includes, among other things, <compilation debug="true">. The generated Web.config is copied to the root and put in the Content item group. But when I run the Debug build in Visual Studio 2008 (via F5) I get the following dialog: If I select ...

Upgrade an existing application to include ClickOnce

Is it possible to introduce ClickOnce functionality to an existing application? The scenario is: Version 1.0 is already installed on client premises. I would like to send them a new setup package which will upgrade to 1.1, which has ClickOnce functionality, thereby making future upgrades "effortless". Barring that, are there any other ...

VSPackage: How to create a custom virtual node like References node

Hello, I have a C# flavored project and I want to add some custom nodes to my project where the only options when you right click on them is to add or remove a custom project item that I have already created, so I want it to be like the References node in that it cannot be deleted renamed and it only has 2 context menu options. Any ...

Create a document library with external persistence

I would like to create a custom document library where I use the standard UI but implement a different persistence layer. Basically fetch and display documents from a different source system. This way I can use my existing object model but leverage the great office integration within SharePoint. I found a decent article here but they ar...

Is there anyway to have server explorer use the connection string in my web.config?

When I'm adding items from the database into my dbml from the server explorer it complains that the connection strings aren't the same and it won't add my object until they are the same. Once I say OK update my connection string it trashes the formatting of my web.config and I need to remember to switch it back to the correct connection ...

Have a webpart hide its self, if the user doesn't have proper permission

If the user creates a web part page in SharePoint and then adds one of my custom web parts to it, I would like to completely hide a web part depending on a particular users permissions. For example, I have a reporting web part some users have access to reports and some don't, I don't even want some users to know that reports exist. I ...

How do I add Page Events for ASP.NET in Visual Studio 2008

This is a bit of a Visual Studio question. I feel with all the helpful Intellisense there should be something to assist but I can't seem to find it. I made a page with a codebehind in ASP.NET C# in VS2008 and it autogenerates a PageLoad event method, of course. Well, what if I want to add methods for more events besides PageLoad? I w...

How to access inherited controls in the winforms designer

I'm making some controls which all have to share the same look and some common behavior, although they are meant for different kind of inputs. So I made a BaseClass which inherit from UserControl, and all my controls inherit from BaseClass. However, if i add controls for BaseClass in the designer, such as a TableLayoutPanel, i can't acc...

Why is Visual Studio 2008 stuck in debug mode when compiling

I have a .NET project that for some reason gets stuck in debug mode. I've changed the compile mode from debug to release in the toolbar, but my project ends up in the debug directory anyway. Seems like VS is not updating the SLN file or something. Please help! The reason I am asking about this is because it seems that there are weak ref...

How to build a Visual Studio 9.0 solution from Cygwin and get build output?

I am trying to set up an automated build system on Windows using Cygwin. Among other things, it needs to be able to build several Visual C++ solutions. I have a script which sets up the environment variables needed for devenv, and if I type 'devenv' in bash it brings up the Visual Studio IDE. No problems so far. I am also able to buil...

Merging XML files using external entities in Visual Studio 2008

I have some xml data contained in three files (Database.xml, Participants.xml, and ConditionTokens.xml). I am trying to use external entities to place the participants and condition tokens into the database file, but when I run this code... string xmlPath = Environment.CurrentDirectory + @"\Data\Database.xml"; XElement database = XEleme...

install/uninstall a Windows Service

Hello everyone, I have created a Windows Service project using VSTS 2008 Windows Service type project and now I want to write scripts to install/uninstall it using PowerShell. Any reference samples or documents? thanks in advance, George ...

Building Proxy/Stub dll in VS 2008

I have a ATLCOM project migrated from VC6 to VS2008. My question is, how do I build the ps dllon VS 2008? New ATL projects in VS2008 have a separate PS project which builds the ps dll. But the migration from VC6 did not create this project. I tried to invoke nmake on the ps mk file but that gives a redefinition error for an enum type w...

How do I declare template function outside the class declaration.

#include <iterator> #include <map> #include <vector> template <class T1, class T2> class A { public: typedef typename std::vector<std::pair<T1,T2> >::iterator iterator; std::pair<iterator, bool > foo() { iterator aIter; return std::pair<std::vector<std::pair<T1,T2> >::iterator, bool >(aIter ,false); } }; T...

VS2005, 2008 - ASP.NET Browser Settings

How can I choose/change which browser to start when I run an ASP.NET Web application in VS2005 or VS2008? ...

Icon Editor in Visual Studio 2008

I am using Visual Studio Team System 2008 and see it has an Icon Editor and support for icons (including favicons) rolled into the product. What I can't seem to find is a good review of the pros and cons of using this tool vs. other methods (both on-line and programs) for creating icons? Also if one is going to use the tool in VSTS is...

FileSystemWatcher - monitor Alternate Data Streams

Is there a way to monitor (e.g. creation) alternate data streams using FileSystemWatcher? Or, perhaps another way? For my application I am not going to implement any polling mechanisms. Thanks in advance, Craig ...

Write Flex 3 code in Visual Studio?

Any ideas on how to build and compile flex 3 projects in visual studio? I prefer that environment to Flex Builder 3. ...

Create VS2008 Plug In with VB.Net ?

Anyone know of any examples on creating plug in's for VS2008 - preferably with VB.net? ...

Do any visual studio plugins currenlty support auto refactoring from a variable to a property

I am looking for a refactoring plugin which specifically has the ability to take a declaration like this: Dim myVar as MyType or Private MyVar as MyType and turn it into this: Private _myVar as MyType Private Property MyVar as MyType Get return _myVar End Get Set (ByVal value as MyType) _myVar = value End...