How to use same source code for different framework or platform

Sanjay Kumar Jha 156 Reputation points
2023-05-03T13:27:44.57+00:00

Hi

I have three different platforms on which I want to use class files defined in these folders.

I don't want to use them "As a link".Because in this case folder structure will not be physically available in these projects.

My requirement is to use files available in these folders without physically creating folders in my project but folders structure should be visible in my projects.

My requirement is just to use the same source code in all projects without replication of source files. How will it be possible?

Please find the source code.

Link:"https://vemp-my.sharepoint.com/:u:/g/personal/sanjaykumarjha_virtualemployee_com/Ebr0n2yhB1dFg2sv6ak8Nx0BF_tugYyOfCtGmtVMzXtGAg?e=d5bXmv"

Requirement

Thanks

Sanjay

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Teams | Microsoft Teams for business | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2023-05-03T14:12:08.7133333+00:00

    Try creating a new Shared Project using the New Project dialog. Add some classes, then check if you can use the “Add Shared Project Reference” command in your main projects. The shared project must be also added to your solutions.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.