.NET Core strong-named DLLs

Compiling a .NET Core 3.1 WinForms app shows this:
CSC : warning CS8002: Referenced assembly 'ServiceStack.Text, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.

On .NET Framework, everything is strong-named by default - looks like .NET Core/Std may have been overlooked. :wink:

Definitely not overlooked, it’s an explicit decision to limit strong naming to only .NET Framework libs where it’s effectively only useful for legacy compatibility.

That’s why I was originally going to ditch strong-naming in .NET Core, but it turns out it’s important to still use it if you use AppData to store settings - it ensures the created folders don’t get messy if the app is moved around.

ServiceStack being unsigned doesn’t affect my app, so it’s fine, but I wanted to bring it up just in case.

1 Like