To create a shared project infrastructure for multiple projects, you can define the common infrastructure in one project and then reference it in other projects. In the .csproj
file of the infrastructure project, include all necessary configurations. In the .csproj
file of the other projects, add a reference to the infrastructure project using the <ProjectReference>
tag, pointing to the infrastructure project's path. This allows all the projects to utilize the shared infrastructure seamlessly.
I am creating Nunit Project using Target Framework 4.6.1 while I use targets for Other project using (Microsoft.CSharp.Targets) getting 4.0 as targets
Naveen
0
Reputation points
- Created a Project Infrastructure (Which will be common for all projects under a directory)
- In Csproj file mentioned
- I have Created Other Project and added Project Infrastructure as Reference,
- In Csproj mentioned
Developer technologies .NET Other
4,103 questions
Developer technologies Visual Studio Other
5,451 questions
Developer technologies C#
11,570 questions
1 answer
Sort by: Most helpful
-
williamoliver 5 Reputation points
2024-08-19T09:01:55.6+00:00