Forum Discussion

Bannna's avatar
Bannna
Copper Contributor
Feb 19, 2019

How to pack and deploy .net framework along with an MSIX package created for .net 3.5 application

@John Vintzel

 I would like to know, how to add the .net frame work dependency to the MSIX package. I am creating an MSIX package for a .net 3.5 application, but I would like to know how to install the .net 3.5 framework as prerequisite to my MSIX package, so that the application runtime won't throw any error related to .net frame work dependency.  

  • Right now we only support .Net that is packaged as framework packages.  The older frameworks that are feature on demand need to be installed via DISM

     

    Dism.exe /online /enable-feature /featurename:NetFX3 

     

    If you downloaded the FOD you can add the path to the source to the comand line.  This is good feedback to for us to look into addressing possibly in the OS or via tools like SCCM.

     

    John.

    • giladke's avatar
      giladke
      Brass Contributor

      Hi jvintzel any news on that one? is it possible already to have one of windows feature as prerequisite during MSIX deployment? such as "Dism.exe /online /enable-feature /featurename:NetFX3"?

       

      • jvintzel's avatar
        jvintzel
        Icon for Microsoft rankMicrosoft

        giladke Nothing planned to link DISM features to MSIX installations.  You could add it to the ideas section as a potential item for consideration.  Of course in this scenario your app may now require elevation to install, as required by DISM.  

         

        John Vintzel (@jvintzel)
        Program Manager Lead, MSIX

    • Bannna's avatar
      Bannna
      Copper Contributor

      jvintzel  : Thanks for the reply.

      However, I would like to know how can I configure to execute the DISM command during the msix package installation. 

      Are you saying to execute the DISM command manually before installing the msix package? 

      • jvintzel's avatar
        jvintzel
        Icon for Microsoft rankMicrosoft

        That's correct.  We don't install the features on demand as part of app deployment at this time.  It is something we might look at longer term, but its lower on our backlog at this time.  Ideally newer apps move to MSIX frameworks and those are supported for dependency deployment.  

         

        John.

Resources