-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate runtime packs during libraries build #34203
Comments
No, we should not do that. You don't need a runtime pack to do this. You need to be able to override the directory that the SDK resolves for a runtime-pack. Having an actual runtime-pack would be a bad thing since you'd need to build that nuget-package, then restore it, just to extract it again. You need to make sure you can produce something that looks like the runtime pack directory. I believe we should already have something that works, either the test-host directory or the runtime directory (artifacts\bin\runtime\tfm-OS-config-arch). To override what the SDK thinks is the runtime pack directory it looks like there are a few options:
@dsplaisted what is your recommendation here. |
This sounds a lot like the idea to use a common sharedfx layout between Libraries and Installer: #487. (I don't know any reason off the top of my head why runtime packs would be different from the sharedfx when it comes to this kind of sharing.) |
Runtime packs have different directory structure. Also, runtime packs contain different set of files (with potentially different content) than shipping sharedfx. |
I meant whether it can be shared. |
I can see now how that's ambiguous. To unpack it: |
@dagood are you suggesting we should change the shared framework structure to match runtime pack? |
No. I'm hypothesizing that it makes sense to share a layout for the runtime pack between Libraries and Installer. Some supporting data is that we have analogous work tracked for the sharedfx at #487, and nobody's shot it down. That work has nothing to do with the runtime pack, but is a similar infrastructure improvement. The general theme is that the infrastructure should take advantage of the repo migration by laying out these files once, rather than laying them out once in the Libraries subset then again in the Installer subset. I'm not aware of anything contradicting the hypothesis. |
I agree that we should cleanup creating targeting and runtime packs just once. Not necessary for 5.0, moving. |
As this issue was tracking to generate a runtime pack as part of the libraries build, and this has been implemented since, I believe we should close this issue. Let's follow up on future improvements to share the runtime pack generation (cc @jkoritzinsky as he is working on that) in #487. |
We're currently in the process of getting tests to run against iOS and Android. As part of the libraries build, we will be constructing
.app
/.apk
files that will contain test assemblies + the runtime. We plan relyingdotnet publish
as the way to produce the test apps.In this context,
dotnet publish
would be responsible for creating the final apk/ipa (or app) which can be deployed to the device. This will be same flow used by .NET developers and involves multiple sub-steps for each target.Since publishing is done from the libraries build, we need to snap a runtime pack from the artifacts produced.
What would be the best way to accomplish this? Should we move parts / all of the installer into the libraries build?
/cc @marek-safar @danmosemsft @ericstj
The text was updated successfully, but these errors were encountered: