[meta]common csproj/vcxproj settings to Directory.Build.props (#17067)

* Add common csproj/vcxproj settings to Directory.Build.props

* Set TreatWarningsAsErrors to true for all c# projects

* Minor fixes in unit test projects where Analyzers where not enabled before

* Clean up Directory.Build.props

* Remove properties from ImageResizer csprojs files
This commit is contained in:
CleanCodeDeveloper
2022-03-18 17:47:18 +01:00
committed by GitHub
parent f4f8a1bd69
commit 2e3a2b3f96
8 changed files with 24 additions and 34 deletions

View File

@@ -93,11 +93,11 @@ namespace Microsoft.Plugin.Folder.UnitTests
// Assert
if (hasValues)
{
Assert.IsTrue(results.Count() > 0);
Assert.IsTrue(results.Any());
}
else
{
Assert.IsTrue(results.Count() == 0);
Assert.IsFalse(results.Any());
}
}
}