© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3mo ago•
10 replies
Justin

Private Library: Is there a way to flag required packages and their versions (or...?)

I've built an unpublished helper library to handle routines shared by many programs - for example, handling OAUTH2.0 for SMTP, since everyone loves their automated email reports.

The library references the package Microsoft.Identity.Client and therefore the program which references the library must also reference that specific version of Microsoft.Identity.Client. However, sometimes I forget and I'm only reminded when I hit a runtime error.

Is there a way to flag these requirements in Visual Studio and to get the compiler to warn of missing packages or version mismatches?

Alternatively, is there a legal way to bundle Microsoft.Identity.Client.dll into my JustinsLibrary.dll?

If not, I'll manage, but it sure would be convenient.

Thanks
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

❔ Is there a way to get a Private field?
C#CC# / help
3y ago
✅ Is there a library for processing FBX or GLTF files?
C#CC# / help
3y ago
❔ Is there a way to override the DefaultInterpolatedStringHandler?
C#CC# / help
3y ago
❔ Directory.Packages.props Support Floating Versions
C#CC# / help
3y ago