As the name says, I want to change the version of the .NET Target Framework for my C ++ project. Am I trying to compile with the / clr command, which I think should enable it?
Here is a screenshot: 
I am trying to create a DLL for use in Unity, and I want to be able to choose the right structure.
I tried to change the information in the .vxproj file, but I can not find the correct tag, and when I add it myself, it causes errors.
EDIT:
this is code that contains methods that you can call in C # to use the C ++ code I wrote earlier. I just edited the .h file in the CLR Class library (so the .cpp file contains only the header, which should be fine, I think)
#pragma once #include "PortAudioManager.h" using namespace System; namespace PortAudioWrapper { public ref class PortAudioManaged { private: PortAudioManager* audioManager; public: PortAudioManaged() : audioManager(new PortAudioManager()) { } virtual ~PortAudioManaged() { this->!PortAudioManaged(); }
Dries source share