title: How to read property value from external file?
body: <p>I have AssemblyInfo.cs file automatically generated during build. Here's part of .csproj file:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;Major&gt;2&lt;/Major&gt;
      &lt;Minor&gt;3&lt;/Minor&gt;
      &lt;Build&gt;0&lt;/Build&gt;
      &lt;Revision&gt;0&lt;/Revision&gt;
  &lt;/PropertyGroup&gt;
  &lt;Target Name="BeforeBuild"&gt;
      &lt;SvnVersion LocalPath="$(MSBuildProjectDirectory)" ToolPath="C:\Program Files\VisualSVN Server\bin"&gt;
          &lt;Output TaskParameter="Revision" PropertyName="Revision" /&gt;
      &lt;/SvnVersion&gt;
      &lt;AssemblyInfo CodeLanguage="CS" 
                    OutputFile="$(MSBuildProjectDirectory)\Properties\VersionInfo.cs" 
                    AssemblyVersion="$(Major).$(Minor).$(Build).$(Revision)" 
                    AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>But I don't know how to specify <code>Major</code> and <code>Minor</code> properties outside .csproj file so I don't have to unload project every time I want to change version. I need either to load them from special text file inside project or to somehow set them in project properties dialog. Any suggestions?</p>