All Questions
Tagged with solution projects-and-solutions
39 questions
1
vote
0
answers
142
views
How to manually order libraries in a VisualStudio solution?
I have a VisualStudio 2022 solution with multiple libraries in it.
I'm using common application layers (DAL, Business, Presentation).
Right now this is what it looks like in the solution explorer.
...
0
votes
1
answer
253
views
Share C# class and static variables in VB.NET insde the same solution
I want to share code from a C# project inside a VB.Net project.
I want to refer a public class and its variables inside VB.
So I've put both VB and C# project inside the same solution.
Here is the ...
6
votes
3
answers
6k
views
How to use a C# class in many projects inside the same solution?
I'm learning C# and I don't know exactly how to make a class visible to all projects inside the Solution.
Basically I have many projects, all Windows Forms, all of them have some similarity, so they ...
0
votes
0
answers
484
views
How to know whether solution build in debug or release mode using .sln file?
I have .sln file and I want to know whether the projects of that solution built in debug or release mode using .sln file.
Is there any way to find the mode?
Thanks in advance!
1
vote
1
answer
885
views
Post Build Script
I using VS2017 for my solution.
I have a main repository in bitbucket (say directory name is A) and few dependencies in the form of Subtree (this is inside A folder and other subfolder say B).
I ...
2
votes
2
answers
3k
views
Visual Studio: create multiple projects under same solution?
I would create a Visual Studio C solution, with this kind of structure under a parent directory:
Parent/
|
|- SolutionName.sln
|
|- Project1/
| |
| |-src/
| |
| |- main1.c
|
|- ...
15
votes
5
answers
13k
views
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 ...
0
votes
0
answers
285
views
How to open Visual Studio solutions without loading any projects - By Default
Every time I open a solution for the first time (we have many TFS branches), I have to wait quite a long time for all the projects to load, old projects to migrate, and the big database projects to ...
0
votes
1
answer
864
views
Multi-project setup with Nuget Packages
I have a visual studio solution that has two sub-projects, and these sub-project's use the same nuget packages. I have many years experience with C++ projects, but I am still relatively new to the ....
3
votes
0
answers
346
views
Have to set startup project every time in visual studio
I have to set start up project every time I open this solution.
We have total five projects in one solution. Three of them are websites, one is MVC project and the other one is class library. There ...
1
vote
0
answers
139
views
Where does Visual Studio 2008 store bookmarks and batch build selection for a C++ solution?
I often move my Visual Studio 2008 C++ solutions from computer to computer. I wrote a small batch script that "cleans up" the following temp files before I zip all files. I do it to speed up the zip'...
1
vote
0
answers
41
views
.Net: how to keep references to "grandparent" projects lean and clean?
It seems that I came across some
Imagine a .net solution (in MSVS wording) (C#, webapi, mvc in my case, but I think it should not matter) with plenty of projects, organized as:
p1 -- class library
...
0
votes
1
answer
86
views
Trying to understand the default behaviour of "projects" in global.json in VS
After creating a new project (example is in .net core) the global.json of the solution looks like that
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
And ...
0
votes
1
answer
740
views
What is the correct way to output compiled target in a different folder than dependencies DLLs?
I have a Visual Studio solution file with a few projects (mostly C++),
most of them are configured in a pretty standard way, with Output directory set to a "bin" directory.
Some of them need their ...
0
votes
0
answers
30
views
How do projects work differently than solutions
I a have a Visual Studio 2015 Solution "S1" and in it contains one project "DAL". If I open the solution in VS it opens correctly, and all of my references are known. I can add a second Project to ...
6
votes
3
answers
7k
views
NuGet Configuration File for Solution VS2015 (NuGet 3.4+)
Okay this might sound a duplicated question, but regarding my searches it is not.
I have been looking for a proper way to configure a specific nuget package source (url) in my solution that ...
2
votes
0
answers
35
views
Visual Studio 2010 project references
In my project we have some references defined to a subproject. I have some problems with that, because I'm not sure what thhis reference is supposed to be. Normally I would have created abuild ...
18
votes
5
answers
4k
views
Which projects in my solution are using a project reference for a certain project?
In my solution, I have a lot of projects which use project references to other projects in the solution. How do I figure out which projects reference a particular project?
2
votes
1
answer
169
views
In a large Visual Studio solution, how can I quickly identify the projects with build events?
I have a fairly large Visual Studio solution (> 30 projects). Every time I start a debugging session, the whole solution is recompiled. I vaguely remember that one of the projects has some xcopy post-...
0
votes
3
answers
91
views
Can I apply attributes to object fields dynamically?
I am working on a project, that will serialize/store objects in CSV files. (Yes I am aware that this is not the best practice, but it's a must.)
I'm trying to keep my solution clean, so I have ...
3
votes
1
answer
865
views
Why add a project to a solution rather than a folder?
I'm encountering a weird solution structure in my company—the different layers of the application are organized in folders (instead of in projects).
For instance, there are folders within the ...
0
votes
1
answer
4k
views
Why is my Interface not being found?
I'm getting, "The type or namespace name 'INRBQDeliveryRepository' could not be found (are you missing a using directive or an assembly reference?)" here:
public class DeliveryController : ...
3
votes
1
answer
2k
views
Where does Visual Studio save pre/post build scripts?
The pre-build and post-build events can be added from the properties window of a visual studio project inside the IDE. But where are these scripts stored ? I need to check-in these scripts to our tfs ...
0
votes
1
answer
24
views
Is there a workflow where projects are source controlled when working with Visual Studio?
Assume I have a solution called "My Program", a project under it called "My Program Lib" and a second project called "My Program Client".
Does Visual Studio support a workflow where I can check "My ...
2
votes
1
answer
90
views
Changing location of referenced project in VS solution
I use Team Foundation Server for source control. All of my projects use a structure that have dev, main, and release branches.
For the purposes of this question, I have 2 TFS projects, one is my ...
2
votes
1
answer
443
views
TFS organization in large companies (TFS 2012)
everyone
I want sugestions about that scenario:
50 persons working in a large e-commerce portal. About 35 devs, 10 QAs, 5 managers, or anything like this. Those devs are divided in teams with ...
7
votes
2
answers
32k
views
How to delete a test project in visual studio? [closed]
Lately I had a problem (Could not load type '...' from assembly '...') with my test project (unit-test in Visual Studio 2010), so I tried (after looking for solutions here) deleting it and rewriting ...
2
votes
1
answer
5k
views
C# Test Assembly
I am new to C# and am having a particularly difficult time figuring out how test assemblies work. This is my Solution directory (with a single project MyProject inside of it):
MySolution/...
67
votes
10
answers
82k
views
Visual Studio 2012 doesn't convert vs2010 solution?
I opened my vs2010 solution with vs2012 but it didn't make any conversion as from 2008 to 2010 was happening. So my solution still remains the same as 10 label on it. when I make a new solution of ...
33
votes
4
answers
45k
views
How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project?
As I compare many C# example projects to my VB.NET projects, I see that the References folder shows in the Solution Explorer without having to select "Show All Files". Is it possible to have ...
5
votes
4
answers
4k
views
How to organize a large project with solutions/projects/folders?
We are working on a very large VS project.
We want the project structure to "hint" developers on the logical components and design.
For this purpose, which is best:
One project with many subfolders ...
1
vote
2
answers
1k
views
Opening a Visual Studio 2008 sln file creates a Visual Studio folder
this sounds simple but drives me nuts.
I am on Windows 7 and have VS TS 2008 SP1. When I open a solution file it always creates a 'Visual Studio 2008' folder in the same directory. Then SVN etc ...
1
vote
1
answer
179
views
How to include a project in a solution but have it unloaded by default?
Is this possible to configure in the SLN file, or just in the SUO?
7
votes
1
answer
7k
views
Platform configuration for projects in VS 2010
I have a third-party project type in Visual Studio which for some reason only supports the .NET Platform configuration for the build, for all other (standard C#) projects in the solution I only have ...
4
votes
3
answers
2k
views
Is there a suggested solution structure for ASP.NET MVC Production Apps
In general, I don't like to keep code (BaseClasses or DataAccess Code) in the App_Code directory of an ASP.NET Site. I'll usually pull this stuff out into a MySite.BusinessLogic & MySite....
138
votes
10
answers
69k
views
Visual Studio Project vs. Solution
Being new to VS, how may I think of these two concepts, what is the difference?
0
votes
4
answers
2k
views
is it possible to generate Visual Studio solution files using StylusStudio?
i was wondering if it is possible to generate some kind of template that i give an xml or xsl file in stylus and generate c# code
i made some .cs and works fine, but i couldn't with csproj and sln ...
2
votes
2
answers
459
views
How should SharePoint Visual Studio projects that share each other's code be managed?
My SharePoint Visual Studio solution structure currently contains these projects:
Common: contains extension methods, helpers, frequently used controls, etc.
Logging: would normally be included in ...
23
votes
13
answers
13k
views
Recommended number of projects in Visual Studio Solution
We are starting to develop new application that will include something like 30-50 projects developed by about dozen of developers with C# in MS Visual Studio.
I am working on componentize the ...