1

When I run nuget install package, my assembly reference is set with "Specific Version" false. I want this set to true when installing a package, is this possible?

I need to prohibit the assembly resolution to use older versions of the package assemblies.

ogborstad
  • 2,309
  • 2
  • 19
  • 22
  • 1
    Did you figure anything out? I have the opposite problem; I want to set the flag to false, because we use latest versions in our automatic build system. – Julius Sep 30 '15 at 09:00
  • @Julius: No, I didn't. Don't you get that behaviour by default? – ogborstad Sep 30 '15 at 11:33
  • Yes, and I do not know why. I added a question for it [here](http://stackoverflow.com/questions/32864732/what-controls-the-specific-version-property-of-a-reference-in-a-nuget-package). Could be considered a duplicate of this one. – Julius Sep 30 '15 at 11:50

1 Answers1

0

Make sure you're not using the BindingRedirect for assembly installed via nuget package in your configuration file. That will do the needful for assembly resolution to specific version. Few Nuget packages add this setting automatically that can be removed to use only specific version of assembly.

vendettamit
  • 14,315
  • 2
  • 32
  • 54