-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 transitive contentFiles support that's missing in nuget #8
Labels
enhancement
New feature or request
Comments
kzu
added a commit
that referenced
this issue
Sep 27, 2022
So, turns out that nuget is completely broken for transitive assets that aren't specifically `buildTransitive` assets. Why that scenario was fixed just for that ultra-narrow use case of build assets is anyone's guess. So, we leverage that one-and-only working transitive scenario to detect the situation where transitive assets are missing (the Compile files we provide as content) and include the missing files ourselves. This requires changing the way we allow opt-out of the service attribute type, though, since now there is no package reference to set the Exclude on. For that, we provide a new property IncludeServiceAttribute that we use to remove the automatically added contentFiles (in non-transitive) or skip adding ourselves (in transitive). Fixes #8
kzu
added a commit
that referenced
this issue
Sep 27, 2022
So, turns out that nuget is completely broken for transitive assets that aren't specifically `buildTransitive` assets. Why that scenario was fixed just for that ultra-narrow use case of build assets is anyone's guess. So, we leverage that one-and-only working transitive scenario to detect the situation where transitive assets are missing (the Compile files we provide as content) and include the missing files ourselves. This requires changing the way we allow opt-out of the service attribute type, though, since now there is no package reference to set the Exclude on. For that, we provide a new property IncludeServiceAttribute that we use to remove the automatically added contentFiles (in non-transitive) or skip adding ourselves (in transitive). Fixes #8
kzu
added a commit
that referenced
this issue
Sep 27, 2022
So, turns out that nuget is completely broken for transitive assets that aren't specifically `buildTransitive` assets. Why that scenario was fixed just for that ultra-narrow use case of build assets is anyone's guess. So, we leverage that one-and-only working transitive scenario to detect the situation where transitive assets are missing (the Compile files we provide as content) and include the missing files ourselves. This requires changing the way we allow opt-out of the service attribute type, though, since now there is no package reference to set the Exclude on. For that, we provide a new property IncludeServiceAttribute that we use to remove the automatically added contentFiles (in non-transitive) or skip adding ourselves (in transitive). Fixes #8
kzu
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Sep 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If another package depends on the codegen performed by this project,
the transitive content file for
ServiceAttribute.cs
is not automaticallyadded because (amazingly) this is totally broken
in nuget and with uncertain ETA on a transitive content files flow
fix.
We should try our best to aid our users and have things Just Work, though.
The text was updated successfully, but these errors were encountered: