When user the "Implement Inteface X" context menu feature, the inserted code gets surrounded by a
#region [interfacename] Members
#endregion
pair. I always end up deleting this, is there a way I can permanently turn it off? I had a quick search through the snippets directory, but wasn't sure if this was the right place. There's pp...
I want my asp.net mvc framework system to send an e-mail everytime a certain action (inside a certain controller) is fired off. Are there any third party libraries or .net standard ways to accomplish this?
...
I have 2 machines, one at Location A and the other at Location B. The B machine is connected to A's newtwork via VPN. VS2008 Team System is installed on both machines. The A machine has a menu option under Tools > Connect to Team Foundation Server... but the B machine does not have this option.
Is there something that I've missed in the...
Hi guys,
Every time I use Setup & Deployment to create a new Web Setup, and run it (after edit all the nice things in the properties), the output is always a copy of the Web Site project...
How can I output a PreCompile version of the WebSite project?
What I did was, publish the Web Site (so I get the precompiled version), add this ne...
I have a header image that needs to be repeated in the header of multiple reports. I am aware that you can add an image to a report and point to a path where the image file reside, like file://C:\path\to\Reports\Images\logo.gif, but that path can and will change when the app is deployed.
I tried using a relative path like (assuming the ...
I know that I can add a HintPath to an external DLLs to help Visual Studio/TFS find the dll when it builds.
What I was wondering is... is it possible to add multiple HintPath?
For example... developers have their DLLs for one place and we do a GetLatest of those DLLs at a different place on the server hence the need for multiple HintPa...
I have a web app built against asp.net 2.0, but keep getting the following warning:
Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name d...
I would like to write some tests (the kind built in to Visual Studio 2008) against some ASP.NET pages in a forms-authenticated site, but I'm hung up on getting past the login page redirect --- I keep getting back a page of type ASP.login_aspx instead of the one I'm calling. Ideally, I'd like to have the test run while actually logged in...
I have a base UserControl (BaseControl.cs) which has an OK and Cancel buttons on it. When the buttons are clicked, an event is fired. Typically other UserControl objects inherit from the BaseControl. Finally the descendant UserControl objects are placed on a WinForm, where they hook into the events for clicking Ok/Cancel buttons.
My...
I have a solution in Visual Studio 2008 which contains multiple C# projects. Each project has it's own config file (App.config and Settings.settings). This makes sense architecturally as each module is autonomous and is used in a number of different solutions.
My problem is that when I compile the solution only the config file for the s...
I figured out through trial n error how to link an unmanaged static library to managed C++ dll, but I have no idea how to dynamically include a DLL. Does anyone know how to do this in Visual studio 2008?
...
Hi everyone,
I'm using Visual Studio Team Edition 2008. The problem is, its performance decreases dramatically whenever i leave it open for sometime (for example an hour). It will remain like this until i close and reopen Visual Studio. Does any one know any solution to this problem?
Thanks in advance
...
I have a semi-large solution file in Visual Studio 2008, with around 25-30 projects in it.
I notice that a lot of times when I want to either close the solution file, or check in pending changes to TFS, VS will ask me if I want to save a particular project.
If I cancel the operation, hit Save All, then retry, it will ask me again.
If ...
Working on an intranet where we have about 20 different web apps - some .net, some classic asp.
Currently each .net app is its own solution. There are advantages to this - we can build & deploy just one app, without affecting other apps, and all the apps share a session - but we can't use master pages, and there are real challenges us...
It's been ages since I've written a COM dll. I've made a couple of classes now, that inherit from some COM interfaces, but I want to test it out. I know I have to put a GUID somewhere and then register it with regsvr32, but what are the steps involved?
Edit: Sorry, forgot to mention I'm using C++.
...
I've demanded .NET 3.5 SP1 a la http://stackoverflow.com/questions/88136/will-a-vs2008-setup-project-update-net-3-5-sp1. This makes the setup.exe check correctly.
I've also added a "SP1" launch condition to my MSI so it doesn't let the user install my .NET 3.5SP1 app via launching the MSI (and replaced the [VSDNETMSG] in the Framework ...
Is there any sort of plug-in or tool available for Visual Studio 2008 to alphabetize methods? Ideally I'd like a tool that will alphabetize a selection, or specified type (i.e. only methods, not member variables), either automatically or on-demand.
Thanks!
...
Why does the compiler say "a constant value is required" for the first case...the second case works fine...
switch (definingGroup)
{
case Properties.Settings.Default.OU_HomeOffice:
//do something
break;
case "OU=Home Office":
//do something
break;
default:
break;
}
also trie...
I have a WinForm application built with VS 2008 (C#) and SQL Server Express 2008 that is currently deployed on test users PC.
I have modifications to do on the database structure (add fields, tables, etc.) and I wonder what's the best method to distribute the changes on the users PC (without loosing the users data).
From what I've lear...
In VS2008 it is Tools,Options,Environment,Fonts and Colors, Environment Font,then change default font from automatic to a real font and larger font size. Environment Font is not a setting in VS2005. Looks like older VS versions were Dialogs and Tool Windows (which is no longer in VS2005 or VS2008).
...