'SQLCLR: Assembly registration : no system.memory

I have created a small SQLCLR assembly and register it in SQL2019 database. All is ok but after assembly creation I received the message in SSMS

Assembly 'system.memory, version=4.0.1.1, culture=neutral, publickeytoken=cc7b13ffcd2ddd51.' was not found in the SQL catalog.

The assemble uses NET Framework 4.5.0. Naturally. the assemble could not be created. How to fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source