📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

What is .NET Standard, and when would you still target netstandard2.0 instead of multi-targeting net48 and net10.0?

Beginner Theory Beginner

🎯 Key points

  • netstandard2.0 runs on .NET Framework 4.6.1+ and all modern .NET; 4.7.2+ recommended to avoid facade assembly problems
  • Choose it when existing .NET Framework apps must consume the library during a gradual migration
  • Multi-targeting (net48;net10.0) allows runtime-specific code with #if NET and modern APIs on the .NET 10 side
  • Since .NET 5 the platform is unified; no new .NET Standard versions after 2.1
  • netstandard2.1 is not supported by .NET Framework
  • New libraries without Framework consumers target net10.0 only for the latest APIs and performance
  • Drop the Framework target once the last Framework consumer is migrated

⏱ 30-second answer

.NET Standard is an API contract implemented by several runtimes, created before .NET 5 unified the platform. netstandard2.0 is supported by .NET Framework 4.6.1+ (4.7.2+ recommended) and every modern .NET, so one library binary works in both. Target it when the library must still serve .NET Framework apps (for example shared business rules during a gradual migration) and only needs the common API surface. Multi-target (net48;net10.0) when you need runtime-specific APIs or want .NET 10's performance features (spans, newer collections, TimeProvider) on the modern side, using #if NET for the differences. There will be no new .NET Standard versions, and 2.1 isn't supported by .NET Framework, so libraries with no Framework consumers should simply target net10.0. The trade-off: wider compatibility versus access to modern APIs.

🔍 What the interviewer is checking

Checks they know the practical bridge for running both runtimes during a migration

↩ Usually asked after

More in Legacy Technologies

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me