Questions tagged [projects-and-solutions]

Some IDEs organize code and resources into projects and solutions, usually in a directory-based hierarchy. This can also be done manually.

1354 questions
12
votes
6 answers

How do I remove a project reference from a website project in Visual Studio?

So, if I have website project Foo which has a reference to class library project Bar, how do I remove that reference?
David
  • 15,750
  • 22
  • 90
  • 150
12
votes
5 answers

Keeping all Visual Studio projects in sync with a library

Scenario I have a Library that contains Projects A, B, and C. I have two solutions. Solution 1 includes a copy of Project A, and Solution 2 includes a copy of Projects A and B. When I build Solution 1, here's what should happen: When I build…
devuxer
  • 41,681
  • 47
  • 180
  • 292
12
votes
0 answers

Meaning of SccNumberOfProjects in a Visual Studio Solution

I'm comparing two solution files and I find a strange difference between them. They both build properly, and source control seems to work. I'd like to believe that I'm seeing a difference that makes no difference, but I need some help convincing…
John Saunders
  • 160,644
  • 26
  • 247
  • 397
11
votes
7 answers

What is the best practice for sharing a Visual Studio Project (assembly) among solutions

Suppose I have a project "MyFramework" that has some code, which is used across quite a few solutions. Each solution has its own source control management (SVN). MyFramework is an internal product and doesn't have a formal release schedule, and…
Kyle West
  • 8,934
  • 13
  • 65
  • 97
11
votes
2 answers

msbuild SLN and still get separate project outputs?

I have a normal SLN file, and I'm compiling it fine with msbuild from the command line. I do this: C:\slndir> msbuild /p:OutDir=C:\slnbin\ And it dumps everything into C:\slnbin, except for websites, which get deployed to…
MichaelGG
  • 9,976
  • 1
  • 39
  • 82
11
votes
9 answers

Linker errors between multiple projects in Visual C++

I have a solution with multiple projects. I have a "main" project, which acts as a menu and from there, the user can access any of the other projects. On this main project, I get linker errors for every function called. How do I avoid these linker…
rlbond
  • 65,341
  • 56
  • 178
  • 228
11
votes
2 answers

Clean solution (project) structure with EF, Repositories, Entities

I like to keep the structure of the project as clean as possible. Sample: --BlogApp.sln --BlogApp.Data BlogModel.edmx (the EF mappings) Post.cs (I end up having partial classes in here with attributes) --BlogApp.Domain …
11
votes
4 answers

Changing the "debugging / working directory" globally (not per-user) in VS2008

I have a C++ solution in VS2008 with multiple projects. This solution contains files that are needed at runtime, which are loaded according to a path relative to the solution directory (e.g. "Testing/data/" + "dataN.bin"). In order for this solution…
scooz
  • 828
  • 2
  • 7
  • 24
11
votes
5 answers

TFS error: item has pending changes but does not exist locally

The following TFS error occurs using Visual Studio 2013 to interface to TFS (TFS apparently also carries the version of Visual Studio with it): item has pending changes but does not exist locally This seems very wrong, as one chief purpose of TFS is…
JosephDoggie
  • 1,514
  • 4
  • 27
  • 57
11
votes
1 answer

Can Conditional compilation symbols be added to csproj.user file?

I'm working in VS 2013 with a C# Xamarin iOS project. I would like to add a Conditional compilation symbol without effecting anyone else or having to go into Configuration Manager and say copying Debug (primarily so that if someone modifies Debug I…
11
votes
3 answers

What's the industry standard way to organize Visual Studio projects and code for .NET Cross-platform development

I have a rather large solution of C# projects in Visual Studio. I want to port some of those projects to work in MONO and to run say on a MAC. Of course some things don't work and some things I don't want to port because they are not applicable on a…
Mark
  • 5,223
  • 11
  • 51
  • 81
11
votes
8 answers

How do you add new projects to a Visual Studio Solutions file?

I want to know how we can add projects in single solution file. When I create the solution and try to add projects in it, the solution file is not visible. How can I add projects/websites to the solution file?
Vijjendra
  • 24,223
  • 12
  • 60
  • 92
11
votes
2 answers

Organization of files in Code Blocks

I am currently working on a medium/large project on Code::Blocks and I am wondering how to organize my files. First, it seems that creating "virtual folders" in Code::Blocks is quite natural but then on disk, all files are in the root folder of the…
Bérenger
  • 2,678
  • 2
  • 21
  • 42
10
votes
1 answer

How do you move an Xcode 4.2 project file to another folder?

Not crazy about the way Xcode 4.2 has laid out the files on disk. It creates a project file, then a single subfolder next to it that has all the code. We want the project file to be in that same folder, then the workspace file (if any) to be the…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
10
votes
2 answers

How to override VS2010's automatic folder->namespace mapping in new cs files

Projects are often broken down into folders, and those folders are typically expected to map to code namespaces. However, in many of my core projects I have classes that I have merged into existing namespaces - for example I have an MVC reference…
Andras Zoltan
  • 41,961
  • 13
  • 104
  • 160