private void DoExample(ITaskContext context) { XmlDocument xml = new XmlDocument(); //// Just an a example that external reference works. BuildScriptHelper.SomeMethod(); //// Just an a example that referencing other cs file works. ////Example of predefined propertie. Propertie are predefined by flubu. var osPlatform = context.Properties.Get <OSPlatform>(PredefinedBuildProperties.OsPlatform); if (osPlatform == OSPlatform.Windows) { context.LogInfo("Running on windows"); } else if (osPlatform == OSPlatform.Linux) { context.LogInfo("running on linux"); } }
private void DoExample(ITaskContext context) { BuildScriptHelper.SomeMethod(); //// Just an a example that referencing other cs file works. }