When running the program, it pulls in dlls from the output directory. Originally, Newtonsoft.Json
wasn't being copied to the output directory, but by specifying Private
to True
, you told Visual Studio to copy the Newtonsoft.Json
dll to the output folder along with your program.
For completeness, the documentation on Private:
Optional boolean. Specifies whether the reference should be copied to the output folder. This attribute matches the Copy Local property of the reference that's in the Visual Studio IDE.