projects-and-solutions

MSVC Shared Library Organization

I'm working on a library that is shared accross multiple projects. This library is composed of a number of dlls. I am having difficulty figuring out a reliable way to lay out the project structure. I am using Visual Studio 2005 on WinXP. I've got the library dlls in c:\my_project\library\bin, and the project executable in c:\my_proje...

Multiple Projects, Common Module

I have a library of common functions that I use in several different projects, which works fine on my local machine where I can just add the path to the library, but now that I've put several of my projects on GoogleCode, I'm not sure how to deal with the external library. Do I put copies of it in each project and try to keep them all sy...

Working around "one executable per project" in Visual C# for many small test programs

When working with Visual Studio in general (or Visual C# Express in my particular case), it looks like each project can be configured to produce only one output - e.g. a single executable or a library. I'm working on a project that consists of a shared library and a few application, and I already have one project in my solution for eac...

Any idea to develop a new software ?

Hi everybody, I would like to have any idea to develop a software... from scratch. I would like to deal with a substantial project. Therefore, I am not afraid to be confronted to major difficulties ! Thanks. ...

VS: Separating headers from source files?

I know this is completely subjective, but I'm curious: do you use separate filters for headers and source files in your Visual Studio solutions? Visual Studio creates "Header Files" and "Source Files" filters by default. To me, this dichotomy causes more annoyance than anything else. What's your take on this? ...

How to structure a Visual Studio project for the data access layer

I currently have a project that uses various DB access technologies mainly for showcasing or for demos. Currently we have: Namespace App.Data (App.Data.dll) Folder NHibernate Folder EntityFramework Folder LinqToSql The above structure is ok as we only use Sql Server as the DB. But going forward we will be including Ora...

Explaining your system to a client

I'm currently developing a small Database Management System for a local company. How would you go about explaining how the system you have designed to a client? If they are non-technical and have no understanding of programming, how would you go about showing what the system will do and how it will do it? I guess some sort of visual repr...

Sharing LINQ-to-SQL classes/models between multiple projects in a solution

I have multiple C# projects in a Visual Studio solution right now that will all use the same SQL Server database. What is the proper way to share LINQ-to-SQL classes between projects? I'm considering just copying the dmbl files into each project, but I think that may be too redundant. Is there a better way to approach this? ...

What is the significance of ProjectTypeGuids tag in the visual studio project file

What is the significance of the ProjectTypeGuids tag in a visual studio project?? When I created a WPF application, i am seeing two guids in here. {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Does these represent WPF and Windows type of applications? If I create my own project type (.myproj) that has...

Multiple projects with multiple (different) build configuration in one solution

What is the correct and easy step by step way to have multiple build configurations in the same VS project, where the Solution also contain multiple projects? The projects would have different build configurations. Basically, I'm looking for something like project A with Dll Debug, Dll Release, Static (library) Debug, and Static (library...

Visual Studio (2008) - Which projects reference a particular assembly?

I have a solution with a decent number of projects (say, 30) and I want to find which of these projects reference a particular assembly. Here's a concrete example: In the Object Browser I can see that two different versions of the same assembly are referenced throughout the solution. I want to see which project(s) use each of these ref...

How to share WinForms and code between 2 projects

Hi I have a working Windows Forms app (split into an EXE and a few DLLs). Now I've been asked to look at creating another app (MyAppLite) that has only a very small subset of the functionality. Think of it as similar to MS Word Viewer vs. MS Word. Everything that I need to build MyAppLite is contained in the main solution - essentially...

How do I get path of the Directory inside my WinForm app project

I have a directory named reports inside my winform project in .net. My project name is AccountingReports and inside that Directory reports exists. So i need the way to access this path via code. In Asp.net we use Request.PhysicalApplicationPath property. So is there any method or property exists that will give me the root of my project ...

VS2005 project has dependency that is not built

I have VS2005 solution that contains many projects and dependencies (some C++, some C#) - in the past it compiled successfully. when I rebuild all the solution it fails on a project claiming dll is missing (dll that was needed to built before according to dependency). the thing is that from time to time it fails on random project (not ...

How to find which existing .NET solutions contain a certain project?

I am exploring a structure of folders with C# projects such as the following: Projects ProjectA ProjectB ProjectC ProjectD Scattered around in the same folders as the .csproj files, there are several solution (.sln) files. Is there a fast way to find all the solutions that contain ProjectD.csproj? I can open them one by one and see...

How to add a custom folder to a Sql Server Management Studio 2008 solution?

I would like to add custom folders to a Sql Server Management Studio 2008 solution. Currently only three folders are included: Connections, Queries, and Miscellaneous with no easy way to add or customize this folder layout. ...

Re-add missing project without having to re-add it to all projects referencing it

Lets say you open a .NET solution (mine being VS 2010) after you just moved your entire folder to some new location locally. Now one of the projects that was being referenced in that solution is not there and so when you launch VS, it naturally tells you that the project is missing and therefore as always you see the project greyed out ...

How do I correlate build configurations in dependant vcproj files with different names?

I have a solution file that requires a third party library (open source). The containing solution uses the typical configuration names of "Debug" and "release". The 3rd party one has debug and release configs for both DLL and static libs - their names are not "Debug" and "Release". How do I tell the solution to build the dependency fi...

How to add an existing folder to a Visual Studio project?

I have a web application project made in Visual Studio 2008. Well, I added a jquery folder and added it to source control and other such things. I forgot to add it to the visual studio project though. How do I add the existing folder now? I've tried just creating a new folder and naming it jquery but it gave me a cryptic error "the dire...

How to organize makefiles / solutions etc. in multiplatform projects?

I have a project which can be compiled with Visual Studio, GCC and with some embedded compilers. Sources are shared, but each platform requires separate makefiles, project files, solutions etc. There are two ways I can organize them: Intermixed in a single hierarchy of folders With separate folders for platform-dependent files The fi...