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

Fix runtimeconfig for AspNetCore projects #323

Merged

Conversation

purkhusid
Copy link
Collaborator

What?

Adds a a new project_sdk attribute to all targets that defaults to default The attribute can also be set to web which indicates that the Web sdk is being targeted and thus the runtimeconfig will include the AspNetCore framework in the includedFrameworks/frameworks key of the config.

Why?

This is required to make the binary targets runnable. At some point I hope to simplify this so that the correct NuGet packages are implicitly added to the targets without having to declare them in private_deps or runtime_packs.

## What?
Adds a a new `project_sdk` attribute to all targets that defaults to `default`
The attribute can also be set to `web` which indicates that the Web sdk is being targeted
and thus the runtimeconfig will include the AspNetCore framework in the `includedFrameworks/frameworks` key of the config.

## Why?
This is required to make the binary targets runnable. At some point I hope to simplify this so that
the correct NuGet packages are implicitly added to the targets without having to declare them in
`private_deps` or `runtime_packs`.
@purkhusid purkhusid merged commit 2d057b3 into bazel-contrib:next Jan 3, 2023
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