Skip to content
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 publish into a subfolder of PublishDir? #73

Open
ferenc-a opened this issue Dec 17, 2024 · 2 comments
Open

How do I publish into a subfolder of PublishDir? #73

ferenc-a opened this issue Dec 17, 2024 · 2 comments

Comments

@ferenc-a
Copy link

I have 3 executables I publish as a set, and I want them to use a single dotnet runtime.
I tried using NetBeauty2, and worked based on SharedRuntimeTest.

This is the directory structure in the example:

publish
├── runtimes
├── app1
│   ├── app1.dll
│   └── ...
├── app1.exe

But it's achieved by setting <PublishDir>../publish/WsClient</PublishDir>. I want the PublishDir to be still set to publish, not the subfolder, and tell NetBeauty2 to use this folder structure, but I can't find a way. I tried setting BeautyDir, but it does nothing, and the other variables don't affect the exe, or ruin the relative paths when loading the dlls.

@liesauer
Copy link
Member

no, you can't. lets says you have 2 apps, app1 and app2, by default, the entire project folder structure should be like this:

project
│
├──app1
│   ├── bin
│   │   └── Relase/blah blah/publish
│   │                            ├── app1.exe
│   │                            ├── app1.dll
│   │                            └── ...
│   ├── app1.csproj
│   └── ...
├──app2
│   ├── bin
│   │   └── Relase/blah blah/publish
│   │                            ├── app2.exe
│   │                            ├── app2.dll
│   │                            └── ...
│   ├── app2.csproj
│   └── ...

to make them publishing as an application set, this two projects must have the same publish dir, you can publish app1 into app2's PublishDir or publish app2 into app1's PublishDir or just simply change the PublishDir to ${projectFolder}/publish.

@ferenc-a
Copy link
Author

I can copy the other app in a separate step, that's not my problem. Even with a single app, this causes problems for me.
There are other files and paths that are dependent on the publish dir, and this would, for example make a db file that was included in the publishdir root move to the app subdir. I don't want to change all paths related to publishdir, just for the sake of NetBeauty2.
What does BeautyDir mean then, if not this? With so many config options related to this already (BeautyDir, BeautyAppHostDir, BeautyAppHostEntry, BeautyLibsDir), shouldn't NetBeauty2 be able to handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants