DOTNET_TARGET_FRAMEWORK_VERSION should be DOTNET_TARGET_FRAMEWORK.
Note that the “SDK style” .NET projects will be Any CPU and there is no way to change it to match the architecture of your native code. C# SDK style projects Any CPU - Code - CMake Discourse