-
Notifications
You must be signed in to change notification settings - Fork 23
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
How do I package the dotnet runtime with my apps? #75
Comments
you should use the self-contained deployment mode with shared runtime enabled |
check this example, https://github.com/nulastudio/NetBeauty2/tree/master/NetBeautyTest |
It works, thanks! I want only my publish to be self-contained, not my whole build, so that I don't have a separate instance of the runtime for each app at every CI build step, only on publish. |
Could you help me solve this, so I won't need to add |
typically, we should turn off NetBeauty when on build <BeautyOnPublishOnly>True</BeautyOnPublishOnly> |
I already have that set. That's not the issue. My problem is when I build without (By build and publish, I mean running |
did you run the command via cmd/powershell or using the visual studio? this shouldn't happen, unless the dotnet reuses the built files. |
can you provide a demo so i can have a deep look on it. |
I ran it in a shell. It does reuse build files, I also pass |
i can't tell, but build without |
What do you want me to do exactly? I tried this:
But my publish just failed: |
try deleting |
If I delete the obj and bin directory and add If I don't add |
you are right, |
I've been following this example: https://github.com/nulastudio/NetBeauty2?tab=readme-ov-file#customize-apphost.
I thought the "shared runtime" meant that somehow the dotnet runtime is packaged by NetBeauty, but that doesn't seem to be the case.
I also want to package a single instance of ASP.NET Core Runtime with my app set, that all apps would find, and doesn't need to be installed. Can I achieve this with NetBeauty?
The text was updated successfully, but these errors were encountered: