Visual Studio build specific build versions due to version specific set to False

I have a solution with many projects. In Visual Studio 2010, clicking the properties for an assembly reference displays the newer version when compared to the actual reference in the csproj file.

Specifically, the csproj file has:

<Reference Include="System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll</HintPath>


But VS2010 links and displays version in an obvious way due to <SpecificVersion>False</SpecificVersion>

Do I need to manually update every assembly reference in every project ??? by removing and re-adding

Is there a way to find and replace all .csproj files in one operation?


source to share

1 answer

Do you want to add your assembly back to reference version If so, then you just need to set the SpecificVersion to true for all projects that reference the assembly. This can be done from the project references using the properties for the reference.

You can also do this by editing the csproj files in a text editor and remove "False" from the assemblies you want to reference again as the default is true.

If you only want to do this for a specific build, I expect it to be a manual process as I am not aware of a tool that can help you do this.

If you want to set a specific version to true for all assemblies in all your projects, you can find and replace "False" with "" in the project files.



All Articles