Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/0.38.2'
Browse files Browse the repository at this point in the history
* feature/0.38.2:
  (GH-68) Update to Cake 0.38.2 * fixes #68
  Can't cache on build.cake
  Update SDK to latest 2.1
  Fixed NuGet package icon and license
  Update global.json to also allow newer versions
  Add the build project to the main solution
  • Loading branch information
devlead committed Jun 26, 2020
2 parents f84ac75 + 9179238 commit 3c23a5e
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 12 deletions.
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Image used
image: Visual Studio 2019

# Build script
init:
- git config --global core.autocrlf true
Expand All @@ -21,4 +24,5 @@ branches:

# Build cache
cache:
- tools -> build.cake
- build.ps1
- global.json
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Param(
[string[]]$ScriptArgs
)

$DotNetVersion = "2.1.803";
$DotNetVersion = "2.1.807";
$DotNetInstallerUri = "https://dot.net/v1/dotnet-install.ps1";
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"

Expand Down
3 changes: 2 additions & 1 deletion build/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"sdk": {
"version": "2.1.802"
"version": "2.1.807",
"rollForward": "latestMajor"
}
}
Binary file added cake-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projects": [ "src", "build" ],
"sdk": {
"version": "2.1.803"
"version": "2.1.807",
"rollForward": "latestMajor"
}
}
1 change: 1 addition & 0 deletions src/Cake.Frosting.Tests/Fakes/NullConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ public void ResetColor()

public ConsoleColor ForegroundColor { get; set; }
public ConsoleColor BackgroundColor { get; set; }
public bool SupportAnsiEscapeCodes => false;
}
}
21 changes: 19 additions & 2 deletions src/Cake.Frosting.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.7
# Visual Studio Version 16
VisualStudioVersion = 16.0.30204.135
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cake.Frosting", "Cake.Frosting\Cake.Frosting.csproj", "{A608FD39-2B71-4B6E-B238-AE80BB2794F8}"
EndProject
Expand All @@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Example", "Example", "{8BFA
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cake.Frosting.Tests", "Cake.Frosting.Tests\Cake.Frosting.Tests.csproj", "{F6A8095C-E2B6-4D8B-88A1-213376387FD5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build", "..\build\Build.csproj", "{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -56,11 +58,26 @@ Global
{F6A8095C-E2B6-4D8B-88A1-213376387FD5}.Release|x64.Build.0 = Release|Any CPU
{F6A8095C-E2B6-4D8B-88A1-213376387FD5}.Release|x86.ActiveCfg = Release|Any CPU
{F6A8095C-E2B6-4D8B-88A1-213376387FD5}.Release|x86.Build.0 = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|x64.ActiveCfg = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|x64.Build.0 = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|x86.ActiveCfg = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Debug|x86.Build.0 = Debug|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|Any CPU.Build.0 = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|x64.ActiveCfg = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|x64.Build.0 = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|x86.ActiveCfg = Release|Any CPU
{A117400E-6E1A-4FB0-9BD8-E298ED331FAC}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{ED379398-DA69-4D1E-B712-27DC0D67ABC3} = {8BFACDC8-8BBF-4751-BB54-85B0D28A61A2}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {34EDB4FC-F467-4967-9101-D7027C4EC6CE}
EndGlobalSection
EndGlobal
12 changes: 8 additions & 4 deletions src/Cake.Frosting/Cake.Frosting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Copyright>Copyright (c) .NET Foundation and contributors</Copyright>
<Authors>Patrik Svensson, Mattias Karlsson, Gary Ewan Park, Alistair Chapman, Martin Björkström and contributors</Authors>
<PackageTags>Cake;Build;Build automation</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/cake-build/graphics/master/png/cake-medium.png</PackageIconUrl>
<PackageIcon>cake-medium.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/cake-build/frosting</RepositoryUrl>
Expand All @@ -23,9 +23,13 @@
<DebugType>portable</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.37.0" />
<PackageReference Include="Cake.Common" Version="0.37.0" />
<None Include="../../LICENSE" Pack="true" PackagePath="$(PackageLicenseFile)"/>
<PackageReference Include="Cake.Core" Version="0.38.2" />
<PackageReference Include="Cake.Common" Version="0.38.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="images\" />
<None Include="../../cake-medium.png" Link="images\cake-medium.png" Pack="true" PackagePath="/" />
<None Include="../../LICENSE" Pack="true" PackagePath="/" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
5 changes: 5 additions & 0 deletions src/Cake.Frosting/Internal/DefaultConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public ConsoleColor BackgroundColor
set => Console.BackgroundColor = value;
}

/// <summary>
/// Gets if console supports ANSI escape codes.
/// </summary>
public bool SupportAnsiEscapeCodes => false;

/// <summary>
/// Writes the text representation of the specified array of objects to the
/// console output using the specified format information.
Expand Down
5 changes: 4 additions & 1 deletion template/Cake.Frosting.Template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<description>Cake.Frosting templates for the .NET SDK.</description>
<summary>Cake (C# Make) is a build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages.</summary>
<authors>Patrik Svensson, Mattias Karlsson, Gary Ewan Park, Alistair Chapman, Martin Björkström and contributors</authors>
<licenseUrl>https://github.com/cake-build/frosting/blob/develop/LICENSE</licenseUrl>
<license type="expression">MIT</license>
<projectUrl>https://github.com/cake-build/frosting</projectUrl>
<icon>cake-medium.png</icon>
<iconUrl>https://raw.githubusercontent.com/cake-build/graphics/master/png/cake-medium.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright (c) .NET Foundation and contributors</copyright>
Expand All @@ -16,6 +17,8 @@
</packageTypes>
</metadata>
<files>
<file src="..\cake-medium.png" target="cake-medium.png" />
<file src="..\LICENSE" target="LICENSE" />
<file src=".template.config/template.json" target="content/.template.config" />
<file src="build.ps1" target="content/build.ps1" />
<file src="Build.csproj" target="content/build" />
Expand Down

0 comments on commit 3c23a5e

Please sign in to comment.