I want to be able to drag .cs files into my project on a per account basis. So I have
<Compile Include="Controls\MyControl.ascx.cs">
then for accounts 001
or 002
I would add an extra line
<Compile Include="Accounts\001\Controls\MyControl.ascx.cs">
OR
<Compile Include="Accounts\002\Controls\MyControl.ascx.cs">
This will allow me to override classes based on the account I am running the project for.
Is it safe to modify the CSPROJ
file in this way or will visual studio overwrite my changes when I add a new file or dependency?
Also, is my approach to the problem reasonable?