-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ProjectReferences that are executables don't get an apphost on SCD publish #2475
Comments
Hi @damageboy, Thanks for the feedback! Would publishing If possible, I would avoid using P2P references from However, we are looking at improving publishing for 3.0 and I would like to better my understanding of your scenario to see if there's something we can make work for you. |
I'll try and walk you through the different options I've tried, but I preface this by saying I really don't know if what I'm offering here is anything more than an ultra niche end-case which shouldn't really interest anyone beyond me and my team :) Ultimately I though it would be a good idea to post this issue to see if there is any interest in this outside of my case. Back to the matter at hand:
I already gave that a try, and this runs into a wall pretty quickly with transitive dependencies: When I publish different The reason I find this somewhat useful, is that:
That's it, all I'm saying that for packaging 10-20 executables that are all coming from a single code-base, I can't seem to think of a better approach when considering all the options. I fully acknowledge that without having more people asking for this, its better for everyone if I keep doing my hack, and leave it there. But I would like thsi to stay open for a while in case someone who is not me finds this interesting / needed... Does that make sense? |
I think it might make some sense to generate an apphost for P2P exe references, so I'll see what I can do to improve this experience for 3.0; there's a few other problems in that space I'd also like to solve. |
I believe this will be fixed in .NET SDK 5.0.200 via this PR: #14488 |
When I publish/SCD project
A
that has a dependency on projectB
(both projects being netcoreapp2.1 executables / console applications), I get a pair ofA.dll, A.exe
(assembly + apphost), but unfortunately, while I do get a publishedB.dll
and I could issuedotnet B.dll
to run it, I don't get aB.exe
apphost published alongside it.I've written, for my own hacky purposes, a python script to generate the apphost exectuable (after copy pasting and translating the code from c# to a few python lines), and for what it's worth, I can testify that all that is missing is simply the creation of the apphost executable and nothing more.
The use case for this is for people wanting to publish a major application (being the project
A
in my example) with a few additional ancillary tools (projectB
, in my example) as one big happy .zip / tarball for end users.As I've stated before, I hacked my way into getting this functionality by manually generating the app hosts on Windows/Linux/OSX with a python script, but I feel it is worthwhile to have this discussion here to see if this is a sort of end-user scenario that the sdk should support out of the box, especially given the relatively little amount of work I feel it should entail...
The text was updated successfully, but these errors were encountered: