How to set up dev environment for Native Audio Plugin SDK?

This post is basically asking for a step by step on how to set up the Native Audio Plugin SDK for Unity.

The SDK can be found here: Unity - Manual: Native audio plug-in SDK

I’m basically interested in using the example plugins from the SDK download as a template for working on my own plugins, but I’m completely experienced when it comes to setting up the development environment for compiling DLLs for use in Unity. I was thinking perhaps there may be other documentation that covers this information, such as general documentation regarding building Unity plugins, but I didn’t really know where to start looking.

EDIT/UPDATE: I found another tutorial that was titled ‘How to use Unity’s Native Audio Plugin SDK on Mac OS’. Turns out the tutorial also applies to Windows and Linux, so I’ll give this a try: How to Use Unity’s Native Audio Plugin SDK on macOS | by Othniel Cundangan | Medium

The documentation for this SDK appears to be very brief (from an audio designers perspective). It doesn’t mention at all how to actually set up the SDK. For e.g it does not say where the files in the SDK download folder are supposed to live inside a Unity project. The SDK download its self appears to be an example Unity project, so how do we ‘plug in’ the SDK files for audio plugin development to either a new or existing Unity project, so that we may then correctly recompile the C++ for the Unity plugins from Visual Studio? I did attempt to simply rebuild the example Visual Studio project, but I got this error and haven’t a clue how to fix it:

Error MSB3073 The command "mkdir …..\Assets\Plugins\x86_64
copy C:\UnityProjects\UnityNativeAudioPluginSDK\UnityNativeAudioPluginSDK\NativeCode\VisualStudio\build\Debug\AudioPluginDemo.dll …..\Assets\Plugins\x86_64\AudioPluginDemo.dll
:VCEnd" exited with code 1. AudioPluginDemo C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

I was hoping that Visual Studio project would simply rebuild the DLL, and put any generated files into the right place.

the error you’re getting is that concrete project specific
IIRC you just have to place the project in correct path under Assets ( look at how it is structured in the repository, I maybe moved it around, can’t remember sorry ) and it will copy result in correct place

Thanks for the reply. I have now solved.

It turned out to be a simple issue of having spaces in my Unity project path name. My solution was to rename the relevant folders in my path to have no spaces. The .sln project compiles the DLL fine now.

There was also a solution offered by someone else, which would have meant editing the Visual Studio project properties instead of renaming any folders. That can be found here: http://pkumonk.me/2013/09/24/vs2010-error-msb3073-the-command-copy-exited-with-code-1/