Cake.Incubator 1.7.1

Cake AddIn that provides useful extensions and additional aliases for Cake.Build scripts

Install-Package Cake.Incubator -Version 1.7.1
dotnet add package Cake.Incubator --version 1.7.1
paket add Cake.Incubator --version 1.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This is a bugfix release for 1.7.0

As part of 1.7.0 release we had 7 issues closed.

The main feature of this release is the improvement in project parsing and test project detection for both pre and post 2017 project formats.

You can now detect the type of project using:

CustomProjectParserResult result = ParseProject("./some.csproj", "Debug");

result.IsNetStandard; // true | false
result.IsNetCore; // true | false
result.IsNetFramework; // true | false
result.IsVS2017ProjectFormat; // true | false

Combined with the existing methods below creates a powerful way to filter and route your projects during your build pipeline.

result.IsLibrary(); // true | false
result.IsType(ProjectTypes.FSharp); // true | false
result.IsWebApplication(); // true | false

The flags are not mutually exclusive so support those projects with multi-targeting configured.
The support for multi-targeting has also been improved with new methods being added as follows:

result.GetOutputPaths(); // uses target frameworks to generate all of the artifact output paths (dll's, exe's)
result.GetAssemblyFilePaths(); // again will now include all possible artifact output paths (dll's, exe's)

Checking for packages, references and cli tools in your projects has also improved

// packages
result.HasPackage("nunit"); // true | false 
result.HasPackage("nunit", "net45"); // also supports targetframework specific package lookups
var pkg = result.GetPackage("nunit"); // returns PackageReference object or null

// references
result.HasReference("xunit.core"); // true | false
result.GetReferemce("xunit.core"); // returns ProjectAssemblyReference object or null

// dotnet cli tools
result.HasDotNetCliToolReference("dotnet-xunit"); // true | false
result.GetDotNetCliToolReference("dotnet-xunit"); // returns DotNetCliToolReference object or null

The test detection makes the above even easier to work across a range of projects with the following new test extensions, especially if you are using dotnet test for running your tests.

result.IsTestProject(); // true | false (currently works for nunit, xunit, mstest, fsunit, fixie, Expecto)
result.IsDotNetCliTestProject(); // true is test project can be executed with 'dotnet test' otherwise false
result.IsFrameworkTestProject(); // true if project will require a non 'dotnet test' runner to be executed

There are a few more minor improvements also. Check the issues below for more details.

Bug

  • #54 Fix detection of netcore, netframework and add netstandard

Improvements

  • #58 Populate project references for vs2017 project formats
  • #56 Feature/testprojectdetection
  • #55 Updating output paths to support TargetFrameworks
  • #53 Test project detection
  • #52 Add support for ienumerable iteration for dump extension
  • #51 Make detecting TargetFramework for PackageReference more robust

This is a bugfix release for 1.7.0

As part of 1.7.0 release we had 7 issues closed.

The main feature of this release is the improvement in project parsing and test project detection for both pre and post 2017 project formats.

You can now detect the type of project using:

CustomProjectParserResult result = ParseProject("./some.csproj", "Debug");

result.IsNetStandard; // true | false
result.IsNetCore; // true | false
result.IsNetFramework; // true | false
result.IsVS2017ProjectFormat; // true | false

Combined with the existing methods below creates a powerful way to filter and route your projects during your build pipeline.

result.IsLibrary(); // true | false
result.IsType(ProjectTypes.FSharp); // true | false
result.IsWebApplication(); // true | false

The flags are not mutually exclusive so support those projects with multi-targeting configured.
The support for multi-targeting has also been improved with new methods being added as follows:

result.GetOutputPaths(); // uses target frameworks to generate all of the artifact output paths (dll's, exe's)
result.GetAssemblyFilePaths(); // again will now include all possible artifact output paths (dll's, exe's)

Checking for packages, references and cli tools in your projects has also improved

// packages
result.HasPackage("nunit"); // true | false 
result.HasPackage("nunit", "net45"); // also supports targetframework specific package lookups
var pkg = result.GetPackage("nunit"); // returns PackageReference object or null

// references
result.HasReference("xunit.core"); // true | false
result.GetReferemce("xunit.core"); // returns ProjectAssemblyReference object or null

// dotnet cli tools
result.HasDotNetCliToolReference("dotnet-xunit"); // true | false
result.GetDotNetCliToolReference("dotnet-xunit"); // returns DotNetCliToolReference object or null

The test detection makes the above even easier to work across a range of projects with the following new test extensions, especially if you are using dotnet test for running your tests.

result.IsTestProject(); // true | false (currently works for nunit, xunit, mstest, fsunit, fixie, Expecto)
result.IsDotNetCliTestProject(); // true is test project can be executed with 'dotnet test' otherwise false
result.IsFrameworkTestProject(); // true if project will require a non 'dotnet test' runner to be executed

There are a few more minor improvements also. Check the issues below for more details.

Bug

  • #54 Fix detection of netcore, netframework and add netstandard

Improvements

  • #58 Populate project references for vs2017 project formats
  • #56 Feature/testprojectdetection
  • #55 Updating output paths to support TargetFrameworks
  • #53 Test project detection
  • #52 Add support for ienumerable iteration for dump extension
  • #51 Make detecting TargetFramework for PackageReference more robust

Release Notes

https://github.com/cake-contrib/Cake.Incubator/releases

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.7.1 (current version) 4,049 1/27/2018
1.6.0 21,744 10/20/2017
1.5.0 13,450 9/12/2017
1.4.0 13,982 7/30/2017
1.3.0 11,953 5/30/2017
1.2.0 1,429 5/19/2017
1.1.2 1,642 4/6/2017
1.1.1 79 4/6/2017
1.1.0 98 4/5/2017
1.0.56 7,532 3/17/2017
1.0.48 684 3/10/2017
1.0.43 91 3/9/2017
1.0.38 376 1/10/2017
1.0.35 108 12/12/2016
1.0.34 103 12/9/2016
1.0.33 190 12/9/2016