Skip to content

Bundle Vice.Host into the Vice package#7

Merged
jrconradt merged 1 commit into
mainfrom
host-in-package
Jun 6, 2026
Merged

Bundle Vice.Host into the Vice package#7
jrconradt merged 1 commit into
mainfrom
host-in-package

Conversation

@jrconradt

Copy link
Copy Markdown
Owner

Library consumers that build their own Vice CLI need the hosting layer (ViceApp / ViceAppBuilder), which lives in Vice.Host. After the restructure the published Vice package lets you define commands but not construct/run an app, because Vice.Host is IsPackable=false and unpublished.

Vice.Host is an internal partition (RootNamespace=Vice, only depends on Vice/Jobs/Foundation) like Foundation and Jobs, so this bundles its assembly into the Vice package rather than publishing it separately. Host can't be a project reference of Vice (it references Vice → cycle), so it's resolved and bundled at pack time via GetTargetPath, requiring the solution to be built first. install-local.sh now builds the solution before packing. Bumped to 0.1.2.

Verified: packed Vice.0.1.2.nupkg depends only on Vice.Parser 0.1.2 and bundles Vice.dll, Vice.Foundation.dll, Vice.Jobs.dll, Vice.Host.dll in lib/net10.0.

🤖 Generated with Claude Code

Library consumers that build their own CLI need the hosting layer
(ViceApp / ViceAppBuilder), which lives in Vice.Host. Host is an internal
partition (RootNamespace=Vice, IsPackable=false) like Foundation and Jobs,
so bundle its assembly into the Vice package rather than publishing it
separately. Host cannot be a project reference of Vice (it references Vice,
which would cycle), so resolve and bundle it at pack time via GetTargetPath
and require the solution to be built first. install-local.sh now builds the
solution before packing so the bundled Host assembly is present. Bump to
0.1.2.

Generated with Claude Code is what they want you to think.
@jrconradt jrconradt merged commit 68f8ed4 into main Jun 6, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant