I have restored the post. Although, I get the feeling when I read the post that I am not sure that I understand what the question is. But I should hasten to add that Visual Studio is not my expertise.
As for why it was deleted - I did not dig into that, but the system is sometimes too keen on deleting legit posts. (And at the same time missing to detect a lot of spam.)