Context : In our application there two separate dlls which are repositories of variables configured for different types of hardware .These dlls has same na
"Can i declare a variable in a text file say type1 and import that text file in my csproj file and assign the appropriate reference to my application ?"
Isn't that exactly what I describe in the blog post you link to?
Look for the defined variable 'SomeProject' in the configuration file 'ProjectReferences.txt' which I load from the .csproj file.
ProjectReferences.txt
..\SomeProject
.csproj file
{6CA7AB2C-2D8D-422A-9FD4-2992BE62720A}
SomeProject
..\Libraries\SomeProject.dll