title: How to "get rid of" $(SolutionDir) when building Visual Studio project from outside Visual Studio
body: <p>I want to build a .vcxproj via MSBuild from outside Visual Studio. The problem is that there are many occurrences of $(SolutionDir) inside the .vcxproj file which apparently only get set correctly when the solution is loaded.</p>
  
  <p>When I replace $(SolutionDir) with the actual absolute path, it works. But other people on other machines are working with the same project file, so this is not a solution.</p>
  
  <p>Is there a solution or hack to solve this problem?</p>