How can you deploy an assembly so that you can call methods within a utility library from the "Immediate Window", without having to add solution project references to MyCompany.DebuggingTools.dll
?
CONTEXT
I have written a utility library (lets call it: MyCompany.DebuggingTools.dll
) that includes methods which are useful for debugging applications during the development process.
Ideally I would like to be able to:
- use the "Immediate Window" to call methods in my utility library
- it is implied that the Visual Studio debugger will be attached to the application under test
- the application under test will not have any solution project references to
MyCompany.DebuggingTools.dll
- In essence, I am trying to extend the capabilities of the "Immediate Window".
MORE INFORMATION
- Visual Studio 2017
- Windows 10
- the project...
- is a simple C# class library
- has been signed using a key file generated by Visual Studio
- scenarios:
MyCompany.DebuggingTools.dll
is added as a reference to the project under test- I can call the tools library from the "Immediate Window". It works.
- The project under test should not have a reference to the tools assembly.
MyCompany.DebuggingTools.dll
has not been added as a project reference- When I try to call one of the tools from the "Immediate Window", get the following error:
error CS0246: The type or namespace name 'MyCompany' could not be found (are you missing a using directive or an assembly reference?)
- When I try to call one of the tools from the "Immediate Window", get the following error: