Views:

Question
How can I update my existing SDK tools to work with the latest Release?

Answer
Each new MIKE version works with a newer version of the MIKE Assemblies than the previous version and the version number of the MIKE assemblies needs to be updated in the code before recompiling using the newer MIKE version.

For Release 2020 the command is:

 

   // The setup method will make your application find the MIKE assemblies at runtime.
       if (!DHI.Mike.Install.MikeImport.Setup(18, DHI.Mike.Install.MikeProducts.Mike1D))
                 throw new Exception("Could not find a MIKE installation");

 

For Release 2021 the command is:

 

   // The setup method will make your application find the MIKE assemblies at runtime.
       if (!DHI.Mike.Install.MikeImport.Setup(19, DHI.Mike.Install.MikeProducts.Mike1D))
                 throw new Exception("Could not find a MIKE installation");

 

 For Release 2022 the command is:

  

    // The setup method will make your application find the MIKE assemblies at runtime.

       if (!DHI.Mike.Install.MikeImport.Setup(20, DHI.Mike.Install.MikeProducts.Mike1D))
                 throw new Exception("Could not find a MIKE installation");

 

For Release 2023 the command is:

  

    // The setup method will make your application find the MIKE assemblies at runtime.

       if (!DHI.Mike.Install.MikeImport.Setup(21, DHI.Mike.Install.MikeProducts.Mike1D))
                 throw new Exception("Could not find a MIKE installation");

 

For Release 2024 the command is:

  

    // The setup method will make your application find the MIKE assemblies at runtime.

       if (!DHI.Mike.Install.MikeImport.Setup(22, DHI.Mike.Install.MikeProducts.Mike1D))
                 throw new Exception("Could not find a MIKE installation");

 

FURTHER INFORMATION AND USEFUL LINKS
Manuals and User Guides
MIKE Core SDK Documentation Index

Release Notes
MIKE Core SDK Release Notes


 

Related Products: MIKE 21/3