title: old dlls in GAC are still being used
body: <p>I have a set up where the assembly is published to the GAC after each build. But My application uses the old dll all the time. After build the new dlls are created in a new folder. The folder names are 7.1.7573.0_<em>d516cb311 and 7.1.5000.8888</em>_d516cb311. The second folder being the latest. It seems(from the folder name) my current code is publishing old dll. Is it the reason my application is using old dll? If yes What will I have to do so that currect assembly is published?</p>
  
  <p>Edit:</p>
  
  <p>In the web.config file the assembly is registered under runtime element. And its version is the Version is 7.0.0.0. </p>
  
  <pre><code>&lt;runtime&gt;
  &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
  &lt;qualifyAssembly partialName="dllpartialname" fullName="dllfullname,version=7.0.0.0,publicKeyToken=d516cb311,culture=neutral"/&gt;
  &lt;/runtime&gt;
  &lt;/assemblyBinding&gt;
  </code></pre>
  
  <p>Edit2:
  Now I know What the problem is. My web project is referencing an assembly which has a version 7.1.7573.0. But the assemblyversion in the assemblyinfo.cs file (of my classlibrary) is 7.1.5000.8888. When I am building the class library project, It is publishing an assembly having a version 7.1.5000.8888(i.e. the assemblyversion in assemblyinfo.cs file) to the GAC. But as my web project is having a reference to 7.1.7573.0. , It still uses the dll in the folder 7.1.7573.0_d516cb311 and ignores the other folder.</p>
  
  <p>Edit 3:
  Facing a different problem now. I updated the assemlyversion in the assemblyinfo.cs file. But when I try to build it it changes are reverted automatically. It says this file has been modified outside the source editor. Why is this happening ? Does anyone have an idea about it?</p>
  
  <p>Thanks,
  Syd</p>