CCNet.Build.CheckProject.CheckNugetConfig.Check C# (CSharp) Метод

Check() публичный Метод

public Check ( CheckContext context ) : void
context CheckContext
Результат void
		public void Check(CheckContext context)
		{
			var config = context.TfsNugetConfig.Result;

			var compare = @"<?xml version=""1.0"" encoding=""utf-8""?>
<configuration>
  <solution>
    <add key=""disableSourceControlIntegration"" value=""true"" />
  </solution>
</configuration>";

			if (config != compare)
				throw new FailedCheckException(@"File 'nuget.config' has a strange contents.
Please try to copy it from a different solution.");
		}
	}
CheckNugetConfig