I am looking for the best approach to communicate between separate executables.
The approach I have tried is to create a separate class library that contains the static class SharedVariables and contains the global static variable MyVariable. I then add this project as a reference to project1 and project2 and reference MyVariable. This compiles fine.
The problem I am having is when running project1.exe and project2.exe (in the same directory). In project1.exe I set SharedVariablesMyVariable to true and have a thread in project2 that does something when SharedVariables.MyVariable is set to true. Project2 never sees this change to SharedVariables.dll.
Am I going about this the wrong way? Should I be using an interprocess communication solution?