projects-and-solutions

Is there a systematic approach to avoid the 3 pitfalls(below) of software solutions ?

Developing software solutions which already exist and are available for re-use (either commercial or open-source). AKA "re-inventing the wheel". Same as above, but your solution being broken. AKA "re-inventing the square wheel". Developing solutions for problems which do not exist. Again, I'm interested in a more formal approach, e.g....

What is the best way to discover an existing project?

Hi, recently I was given the task to discover a C# solution I have never seen before, and give suggestions on refactoring it. I think I will use NDepend (for the first time ever) to see the overall picture, and also to check a lot of code metrics to figure out what could be refactored. NDepend is pretty good at showing the structure of ...

How do I rename a Project Folder from within Visual Studio?

Hi, My current solution for renaming the project folder is: Remove the project from the solution. Rename the folder outside Visual Studio. Re-add the project to the solution. Is there a better way? ...

How do you create a Visual Studio Solution File (.sln) in the same directory as the web project?

I'm using VisualSVN client and server and one of the requirements for web projects to work as expected is to have the .sln in the same directory (root) as the other files. I thought it was as simple as removing all the extra parent paths ../ and other relative paths and saving it. However when I try to open it just locks up Visual Studi...

Add files to a VS.Net solution/project from Vim

Pretty much what the title says. Is there a way to add files to a vsnet project from inside Vim? I work in a group of devs, and all of our code has solutions and projects as you would expect. I would like to use Vim, and was hoping for a way to maintain those project files when I added or removed files without having to go into vsnet. ...

How do you organize your version control repository?

First, I know about this: http://stackoverflow.com/questions/51217/how-would-you-organize-a-subversion-repository-for-in-house-software-projects Next, the actual question: My team is restructuring our repository and I'm looking for hints on how to organize it. (SVN in this case). Here's what we came up with. We have one repository, multi...

How to use VisualSVN with a solution shared between VS 2005 and VS 2008?

Hi, After looking at other questions related to sharing solutions between VS 2005 and VS 2008 it seems that the way to go is to have two solution files (one for VS 2005 and one for VS 2008). However, if the solution is under source control (VisualSVN in our case), how would we maintain two solution files and not keep overwriting one ...

How to set a default configuration in a Visual Studio Solution File?

Hi All, In VS2005 and up, is it possible to specify which configuration should be selected by default? I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right solution (unless of course they specifically choose anoth...

Is there a tool that will generate Visual Studio 2008 projects?

Does anyone know of an application that meets the following criteria? I'd like to use a GUI tool to generate a batch of related Visual Studio 2008 projects. For example, I know that I'll need a solution file, a web project for my UI, a class library for my business objects, and a class library for my data access layer. I'd like to use a...

[TFS/VisualStudio] Is there a way to prevent Visual Studio from automatically adding from obj/Debug to the changeset?

For some solutions, when I open them Visual Studio will get files that aren't in the project (particularly from obj/Debug) and add it to the changeset and I always have to perform a Undo Pending Changes operation on them. It's annoying. Is there any way to prevent Visual Studio from behaving in this way? ...

where would report generation code go . .

I have a visual studio solution with the following projects: UI DataAccess BusiessLogic BusinessObjects I now have a bunch of code that generates reports that are sent out via email or saved as csv files. These ReportGenerators classes take in business objects and output either files or strings. which project would you put them in?...

Directory structure with commands . .

I have a winforms projects and we use the command pattern. We are trying to clean up our directory structure and make it consistent. We are trying to decide if we should have a root commands folder or not. What do you think is better for a directory structure? Project --Commands ----AddCommand ----SubtractCommand ----InsertCommand ---...

Class bucketing . . .

Ok, so i have been trying to put everyone one of my classes in some root folder, either: UI BusinessLogic DataAccess BusinessObjects Interfaces i have a few more where i can't seem to bucket very well so i am looking for suggestions A Cache class that maintains a private dictionary and allows different access to objects based on so...

Disable drag&drop in solution explorer

Is there a way to disable the drag&drop functionality for Solution Explorer? Why would you ask? I'm using an wacom pen tablet for quite some years and I love it. But when you use it in solution explorer in combination with a source control like TFS or AnkhSvn it's a disaster when you accidentally move a file into an different directory...

Best way of sharing/managing our internal python library between applications

Our company (xyz) is moving a lot of our Flash code to Python. In Flash, we have a shared library between our Flash apps - package xyz. We can make changes to the package without fear of breaking other apps when they are deployed because Flash compiles their code and includes the contents of the library. We deploy the final SWF via RPM,...

How do you only build a file's project using Visual Studio's Command Window?

I have a .NET solution with multiple projects. Once I finish editing a file, my preference would be to only build the project that the file belongs to but not build any of the other projects. From the menu, the following option does exactly what I want: Build -> Build [MY PROJECT NAME] However, I would like to call that action from V...

C# single project organization

I am reorganizing my source files into a single solution with a single project, due to various reasons: a paranoic configured antivirus software; Advices on partitioning code through .NET assemblies Control component dependencies to gain clean architecture Benefit from the C# and VB.NET compilers perf This leaves me with many namespa...

Best tactics for managing end of project with large Team

Our current project has a large team, and we have come near the end of the project Like most end of projects, dozens of dependencies are popping up - everyone is waiting on someone else to complete a task. What is the best strategy for dealing with this. I have thought of scaling the size of the team down, so the depenencies can be don...

Output library project XML to asp.net bin folder on build?

I have a visual studio 2005 solution which has a web application and a class library project. The web application has a reference to the library project. I'd like the library project's code documentation XML to output to the web application's bin folder, along with the library's DLL. I can't seem to find any easy way of doing this. ...

Building both DLL and static libs from the same project

I have a number of native C++ libraries (Win32, without MFC) compiling under Visual Studio 2005, and used in a number of solutions. I'd like to be able to choose to compile and link them as either static libraries or DLLs, depending on the needs of the particular solution in which I'm using them. What's the best way to do this? I've...