Skip to content

Move DnnDeprecatedAttribute to Abstractions#5816

Merged
valadas merged 1 commit intodnnsoftware:release/9.13.0from
bdukes:remove-source-generator-reference
Sep 20, 2023
Merged

Move DnnDeprecatedAttribute to Abstractions#5816
valadas merged 1 commit intodnnsoftware:release/9.13.0from
bdukes:remove-source-generator-reference

Conversation

@bdukes
Copy link
Copy Markdown
Contributor

@bdukes bdukes commented Sep 19, 2023

In order for projects to not require a full reference to the source generator project, the attribute cannot be defined in the project. The first attempt to resolve this was to generate the attribute via the source generator itself, but since the Library project exposes its internals to other projects (e.g. DotNetNuke.HttpModules), this resulted in ambiguous references. As a result, moving the type to a project that all other projects can reference seemed to be the best compromise. Since the attribute is conditional, it doesn't affect the public API of that project.

Fixes #5815

@bdukes bdukes added this to the 9.13.0 milestone Sep 19, 2023
Copy link
Copy Markdown
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks so much, I'll test out the artififact but from reading, it looks good to me...

@bdukes bdukes force-pushed the remove-source-generator-reference branch from 1377ad1 to 287dff3 Compare September 19, 2023 20:33
In order for projects to not require a full reference to the source
generator project, the attribute cannot be defined in the project.
The first attempt to resolve this was to generate the attribute via the
source generator itself, but since the Library project exposes its
internals to other projects (e.g. DotNetNuke.HttpModules), this resulted
in ambiguous references. As a result, moving the type to a project that
all other projects can reference seemed to be the best compromise. Since
the attribute is conditional, it doesn't affect the public API of that
project.

Fixes dnnsoftware#5815
@bdukes bdukes force-pushed the remove-source-generator-reference branch from 287dff3 to 89bd59a Compare September 19, 2023 21:01
@bdukes bdukes changed the title Use Internal.SourceGenerators w/o output assembly Move DnnDeprecatedAttribute to Abstractions Sep 19, 2023
@bdukes
Copy link
Copy Markdown
Contributor Author

bdukes commented Sep 19, 2023

@valadas see the updated description, I had to adjust the approach here

Copy link
Copy Markdown
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@valadas
Copy link
Copy Markdown
Contributor

valadas commented Sep 20, 2023

I have downloaded the build from this PR and was able to upgrade fine from 9.12 and can confirm this is no longer an issue. Thanks so much @bdukes

@valadas valadas merged commit a8316d0 into dnnsoftware:release/9.13.0 Sep 20, 2023
@bdukes bdukes deleted the remove-source-generator-reference branch September 27, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: v9.13.0-rc1 has System.Runtime.CompilerServices.Unsafe in bin folder of upgrade zip

4 participants