mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Build generator as part of build
This commit is contained in:
		 Patrik Svensson
					Patrik Svensson
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							383bee0e3e
						
					
				
				
					commit
					ffdb47d77f
				
			
							
								
								
									
										27
									
								
								build.cake
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								build.cake
									
									
									
									
									
								
							| @@ -14,8 +14,21 @@ Task("Build") | |||||||
|     .IsDependentOn("Clean") |     .IsDependentOn("Clean") | ||||||
|     .Does(context =>  |     .Does(context =>  | ||||||
| { | { | ||||||
|  |     Information("Compiling generator..."); | ||||||
|  |     DotNetBuild("./resources/scripts/Generator/Generator.sln", new DotNetBuildSettings { | ||||||
|  |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|  |         NoIncremental = context.HasArgument("rebuild"), | ||||||
|  |         MSBuildSettings = new DotNetMSBuildSettings() | ||||||
|  |             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) | ||||||
|  |     }); | ||||||
|  |  | ||||||
|  |     Information("\nCompiling Spectre.Console..."); | ||||||
|     DotNetBuild("./src/Spectre.Console.sln", new DotNetBuildSettings { |     DotNetBuild("./src/Spectre.Console.sln", new DotNetBuildSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoIncremental = context.HasArgument("rebuild"), |         NoIncremental = context.HasArgument("rebuild"), | ||||||
|         MSBuildSettings = new DotNetMSBuildSettings() |         MSBuildSettings = new DotNetMSBuildSettings() | ||||||
|             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) |             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) | ||||||
| @@ -28,6 +41,8 @@ Task("Build-Analyzer") | |||||||
| { | { | ||||||
|     DotNetBuild("./src/Spectre.Console.Analyzer.sln", new DotNetBuildSettings { |     DotNetBuild("./src/Spectre.Console.Analyzer.sln", new DotNetBuildSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoIncremental = context.HasArgument("rebuild"), |         NoIncremental = context.HasArgument("rebuild"), | ||||||
|         MSBuildSettings = new DotNetMSBuildSettings() |         MSBuildSettings = new DotNetMSBuildSettings() | ||||||
|             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) |             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) | ||||||
| @@ -40,6 +55,8 @@ Task("Build-Examples") | |||||||
| { | { | ||||||
|     DotNetBuild("./examples/Examples.sln", new DotNetBuildSettings { |     DotNetBuild("./examples/Examples.sln", new DotNetBuildSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoIncremental = context.HasArgument("rebuild"), |         NoIncremental = context.HasArgument("rebuild"), | ||||||
|         MSBuildSettings = new DotNetMSBuildSettings() |         MSBuildSettings = new DotNetMSBuildSettings() | ||||||
|             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) |             .TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error) | ||||||
| @@ -54,18 +71,24 @@ Task("Test") | |||||||
| { | { | ||||||
|     DotNetTest("./test/Spectre.Console.Tests/Spectre.Console.Tests.csproj", new DotNetTestSettings { |     DotNetTest("./test/Spectre.Console.Tests/Spectre.Console.Tests.csproj", new DotNetTestSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoRestore = true, |         NoRestore = true, | ||||||
|         NoBuild = true, |         NoBuild = true, | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     DotNetTest("./test/Spectre.Console.Cli.Tests/Spectre.Console.Cli.Tests.csproj", new DotNetTestSettings { |     DotNetTest("./test/Spectre.Console.Cli.Tests/Spectre.Console.Cli.Tests.csproj", new DotNetTestSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoRestore = true, |         NoRestore = true, | ||||||
|         NoBuild = true, |         NoBuild = true, | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     DotNetTest("./test/Spectre.Console.Analyzer.Tests/Spectre.Console.Analyzer.Tests.csproj", new DotNetTestSettings { |     DotNetTest("./test/Spectre.Console.Analyzer.Tests/Spectre.Console.Analyzer.Tests.csproj", new DotNetTestSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoRestore = true, |         NoRestore = true, | ||||||
|         NoBuild = true, |         NoBuild = true, | ||||||
|     }); |     }); | ||||||
| @@ -77,6 +100,8 @@ Task("Package") | |||||||
| { | { | ||||||
|     context.DotNetPack($"./src/Spectre.Console.sln", new DotNetPackSettings { |     context.DotNetPack($"./src/Spectre.Console.sln", new DotNetPackSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoRestore = true, |         NoRestore = true, | ||||||
|         NoBuild = true, |         NoBuild = true, | ||||||
|         OutputDirectory = "./.artifacts", |         OutputDirectory = "./.artifacts", | ||||||
| @@ -86,6 +111,8 @@ Task("Package") | |||||||
|  |  | ||||||
|     context.DotNetPack($"./src/Spectre.Console.Analyzer.sln", new DotNetPackSettings { |     context.DotNetPack($"./src/Spectre.Console.Analyzer.sln", new DotNetPackSettings { | ||||||
|         Configuration = configuration, |         Configuration = configuration, | ||||||
|  |         Verbosity = DotNetVerbosity.Minimal, | ||||||
|  |         NoLogo = true, | ||||||
|         NoRestore = true, |         NoRestore = true, | ||||||
|         NoBuild = true, |         NoBuild = true, | ||||||
|         OutputDirectory = "./.artifacts", |         OutputDirectory = "./.artifacts", | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ | |||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <PackageReference Include="AngleSharp" Version="0.14.0" /> |     <PackageReference Include="AngleSharp" Version="0.14.0" /> | ||||||
|     <PackageReference Include="Humanizer.Core" Version="2.8.26" /> |     <PackageReference Include="Humanizer.Core" Version="2.8.26" /> | ||||||
|     <PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> |     <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||||||
|     <PackageReference Include="Scriban" Version="2.1.3" /> |     <PackageReference Include="Scriban" Version="2.1.3" /> | ||||||
|     <PackageReference Include="Spectre.IO" Version="0.1.0" /> |     <PackageReference Include="Spectre.IO" Version="0.1.0" /> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|   | |||||||
| @@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Library", "Library", "{CFE7 | |||||||
| EndProject | EndProject | ||||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spectre.Console.Cli", "..\..\..\src\Spectre.Console.Cli\Spectre.Console.Cli.csproj", "{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}" | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spectre.Console.Cli", "..\..\..\src\Spectre.Console.Cli\Spectre.Console.Cli.csproj", "{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}" | ||||||
| EndProject | EndProject | ||||||
|  | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spectre.Console.Json", "..\..\..\src\Spectre.Console.Json\Spectre.Console.Json.csproj", "{6C96C268-CEEE-478A-A36F-E1450AC33B73}" | ||||||
|  | EndProject | ||||||
| Global | Global | ||||||
| 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||||
| 		Debug|Any CPU = Debug|Any CPU | 		Debug|Any CPU = Debug|Any CPU | ||||||
| @@ -71,6 +73,18 @@ Global | |||||||
| 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x64.Build.0 = Release|Any CPU | 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x64.Build.0 = Release|Any CPU | ||||||
| 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x86.ActiveCfg = Release|Any CPU | 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x86.ActiveCfg = Release|Any CPU | ||||||
| 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x86.Build.0 = Release|Any CPU | 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC}.Release|x86.Build.0 = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|x64.ActiveCfg = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|x64.Build.0 = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|x86.ActiveCfg = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Debug|x86.Build.0 = Debug|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|Any CPU.Build.0 = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|x64.ActiveCfg = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|x64.Build.0 = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|x86.ActiveCfg = Release|Any CPU | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73}.Release|x86.Build.0 = Release|Any CPU | ||||||
| 	EndGlobalSection | 	EndGlobalSection | ||||||
| 	GlobalSection(SolutionProperties) = preSolution | 	GlobalSection(SolutionProperties) = preSolution | ||||||
| 		HideSolutionNode = FALSE | 		HideSolutionNode = FALSE | ||||||
| @@ -79,6 +93,7 @@ Global | |||||||
| 		{F75B882A-06DB-426B-9580-A7302D32E684} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | 		{F75B882A-06DB-426B-9580-A7302D32E684} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | ||||||
| 		{112A37CB-1EFE-4A90-BD5B-5437038BE276} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | 		{112A37CB-1EFE-4A90-BD5B-5437038BE276} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | ||||||
| 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | 		{18A3F32D-FECD-463B-A194-6EE74EA9E5EC} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | ||||||
|  | 		{6C96C268-CEEE-478A-A36F-E1450AC33B73} = {CFE7445D-F971-429D-B6E6-9E68456AE00F} | ||||||
| 	EndGlobalSection | 	EndGlobalSection | ||||||
| 	GlobalSection(ExtensibilityGlobals) = postSolution | 	GlobalSection(ExtensibilityGlobals) = postSolution | ||||||
| 		SolutionGuid = {5F37FDE3-D591-4D43-8DDE-2ED6BAB0A7B4} | 		SolutionGuid = {5F37FDE3-D591-4D43-8DDE-2ED6BAB0A7B4} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user