Skip to content

Make source generator and package reference support opt-out (on by default) - #4089

Merged
ryalanms merged 1 commit into
masterfrom
source.generators.on.by.default
Jan 27, 2021
Merged

ryalanms merged 1 commit into
masterfrom
source.generators.on.by.default

Conversation

@ryalanms

Copy link
Copy Markdown
Member

.NET 6.0 Preview 1 has snapped. Make source generator and package reference support opt-out (on by default) for Preview 2.

@ryalanms
ryalanms requested a review from a team as a code owner January 27, 2021 06:18
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 27, 2021
@ghost
ghost requested review from SamBent and fabiant3 January 27, 2021 06:18

<!-- The updated .NET 5.0.2 GenerateTemporaryTargetAssembly behavior that supports source generators is off by default. -->
<IncludePackageReferencesDuringMarkupCompilation Condition="'$(IncludePackageReferencesDuringMarkupCompilation)' == ''">false</IncludePackageReferencesDuringMarkupCompilation>
<IncludePackageReferencesDuringMarkupCompilation Condition="'$(IncludePackageReferencesDuringMarkupCompilation)' == ''">true</IncludePackageReferencesDuringMarkupCompilation>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like we can delete this code line, and the default value provided by the SDK will be used by default. See dotnet/sdk#15465

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, @lindexi. I wasn't told this was being turned on in the SDK.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We will remove this after the SDK change is committed to master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants