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

%3CLINGO-SUB%20id%3D%22lingo-sub-353444%22%20slang%3D%22en-US%22%3EHow%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353444%22%20slang%3D%22en-US%22%3E%3CP%3E%40%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3EJohn%20Vintzel%3C%2FA%3E%3C%2FP%3E%3CDIV%20class%3D%22post-author-login%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3BI%20would%20like%20to%20know%2C%20how%20to%20add%20the%20.net%20frame%20work%20dependency%20to%20the%20MSIX%20package.%20I%20am%20creating%20an%20MSIX%20package%20for%20a%20.net%203.5%20application%2C%20but%20I%20would%20like%20to%20know%20how%20to%20install%20the%20.net%203.5%20framework%20as%20prerequisite%20to%20my%20MSIX%20package%2C%20so%20that%20the%20application%20runtime%20won't%20throw%20any%20error%20related%20to%20.net%20frame%20work%20dependency.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-356379%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-356379%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20correct.%26nbsp%3B%20We%20don't%20install%20the%20features%20on%20demand%20as%20part%20of%20app%20deployment%20at%20this%20time.%26nbsp%3B%20It%20is%20something%20we%20might%20look%20at%20longer%20term%2C%20but%20its%20lower%20on%20our%20backlog%20at%20this%20time.%26nbsp%3B%20Ideally%20newer%20apps%20move%20to%20MSIX%20frameworks%20and%20those%20are%20supported%20for%20dependency%20deployment.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-355834%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-355834%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3E%40John%20Vintzel%3C%2FA%3E%26nbsp%3B%20%3A%20Thanks%20for%20the%20reply.%3C%2FP%3E%3CP%3EHowever%2C%20I%20would%20like%20to%20know%20how%20can%20I%20configure%20to%20execute%20the%20DISM%20command%20during%20the%20msix%20package%20installation.%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20saying%20to%20execute%20the%20DISM%20command%20manually%20before%20installing%20the%20msix%20package%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-355427%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-355427%22%20slang%3D%22en-US%22%3E%3CP%3ERight%20now%20we%20only%20support%20.Net%20that%20is%20packaged%20as%20framework%20packages.%26nbsp%3B%20The%20older%20frameworks%20that%20are%20feature%20on%20demand%20need%20to%20be%20installed%20via%20DISM%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDism.exe%20%2Fonline%20%2Fenable-feature%20%2Ffeaturename%3ANetFX3%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20downloaded%20the%20FOD%20you%20can%20add%20the%20path%20to%20the%20source%20to%20the%20comand%20line.%26nbsp%3B%20This%20is%20good%20feedback%20to%20for%20us%20to%20look%20into%20addressing%20possibly%20in%20the%20OS%20or%20via%20tools%20like%20SCCM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354991%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354991%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20you%20declare%20the%20dependency%20in%20the%20package%20manifest.%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fuwp%2Fschemas%2Fappxpackage%2Fuapmanifestschema%2Felement-dependencies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fuwp%2Fschemas%2Fappxpackage%2Fuapmanifestschema%2Felement-dependencies%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20type%20of%20.net%203.5%20framework%20are%20you%20using%3F%20Do%20you%20know%20if%20this%20version%20can%20be%20published%20through%20the%20Store%3F%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519741%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519741%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3E%40John%20Vintzel%3C%2FA%3E%26nbsp%3Bany%20news%20on%20that%20one%3F%20is%20it%20possible%20already%20to%20have%20one%20of%20windows%20feature%20as%20prerequisite%20during%20MSIX%20deployment%3F%20such%20as%20%22%3CSTRONG%3EDism.exe%20%2Fonline%20%2Fenable-feature%20%2Ffeaturename%3ANetFX3%22%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1834575%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20pack%20and%20deploy%20.net%20framework%20along%20with%20an%20MSIX%20package%20created%20for%20.net%203.5%20applicatio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1834575%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375902%22%20target%3D%22_blank%22%3E%40giladke%3C%2FA%3E%26nbsp%3BNothing%20planned%20to%20link%20DISM%20features%20to%20MSIX%20installations.%26nbsp%3B%20You%20could%20add%20it%20to%20the%20ideas%20section%20as%20a%20potential%20item%20for%20consideration.%26nbsp%3B%20Of%20course%20in%20this%20scenario%20your%20app%20may%20now%20require%20elevation%20to%20install%2C%20as%20required%20by%20DISM.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn%20Vintzel%20(%40jvintzel)%3CBR%20%2F%3EProgram%20Manager%20Lead%2C%20MSIX%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

@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.  

6 Replies

Hi, you declare the dependency in the package manifest. https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-dependencies

 

What type of .net 3.5 framework are you using? Do you know if this version can be published through the Store?  

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.

@John Vintzel  : 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? 

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.

Hi @John Vintzel 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"?

 

@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