fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Version and dependencies

Version and dependencies 09 Nov 2019 11:15 #11655

  • wriedmann's Avatar

  • wriedmann

  • Topic Author


  • Posts: 2232
  • Hello,

    afaik the version in the AssemblyInfo defines also the dependencies.
    So if my exe references a library with a version like
    [assembly: AssemblyVersionAttribute( "1.0.0.5" )]
    the exe runs only when a library with the same AssemblyVersionAttribute is present in the application folder or the GAC.
    Is there any possibility to use the same exe also with a library with a higher version?
    Are there any rules what works and what not?
    Thank you very much!
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    Version and dependencies 09 Nov 2019 13:00 #11658

  • robert's Avatar

  • robert


  • Posts: 1676
  • Wolfgang,
    You need to include a config file with your app. Have a look at "c:\Program Files (x86)\XSharp\Bin\xsc.exe.config" for an example.
    In this file you can specify "assemblyBinding" information, like this:
    <dependentAssembly>
    <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-1.2.3.0" newVersion="1.2.3.0" />
    </dependentAssembly>
    Google will help you to explain what this all means.
    To automatically generate this you can include the project property
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    to your xsproj file.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Version and dependencies 09 Nov 2019 15:33 #11667

  • wriedmann's Avatar

  • wriedmann

  • Topic Author


  • Posts: 2232
  • Hi Robert,
    thank you very much!
    I will look at this. It will become important when I start to distribute X# applications to more customers - at the moment we are using X# applications in production only for single customer projects, but I have started one now that will be selled to more different customers (hopefully).
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1