Versioning Question

Jonathan Ruckert's Avatar

Jonathan Ruckert

14 Nov, 2014 05:55 AM

Hi,

 We have got assembly versions updated using the build number and YML reference which is really great, however we were wondering if this is also possible on other files. For example we have a couple of other files (such as aspx/svc files) that contain an <%@ ServiceHost Language="C#" Service="<ClassName>, <Assembly>, <Version>"....>

We really need to update this version number, is there any way of doing this out of the box using the YML file, or do we need to update this using PowerShell in a pre-build statement?

Cheers,
Jonathan

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Nov, 2014 05:47 PM

    Feodor Fitsner's Avatar

    Hi Jonathan,

    I think there might be a better approach to your problem. You can try using assembly redirection in web.config something like:

    <configuration>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>
    
  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

03 Oct, 2024 07:07 PM
01 Oct, 2024 05:06 PM
01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM