Suman Gautam Thanks for posting your question in Microsoft Q&A. I assume, external repos as public NuGet Packages or private feed. You can specify packageSources
in the project reference other than public NuGet feed.
For C# script, refer Using NuGet packages doc to add external packages in *.csproj file and follow the steps shared by Sudipta to reference the files/objects. In Isolated model, you can add packageSources
in Nuget.Config and package references in *.csproj file and import packages with using
statement and the same goes with In process model as well (similar discussion: SO Thread).
Samples for Isolated process samples are available here and other samples here. I hope this helps with your question and feel free to add a comment with additional details if you face issues.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience.