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.
1,338
questions
0
votes
1
answer
36
views
Modifiable Python application architecture
I develop an application in Python, but I want to make it so that other users can later modify its functionality with their extensions, but I do not know how to organize the architecture of the ...
1
vote
0
answers
35
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
23
views
how to fully rename all folders and files of a visual studio project?
So I copied a project, and change the name at every place I could find, but at one place I cant change the name without destroying the project.
So in the folder "TestName" I got another ...
0
votes
0
answers
13
views
What is the overhead of having many projects in solution
Scenario:
Let's say I have a project, that I would like to split to 3 subdomains and each to 3 layers.
That's 9 project instead of one, but the overall amount of code does not change.
Question
Can you ...
0
votes
1
answer
67
views
.netstandard 2.0 project Always compiles to AnyCPU
We have a large solution with many projects. We are moving from .NET4.8 to .NET6 (eventually). To get started, we are changing some projects to .NetStandard2.0.
Our first test is to modify one ...
0
votes
0
answers
32
views
Include MsBuild files in multi-repo solution
I would like to add some MsBuild files, which are in different Git repositories, but are always built at the same time, to a common Visual Studio solution. In VS2022, support for multi-repo solutions ...
0
votes
1
answer
89
views
VS2019 copy project within solution to use as starting point for new project
Hi I have a VS2019 solution that contains multiple projects, some are class libraries and some are commandline apps
I want to start a new commandline app but would like to base it on an existing app ...
-2
votes
1
answer
168
views
Copy/clone an entire WPF solution& project and use it under another name
I have a WPF solution & project(written in Visual Studio2019) that I would like to use under another name.
On the other words, I have a project like( EXAMPLE_A ) that I would like to use on my ...
1
vote
1
answer
215
views
Visual Studio 2022 ignores BaseIntermediateOutputPath property specified in project files
I have a solution containing a large number of projects.
To separate binaries from the sources, I changed BaseOutputPath to "..\bin" and BaseIntermediateOutputPath property in all projects ...
0
votes
1
answer
52
views
Can't read database name web project
Trying to read the database name but it's not working in the site. Using an asp.net web project with a solution file. I put this in the web.config. This will change depending on development database ...
2
votes
1
answer
330
views
Where does the $(WixTargetsPath) property get set for this .wixproj file?
I am new to project files and was doing some investigating today to try and understand the .wixproj file that was automatically generated using VS2019 WiX project template. I was able to understand ...
0
votes
0
answers
24
views
CALL RECORDING the app using record method, and it start while calling, but the app actually start working without the record method
CALL RECORDING ,the app using record method, and it start while calling, but the app actually start working without the record method.when u have a call the bubble button it actually showing on screen ...
0
votes
1
answer
528
views
Reference Web API appsettings.json file in console app project in the same solution - issue with dotnet run
I have a .net 5 ASP.NET Core Web API and a console app in one Visual Studio solution. I have an appsettings.json file in my API's host project, which file I want to reference in my console app. The ...
0
votes
1
answer
211
views
Access $(VCToolsInstallDir) from a non CPP project
I have a WiX project and need to call editbin.exe to change the stack size on an executable.
I am working in VS2017 and have the component "VC++ 2017 version 15.9 v14.16 latest v141 tools" ...
0
votes
1
answer
121
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 ...
-1
votes
1
answer
803
views
How do you initialize a bitmap in kotlin(android)?
Here's my code:
class Result : AppCompatActivity() {
private lateinit var select_image_button : Button
private lateinit var capture_image: Button
private lateinit var make_prediction ...
0
votes
1
answer
99
views
C# projects in a solution now displaying as F#
Using the dotnet cli interface in a VS Code Terminal. I have created a blank solution file, a blank project file and added the project to the new solution. Now when I open the folder it opens a F# ...
2
votes
2
answers
323
views
Typescript NodeJs solution split into multiple projects
I want to develop a typescript nodejs solution split into 3 sub project like a csharp solution split into multiple libraries.
I want that each of them has its own pacakge.json
UI project
package.json
...
0
votes
1
answer
375
views
How to create a configuration file (json) for the entire solution in visual studio?
I have a solution with many projects; I would like to have a shared configuration (for example all have the same connection string).
During deployment I don't want to make the same modifications in 10 ...
0
votes
1
answer
84
views
Change Visual Studio project property Start action to "Don't open page" in several projects
When I first download our solution from the version control server, I need to set every project Start action property manually. I would like to know if there is any 'unattended' way to do this. I don'...
0
votes
0
answers
89
views
Outdated React Native Project
I posted this question yesterday, but apparently worded it badly, so I'm trying again.
I'm working on a project that had been closed for a couple of years and reopened. During that time, a large ...
0
votes
1
answer
41
views
Can a file name of a .vxproj be used as a variable within the file itself?
My intention is to use the file-name as Projectname:
So I do have (for example) a vs project-file:
"MyAwesomeProject.vxproj"
And I would like to use it (for example) this way:
<...
4
votes
1
answer
2k
views
Incompatible project type .deployproj (Visual Studio 2019)
I have a solution that contains a .deployproj type of project. It seems that Visual Studio 2019 is not able to load that project. The detailed error message is the following:
Unsupported
This version ...
1
vote
2
answers
111
views
Solution repo structure -VS Azure functions
Im developing 3 Azure Functions called EmployeeAPI, StudentAPI, ProjectsAPI all of which is accessing the same SQL database. I was instructed to make sure that each of projects are deployed separately ...
0
votes
1
answer
217
views
Missing Packages after Upload in Team Foundation Server (TFS)
I created two Visual Studio Solutions S1 and S2, which both include a main project P1 and P2, and two external projects X and Y, which S1 and S2 share. So my setup looks like this:
Solution S1
- ...
0
votes
1
answer
54
views
How to avoid copying referenced assemblies with new PackageReference xml tag in csproj
In C# project (SDK based project) I have following xml tag:
<ItemGroup>
<PackageReference Include="log4net" Version="2.0.8" />
</ItemGroup>
When building ...
0
votes
1
answer
106
views
How to change default project build options?
How I could change this option to default: release x64?
I have my source on a folder and i have it as Release x64, but when i make a copy of this folder and open the project from this copied folder ...
11
votes
0
answers
9k
views
Microservices naming convention with API and background workers (MessageBus/ScheduledTasks)
To expand on this existing question Microservices: Worker roles, APIs or both?:
I have seen mixed examples of Microservices implemented as worker
roles processing requests off a queue and/or as APIs (...
0
votes
0
answers
36
views
Meaning of project files icons in Android Studio
In Android Studio, in the Project list of files, what is the difference between these 2 icons :
and also between these 2 icons :
Thank you
1
vote
3
answers
579
views
C# use class from another project - add reference
I have a problem with my solution in C#.
Inside the solution I have 2 projects, Project1 and Project2. I have a problem because in Project1 I use functions that are within Project2 so I need to ...
0
votes
1
answer
182
views
Filter and Sort Projects in Visual Studio 2019 For Better Management Of Multiple Startup Projects
My team works on a solution in Visual Studio 2019. The solution contains many dozens of projects. We do use solution filters, but there are occasions where it is more convenient overall to load the ...
0
votes
1
answer
49
views
C# Project reference mystery
Evening all; I've been given the task of preparing our codebase for migration to git. As part of those preparations, I've been removing redundant code and replacing references to checked-in DLL's with ...
0
votes
0
answers
87
views
Get all references of C# projects
For a given project, I want to get all references to assembly locations (assembly references, Nuget Package references and its nested references, Project references and its nested references).
Is ...
0
votes
1
answer
820
views
How to find TargetPath/executable path of a project using .sln and .proj file?
I have .sln file and proj file.
Is there any way to find the TargetPath or Exectable file path of a project under a solution using .sln and .proj (example: .csproj, .wixproj, .vbproj etc) file?
0
votes
0
answers
221
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!
0
votes
1
answer
3k
views
Get nuget package version included in csproj in .Net Core 3.1
In plain words I want to be able to modify .csproj files programmatically.
I am developing an application that replaces a nuget package with its actual project reference. This is application is used ...
0
votes
2
answers
288
views
Visual studio to override file on selected build configuration
at the moment my project has a license file. No extension attached to the file. The file itself only contains a key.
I have 3 build configuration
Dev
Stage
Prod
At the moment I have 4 license file....
0
votes
1
answer
240
views
Lost my project folder after updating Android Studio 3.0.2 to 3.6.1, how can I recover it?
I have updated my Android Studio version from 3.0.2 to 3.6.1 and during the update, it asks me to delete old files like .AndroidStudio2.1 .AndroidStudio2.2 .AndroidStudio2.3 .AndroidStudio3.1 ....
0
votes
1
answer
329
views
directory.build.props : Link external content files stored in multi-level folder into .csproj correctly
After spending a couple of days, I am here to seek help.
Here is the situation - Due to increasing the size of the git repository, our builds are taking too much time. Most of the time spent is in ...
0
votes
1
answer
342
views
Copy the cell format from .xlsx file using Spreadsheett::ParseXLSX to write another cell using EXCEL:WRITER::XLSX?
Please check the code below. if I remove the $format from the last line to $sheet_write->write($row, $col,$cell -> value) then it works fine.
I am declaring to add the format in excel_2 spreadsheet ...
3
votes
1
answer
112
views
Can project files like the ones with extension .csproj have other formats than XML?
When we build a C# project in Visual Studio, a file with extension .csproj is created, which lists the contents of the project and configures how it should be built. It's said that a .csproj file has ...
0
votes
1
answer
339
views
Visual Studio C++ Project File CustomBuild Task: Filter OutputItemType by File Extension
I have defined a custom build step in a Visual Studio 2019 C++ project file (.vcxproj) that generates .h and .cc files. There is a Custom Build Tool option entitled "Add Outputs to Item Type", where ...
4
votes
2
answers
2k
views
Stop Visual Studio 2019 from automatically adding files in project folder
I have a .NET Core 3 project in Visual Studio 2019. When I copy and paste a file, through Windows Explorer, into the project folder, Visual Studio automatically includes the file into my project, ...
2
votes
1
answer
470
views
Is there a Visual Studio 2019 way to combine solutions?
It used to be that when I would go to the open project/solution dialog, I would get:
But now in VS 2019, these options are gone. How do I perform this same task in 2019 (dump all the projects from ...
3
votes
1
answer
2k
views
Recompiling an ASP.NET Core Application in Rider without repeatedly rerunning it
I'm working on an ASP.NET Core MVC application in Rider in which I'm frequently editing the code and as a result having to repeatedly manually stop and start the application, which is highly ...
0
votes
1
answer
167
views
Insert Import into project file at position 0 and save without prompt using Nuget install.ps1
I am building a Nuget package which has a tools folder with install.ps1. This Nuget package is dependent on NugetPowerTools package which provides some APIs to work with the project and its properties....
0
votes
2
answers
308
views
C# .NET WinForms. Visual studio won't recognise namespaces in subfolders
When I create a new folder, in this case Model, as a subfolder to the solution directory, and add a class in there, which is wrapped in a namespace, the namespace cannot be found.
Yes, I have tried ...
1
vote
1
answer
130
views
Machine dependent library paths in version controlled project in Visual Studio 2017 and git
I'm fairly new to Visual Studio and git so please bear with me!
I'm using VS2017 C++ for Windows development and I have 2 machines, a desktop PC which is my main and a laptop which I use when I'm ...
1
vote
2
answers
144
views
Move existing project to new location
In one solution I have 5 projects. One is in location that I want it to be, and 4 are on Desktop. After I move 4 to desired location all my references are with yellow triangle.
I cant find where I ...
0
votes
3
answers
398
views
MSBuildWorkspace OpenSolutionAsync() exits process
In a console application I have been trying to get OpenSolutionAsync to work for a couple of weeks now without success.
Finally I remembered to look at the roslyn-sdk repository which contains ...