<commit_before>var target = Argument("target", "Default");
var solutionFiles = GetFiles("ParticleSDK.sln");
var outputDirectory = "Build";
var buildVersion = "1.2.3-beta-4";

Task("AppVeyorUpdate")
	.Does(() =>
{
	if(AppVeyor.IsRunningOnAppVeyor)
	{
		Information("Building on AppVeyor");
		buildVersion = AppVeyor.Environment.Build.Version;
		Information("Build Version is {0}", buildVersion);
	}
	else
	{
		Information("Not building on AppVeyor");
	}
});

Task("CleanUp")
	.Does(()=>
{
	if(System.IO.Directory.Exists(outputDirectory))
	{
		System.IO.Directory.Delete(outputDirectory, true);
	}
	
	System.IO.Directory.CreateDirectory(outputDirectory);
});

Task("UpdateAssemblyVersion")
	.Does(() =>
{
	var fixedVersionString = buildVersion.Replace("-beta-", ".");
	
	if(fixedVersionString.Split('.').Length == 3){
		fixedVersionString += ".0";
	}
	<commit_msg>Added Support for the Branches builds to the build script.<commit_after>var target = Argument("target", "Default");
var solutionFiles = GetFiles("ParticleSDK.sln");
var outputDirectory = "Build";
var buildVersion = "1.2.3-beta-4";

Task("AppVeyorUpdate")
	.Does(() =>
{
	if(AppVeyor.IsRunningOnAppVeyor)
	{
		Information("Building on AppVeyor");
		buildVersion = AppVeyor.Environment.Build.Version;
		Information("Build Version is {0}", buildVersion);
	}
	else
	{
		Information("Not building on AppVeyor");
	}
});

Task("CleanUp")
	.Does(()=>
{
	if(System.IO.Directory.Exists(outputDirectory))
	{
		System.IO.Directory.Delete(outputDirectory, true);
	}
	
	System.IO.Directory.CreateDirectory(outputDirectory);
});

Task("UpdateAssemblyVersion")
	.Does(() =>
{
	var fixedVersionString = buildVersion.Replace("-beta-", ".").Replace("-alpha-",".");
	
	if(fixedVersionString.Split('.').Length == 3){
		fixedVersionString += ".0";
	}
	
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.0078125, 'mean_word_length': 5.3356890459363955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4953450', 'n_tokens_mistral': 626, 'n_tokens_neox': 600, 'n_words': 102}