visual-studio

How to fix visual studio 'projects out of date' message each time I run it

I have a visual studio (2005) solution file with 70 projects. Each time I press F5 to run it, it tells me that 4 of the projects are out of date, and asks me if I want to rebuild them. It does this even though I have just done a full build. I understand (in principle) that one of the other projects must update something that these projec...

How can I use a session in an ASP class file?

I'm binding a menu from a database. In the SQL query, I am passing where userid="System.Web.HttpContext.Current.Session["uid"].ToString()" It is working, but for every login it is the same. What can I do, please? ...

Solution Explorer Project Context Menu

Is there a way of adding other options (specifically Add Interface) to the projects right click context menu (Right Click a project > Add > [Class, new Item, new form,...])? I found one option in the customize dialog to place an 'Add Interface...' item in, but this is always disabled. I found that one under the Projects category of menu...

How to Debug the White Screen of Death in ASP.NET MVC

I have recently upgraded my ASP.NET MVC application from beta to version 1. And true enough, after I fixed all the references, I got a white screen of death when I pressed F5. Is there any idea how to debug white screen of death in VS 2008? ...

If you had to create something like ReSharper, where would you start?

If you had to create a plugin like ReSharper for Visual Studio, where would you start? (not talking about each and every feature, but I am trying to just get a skeleton of it going). ...

What are strong named keys for?

In .NET, what are strong named keys for? I read about it before but it just isn't sticking in my head. ...

Will Visual Studio 2010 Beta 1 interfere with my Visual Studio 2008 install?

Possible Duplicate: Will installing Visual Studio 2010 Beta side by side with VS2008 cause problems? I would like to play around with the beta and the new entity framework if possible. Will VS2010 mess around with my Visual Studio 2008 install? I still need VS08 for work. CV ...

Can I export generated html pages from ASP.NET website through Visual Studio?

My friend uses Visual Studio to develop websites in ASP.NET. She only uses the Master Page facility, other than that it's 100% normal HTML and CSS. Is there a way to export the website to HTML pages based upon their master pages? If not, it's either loading each page manually and saving the HTML, or I write a little app that does it. ...

Visual Studio Debugger Not Attaching when at the Root of a website

I am having a problem with my Visual Studio 2008 debugger not attaching to the root of the default website when I run from within the enviroment. I have an .NET 3.5 Web Application project running on VS 2008 SP1. I have set the project to "Use Local IIS Web server" with a path of "http://localhost/". I am able to create the Virtual Di...

Configure Visual Studio to publish the WCF service app on build

I have created a WCF application (the one with .svc file). When I build this project, only bunch of DLLs are created but to be able to host it in IIS, I have to use publish option (right click the project and publish). This generates DLLs, copies app.config and .svc file. This bunch now can be hosted in IIS. I want Visual studio to publ...

Reassociate .SQL files with VS T-SQL Editor

I seem to have lost the association from .sql files to the default VS T-SQL editor. I'm using Visual Studio 2008. When i open a .sql file it opens using a text editor with no syntax highlighting. How do I reassociate all .sql files with the default T-SQL editor while inside Visual Studio? ...

JUnit Max Equivalent Tool for Visual Studio

I have been trying to find a tool similar to JUnit Max for Visual Studio. Preferably, the tool would work with Visual Studio 2008 Professional and NUnit. For those who are apparently unable to click through to the JUnit Max site, here is the description. JUnit Max is a continuous testing plug-in for Eclipse that helps programmers s...

Any good spell checkers for source code?

I am constantly putting typos in my projects (google has officially ruined my spelling). Does anybody know of a plugin for VS or a general spell checker that will check string values that are in quotation marks (double and single), preferably free? ...

Preproccessor ignore

I am migrating from Visual Studio 6 to Visual Studio 2008 and I have a function of a component I am using named SetDefaultPrinter. Unfortunately there is a windows library function now, SetDefaultPrinter, with the same name. And the macro associated with it is getting in the way of me using my function. This is my workaround I have to ...

Visual studio commands don't work. ctrl + f5 doesn't run my application

I used to be able to build and run my console applications by hitting ctrl + f5 in visual studio. This no longer works. I looked everywhere. Does anyone know how to re-enable this command? ...

Disable Visual Studio ASP.Net debug from launching browser

How do I configure Visual Studio to stop launching a broswer window ever time I debug an ASP.NET project? ...

Why are my classes private by default in Visual Studio?

WIen I create a new class file, Visual Studio does not make it public by default. Can I change this? ...

Why does visual studio break the naming convention for methods in C# ?

I know the naming convention for class methods in C# is to begin with a capital letter and each new word is a capital letter (e.g. GetDeviceName). So my question is why when I create a form, place a control on it, then double click the control (for the method to be created automatically for me by the IDE) I get a method begining with a ...

Application-wide Restriction of objects, methods etc.

Hello SO-followers, I have a very theoretical question: Is there a way to ban the use of some methods, objects etc. inside of my application/project map in C#, .Net and/or Visual Studio? To be more specific: I'm developing a DMS System where it should never be possible to delete files from an archive. The archived files are just files ...

Visual Studio thinks my controls are missing, but they're not. "The name xx does not exist in the current context"

When working with an ASP.NET application in Visual Studio 2008, my errors window often contains a list of errors such as; The name 'txtUsername' does not exists in the current context. When I double click on the error, it will go to the source, show the control underlined in red, then realise it's mistake and remove those errors. It'...