Skip to content

Modify references to PluginBase with ExcludeAssets - #1927

Merged
mairaw merged 1 commit into
dotnet:masterfrom
vitek-karas:FixPluginBaseRefs
Jan 24, 2020
Merged

mairaw merged 1 commit into
dotnet:masterfrom
vitek-karas:FixPluginBaseRefs

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

Private=false is not enough to not include the references assets in the output if the referenced project references packages in its closure. In that case the same effect is achieved by ExcludeAssets=runtime.

So the best approach to is to specify both. Note that this change is not needed for the sample to work (as the PluginBase doesn't reference packages), but it's a good practice for samples as it will make customr code work if they do have package references.

Fixes #1760

Private=false is not enough to not include the references assets in the output if the referenced project references packages in its closure. In that case the same effect is achieved by ExcludeAssets=runtime.

So the best approach to is to specify both. Note that this change is not needed for the sample to work (as the PluginBase doesn't reference packages), but it's a good practice for samples as it will make customr code work if they do have package references.
@mairaw
mairaw merged commit 365c58d into dotnet:master Jan 24, 2020
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.

Update AppWithPlugin sample to correctly specify non-private project references

3 participants