I'm trying to target multiple .net framework versions with the built in preprocessor directives but i can't debug the targeted version of my code because that part of my code is cannot be hit during debug.
Here's my code:
private static void WriterTask(string processName, byte[] byteArray)
{
#if NET_46
Task.Run(() =>
{
FileWriter(_path, processName, byteArray);
});
#elif NET_35
FileWriter(_path, processName, byteArray);
#endif
}
