'How do I work with MSBuild using the interactive switch

I am working on creating a custom .targets file for MSBuild Based compilation for my custom visual studio project.

I have been able to create a targets file which does the work of Build / Rebuild and Clean correctly.

However, I have a scenario where I need to provide some additional input during MSBuild Compilation. In the MSBuild command line reference, there are sections which talk about running MSBuild Interactively and with Response Files (.rsp).

Checking in the community here if someone has worked with making msbuild interactive or providing response through .rsp files.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source