Skip to content

Commit 3a17548

Browse files
authored
Merge pull request #246 from ermshiperete/script
[script] Ignore warnings
2 parents 39b7db8 + 8a843a8 commit 3a17548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/MSBuild.Community.Tasks/Script.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public override bool Execute()
219219
CompilerResults results = provider.CompileAssemblyFromDom(options, compileUnit);
220220

221221
Assembly compiled = null;
222-
if (results.Errors.Count > 0)
222+
if (results.Errors.HasErrors)
223223
{
224224
string errors = "There were compiler errors:" + Environment.NewLine;
225225
foreach (CompilerError err in results.Errors)

0 commit comments

Comments
 (0)