Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Common.globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ dotnet_diagnostic.CA1505.severity = none
dotnet_diagnostic.CA1506.severity = none

# Use nameof to express symbol names
dotnet_diagnostic.CA1507.severity = suggestion
dotnet_diagnostic.CA1507.severity = warning

# Avoid dead conditional code
dotnet_diagnostic.CA1508.severity = none
Expand Down
4 changes: 2 additions & 2 deletions src/Shared/ToolsetElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public string toolsVersion
{
get
{
return (string)base["toolsVersion"];
return (string)base[nameof(toolsVersion)];
}

set
Expand Down Expand Up @@ -740,7 +740,7 @@ public string DefaultOverrideToolsVersion
// whenever the base class gives us an empty string.
// Note this means we can't distinguish between the attribute being present but containing
// an empty string for its value and the attribute not being present at all.
string defaultValue = (string)base["DefaultOverrideToolsVersion"];
string defaultValue = (string)base[nameof(DefaultOverrideToolsVersion)];
return String.IsNullOrEmpty(defaultValue) ? null : defaultValue;
}

Expand Down