projects-and-solutions

How do you share external dependencies between Visual Studio solutions?

I have a Java background so I’m used to having Maven handle all problem around downloading and keeping dependencies up to date. But in the .NET environment I have not yet found a good way to manage all these external dependencies. The main problem here is that I mass produce solutions and they all tend to depend on the same third party...

How to create uninstaller in visual studio setup project?

I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that?? I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller. ...

Conditionally (un-)load projects from solution to support multi-user environments with different prerequisites

Imagine you have two projects each featuring a different project type that requires specific tools (compiler, targets, etc...) being available on your machine. You put both projects into one solution and have all prereq's fulfilled. So far no problem. Everything builds perfectly. Now you have a couple of guys who don't have Toolset B e...

How should I "optionally" reference a Class Library project in another .NET project?

OK, so I have a .NET project that uses plugins. The plugins are implemented as Class Library (DLL) projects that each build in their own folders. The main project doesn't require the plugin DLLs to run, but if they are available, they are used for various optional functionality. Classes from the plugins are loaded by Type.GetType(). ...

VS2008: Where is the Startup Project setting stored for a solution?

When I right-click my solution in the Solution Explorer and choose Properties I get a dialog where I can select the Startup Project. I sometimes select Current selection (If it is an experimental solution with lots of projects I jump between), but most often it is a Single startup project selected, which would usually be the main WinFor...

How to remove duplicate entries from visual studio web project?

I am working in a large team with multiple branches and merges happening on a regular basis. One thing that happens on regular basis is that web project files end up with duplicate entries for static content (.js, favicon.ico etc...). I have two methods to removing the duplicates: Delete the item in the Project Explorer (which remove...

MSBuild - Project Templates - For non-.NET projects in VS2008

How would you got about setting up a project that doesn't really build, but just runs some commands on the files you are working with. For example, lets say I wanted to setup a project for creating Windows Vista and Windows 7 gadgets. A gadget is nothing more than some html, images, javascript, xml, css, put into a .zip file and then r...

How to access selected project in Solution Explorer from a Visual Studio Add-In?

I developed a VS 2008 add-in and added a custom menu item to context menu for "Project" nodes in Solution Explorer. This allows me to right-click any project in solution and perform a custom operation on that project. Or at least, it would, if I knew how to access the selected project from my Click event handler. Can someone with more ...

Going from <solution> to <exec program=msbuild> in NAnt

I've converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt's tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly. Here is what I have for .NET 1.1: <solution solutionfile="MyApp.sln" configuration="ServerDebug" outputdir="MyApp\bin\ServerDebug"> <assemblyfold...

Big solution, many solution configurations, adding a new project

We seem to have an annoying issue with Visual Studio, we have a pretty big solution consisting of lots of projects, and over 20 solution configurations. Whenever we add a new project to the solution, it comes off as 'buildable' in all of the pre-existing solution configurations. It then becomes tedious to go through all of them and unch...

Visual Studio 2008 C++ language support?

I've been developing a couple of C# tools recently, but primarily working with a lot of legacy Visual Basic 6.0 code (I know, I know...). For the C# development, I've been using Visual Studio 2008 Professional edition that I downloaded using our MSDN subscription here at work. But, as a change of pace over the weekend, I was going t...

install application for all users using vs2005 setup project

How do i install application for all users using vs2005 setup project, i have enabled install all users property in setup project to true, but there is no impact after installation. my application not loaded in other user accounts (shows an error message). ...

Compiling and deploying assemblies that are used as references for other projects.

Okay so here is my situation: Project A is in solution A, lets call it's output a.dll. Project B is in solution B, lets call it's output b.exe. Project B references a.dll Both solutions are under source code control in different repositories. My question is: how can i assure that Project A's output gets redirected to project B's "Ex...

Use a separate WCF project with Silverlight

I am working on a Silverlight application that uses WCF. I need to have my WCF project separate from the ASP.Net application that will host my Silverlight project. I am looking for some guidance on how I should organize my solution and list gotchas other people have experienced during debugging and deployment. Specifically my questions ...

run a specific project in visual studio 2005

i have 12 projects in my solution including setup project. i set one project as startup project. it builds all project first then run my project, it takes too much time while i am debugging. the start up project, i set has no dependancy. why it builds all project and how to run specific project ...

both project dependencies and link-against-binary available in same VS2008 solution?

Hi, In Visual Studio 2008, I have a c# app, that depends on multiple other projects. I want to deploy to customers: 1) binaries only - I use an installer project for that 2) binaries only, but the top level app as source code (for customer's integration purposes) For 1) I need the app project to have dependencies on the other projects ...

Is it possible to run an ASP.NET project and an ASP.NET MVC project side-by-site on the same website?

I have an existing ASP.NET website with some custom routing, within a Solution that also contains Business Logic projects. I want to create a new project within the Solution, which is an ASP.NET MVC website. This website will also call the Business logic, and the ultimate aim is to port most of the code from ASP.NET to ASP.NET MVC. Bu...

Possible to create Visual Studio project with Output Type of "none"?

I'm using Visual Studio 2008 and would like to create a sort of container project that holds a number of DLL's that must be installed with a solution. I want them to be in a separate project so that they can be easily attached to a solution as a group. I created an empty project call TEST, added my DLL's to it with a Build Action of "Co...

WCF - VS2005 to VS2008 Sln Conversion Problem

I have converted a VS2005 solution to VS2008 solution. I am trying to Add a Service Reference to a project in the solution but not finding the desired option in the Right click -> Popup Menu. I am not trying to add a Web Reference. I am trying to add a Service Reference. I am working with a WCF Client. ...

Multiple usercontrol projects in MSVS08

Hello everybody, I'm rather new to C# development so that's why I ask that question: I have several projects in my solution. Most of them are UserControls. Some of them depends on mine other UC projects (included in the solution). For the sake of simplicity let's say the dependecies of projects are like that: A->B->C A is a main app., ...