© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
31 replies
Mek

How do I use models from Project A in Project B?

Lets say I have a models folder with a few models in it inside of Project A and I've created another project under the same
.sln
.sln
called Project B. I instead of having to create duplicate models between both projects, I want to use the models with Project A's models folder inside of Project B. I tried
using ProjectA.Models;
using ProjectA.Models;
but I get a resolve error basically saying it can't find it, but the folder structure is
Project/
- ProjectA/
  - Models/
- ProjectB/
  - Program.cs // use ProjectA.Models here
Project/
- ProjectA/
  - Models/
- ProjectB/
  - Program.cs // use ProjectA.Models here
. Thanks in advance.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How do I can use my class objects in UnitTest project?
C#CC# / help
3y ago
How do I use a API in a console application
C#CC# / help
8mo ago
Importing minimal set of classes from project A to project B
C#CC# / help
3mo ago
How do I go about making a project in c#?
C#CC# / help
16mo ago