I built a C# application, my target framework was .NET Framework 4.72. While I used TDengine C# connector, and its target framework is .NET Standard 2.1 and .NET 5.
While I reference these package in the project, I always get an error while building, which said that the method marshal.
Marshal.StringToCoTaskMemUTF8(String)
was not in Framework 4.7.2.
I am confused, since in my opinion 4.7.2 should be a lower version than .NET 5. And this should be compatible.
So what is the difference between .NET Standard vs .NET Framework .NET 5, 6, 7. These name always confusing me. Does any know how to distinguish them or suggest some article to help me know them.