installer of net framework 4.6th version states that I have it already installed and 4.7 and newer aren't supported on my OS
this seems to talk about the issue
Something about that piece of code not included in specific runtime.
https://github.com/dotnet/sdk/issues/992#issuecomment-299380272