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
14
votes
1 answer

What is a .sln.ide file?

I have a Visual Studio 2012 solution /Foobar.sln. It contains one Class Library project and one Unit Test project. A few days ago I noticed a new file /Foobar.sln.ide/graph/Foobar.sln.ide. Contents:
Kendall Frey
  • 43,130
  • 20
  • 110
  • 148
13
votes
2 answers

Reference Web.Config file from another project in same solution C#

I have a VC2010 C# Solution, with a number of projects in it. So for example, I have a web project, and I have a class library. In the web.config file, I have a key in the section, e.g.
109221793
  • 16,477
  • 38
  • 108
  • 160
13
votes
3 answers

'Sync with Active Document' button not working for some files

I use Microsoft Visual Studio Ultimate 2013 and it looks like this button is working in one project (WPF app.) and not working in other project (server app.) within the same solution. Which VS setting did I possibly have broken?
Waldemar Gałęzinowski
  • 1,125
  • 1
  • 10
  • 18
13
votes
1 answer

How to Find What a Project Inherit's It's Additional Include Directories From

I have a project that is directly under the solution, it isn't nested in another project. Yet it has tons of values in it's "Additional Include Directories">"Inherited values": I want to modify these, but where should I look for where these are…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
13
votes
1 answer

Add git submodule as reference to existing solution in VS

Lets say I have a submodule repo: _git/DbModel (only source code indexed. No /bin or /obj folders) And two projects which need DbModel as reference library: _git/TTT _git/TPM I've already added DbModel as submodule via GitBash to both of them git…
Szer
  • 3,426
  • 3
  • 16
  • 36
13
votes
7 answers

How to change name of project in Android Studio

Imported an eclipse project into Android Studio and saved it in a new folder. Changed the package name and everything to new names but the Project's name is still the one from the old project. How do I change the pointed name into something else?
duk3r
  • 1,174
  • 2
  • 12
  • 16
13
votes
6 answers

Should a Visual Studio project be contained in more than one solution?

Note: This is for a shop that works in C++, C++/CLI, and C# with some products being delivered as a combination of all three. We currently have a rule that a project should have one and only one containing solution. The rule was originally instated…
GBegen
  • 6,107
  • 3
  • 31
  • 52
13
votes
3 answers

How do you organise open-source Visual Studio projects with open-source dependencies?

I've started an open source MVC4 project that is using some other open source project as a dependency. I've forked the other project and will be modifying it according to my needs. The problem I'm facing is how to keep these projects depending on…
trailmax
  • 34,305
  • 22
  • 140
  • 234
13
votes
3 answers

Defining Project Paths in a Solution via Macro/Environment Variable

Is there a way to define the project file path in a solution using a user macro/environment variable? I can't seem to do that. Kind of like an environment variable is used to define the additional include directories in a C++ project, except I want…
12
votes
2 answers

How does modular code work in Go?

Not having come from a C/compiled languages background, I'm finding it hard to get to grips with using Go's packages mechanism to create modular code. In Python, to import a module and get access to it's functions and whatnot, it's a simple case…
jeffbr13
  • 652
  • 2
  • 8
  • 13
12
votes
2 answers

Mark or highlight files in Visual Studios Solution Explorer

is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ? I searched the Visual Studio Gallery but didn't find anything. Thanks!
Tobias Diez
  • 251
  • 3
  • 10
12
votes
6 answers

Suggestions for maintaining Visual Studio vcproj project files in version control

Microsoft Visual Studio uses XML to save its .vcproj project files. So diffing XML project files should be easily. Unfortunately, if you change any of the project file's properties, Visual Studio insists on randomly shuffling the XML nodes of the…
12
votes
4 answers

How to add all projects to a single solution with dotnet sln?

Following examples from here I'm trying to execute dotnet sln AllProjects.sln add **/*.csproj But I get this error: Could not find project or directory **/*.csproj. Looks like wildcards are not working. What am I doing wrong?
astef
  • 8,575
  • 4
  • 56
  • 95
12
votes
6 answers

Developing a Robocode type game with .Net, for a School Assignment

I am currently in my final year at school, studying for a Higher National Diploma in Computer Studies, and basically in this final semester, we need to develop a Software Project, that basically incorporates a whole system. Now, what I'm thinking…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
12
votes
2 answers

No build menu in Visual Studio when opening an existing cpp file

I am new to Visual Studio. I just followed a tutorial and successfully wrote and ran a simple program. But after I closed Visual Studio and double click the cpp file I just wrote. I can't find the build menu in the Visual Studio. Could anyone tell…
jason
  • 123
  • 1
  • 1
  • 5