If TestProgram.cs contains text for Console application (function main), create new C# project of type "Console Application". Paste code from TestProgram.cs to the file generated by Application Wizard. In the Solution Explorer, open References, right-click and select "Add Reference". Add reference to MyWrapper.dll. Compile and run the program.