Skip to content

Conversation

@tmat
Copy link
Member

@tmat tmat commented Dec 26, 2019

No description provided.

Copy link

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

I reviewed 30/66 files. If you want me to finish the complete review let me know. 😄

[Required]
public ITaskItem SourceRoot { get; set; }
[Required, NotNull]
public ITaskItem? SourceRoot { get; set; }

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure I like the other pattern better. Is there a benefit?

<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<PropertyGroup>
<LangVersion>Preview</LangVersion>

Choose a reason for hiding this comment

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

💡 Might as well make this 8 now

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to keep using the latest features even when in preview.

[Required]
public string ProjectDirectory { get; set; }
[Required, NotNull]
public string? ProjectDirectory { get; set; }

Choose a reason for hiding this comment

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

💡 These can both be marked non-null using the pattern shown above

@tmat tmat merged commit f61f347 into dotnet:master Jan 21, 2020
@tmat tmat deleted the Nullables branch January 21, 2020 17:37
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.

2 participants