Open Petermarcu opened 7 years ago
The output is a function of publish operation that CLI implements. Secondly, the layout has strong dependencies with the host and where SharedFX can be found.
yeah, I put the issue here because I assumed publish was putting it where the host could find. In order to do something like this, I assume we'd have to change the host and then update publish. Is that correct?
Agreed that this is annoying for a self contained deployment. I thought about distributing my application with a shortcut to the actual application at an upper level but obviously this is not cross platform compatible. If the application has such a strong dependency on having the .NET Core runtime in the same directory, could we get a publish option that combines the entire runtime into a single DLL? It's not like our end user cares what version of what component of the core runtime we're using anyway.
anything to be done about this?
@vitek-karas @swaroop-sridhar is this something on your plate? Is the scenario maybe covered by single-file bundling?
If single-file can be used, then it basically solves this problem. For non-single-file case, this would require SDK and hosting changes which we haven't considered yet.
@menashes I understand the general desire of this issue, but I would be interested in your particular scenario and why is it important to you? Is it that you "don't like it" (which is a valid reason, just asking), or is it that this creates an issue for the users, or something else entirely?
Would this be something you would expect an option for during dotnet publish
? Or you would like to have other ways to get it?
@vitek-karas I would expect this to be the default behavior for dotnet publish.
We have a .net core console app which we build for Windows and Mac.
The app builds reports for our client services team. The business people expect an executable file and a readme. If there are 8 files in the folder they can probably find those two files easily enough in Finder or Explorer. If there are 235 files in the folder, it is too complicated to use.
Overall, way too much scrolling necessary to get to the files you actually need.
I would like to have this to. Someting like
@nmocruz @menasheh
Please take a look at the proposed single-file design for .net 5 to see if it suits your requirements.
Changing the file layout for all apps requires substantial changes, definitely beyond the scope of .net 5.
hostfxr.dll
hostpolicy.dll
to be separate files. Therefore, if these dlls are linked together with the runtime, there should be an option to generate them separately and produce appropriate packages for consumption by the SDK.@nmocruz @menasheh if single-file is not suitable for you, you can have a try at NetCoreBeauty, it supports both net core 2.x and 3.x. and it only moves dlls into sub-folder, other files will be left at where they should be.
I really prefer a solution like NetCoreBeauty https://github.com/nulastudio/NetCoreBeauty Thanks for the advise
On Mon, 8 Jun 2020 at 08:00, L!εsAμεr notifications@github.com wrote:
@nmocruz https://github.com/nmocruz @menasheh https://github.com/menasheh if single-file is not suitable for you, you can have a try at NetCoreBeauty https://github.com/nulastudio/NetCoreBeauty, it supports both net core 2.x and 3.x. and it only moves dlls into sub-folder, other files will be left at where then should be.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dotnet/runtime/issues/2572#issuecomment-640408182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHGRZJG4FXUVE7A7BLJ3ILRVSD7BANCNFSM4LDP3GNQ .
Steps to reproduce
Publish a standalone app
Expected behavior
My app is in the root and all the runtime goo is hidden in a sub folder
Actual behavior
I publish my app and I get over 100 binaries that aren't mine. They are just noise for my users who try to launch my app from my folder.
Environment data