-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from cake-contrib/release/0.5.0
Release/0.5.0
- Loading branch information
Showing
22 changed files
with
712 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Run dependabot for cake | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# run everyday at 6 | ||
- cron: '0 6 * * *' | ||
|
||
jobs: | ||
dependabot-cake: | ||
runs-on: ubuntu-latest # linux, because this is a docker-action | ||
steps: | ||
- name: check/update cake dependencies | ||
uses: nils-org/dependabot-cake-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,6 @@ docs/input/tasks/* | |
|
||
# Wyam related | ||
config.wyam.* | ||
|
||
# JetBrains Rider | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
Order: 4 | ||
Title: Target Frameworks | ||
--- | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
## Table of Contents | ||
|
||
- [Goals](#goals) | ||
- [Required / Suggested versions](#required--suggested-versions) | ||
- [Related rules](#related-rules) | ||
- [Usage](#usage) | ||
- [Settings](#settings) | ||
- [Opt-Out](#opt-out) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
## Goals | ||
|
||
As .NET Framework < 4.7.2 has issues with running .NET Standard assemblies, and Cake itself can run on .NET Framework 4.6.1 it is suggested to multi-target addins to `netstandard2.0` and `net461` to have the maximum compatibility. | ||
|
||
### Required / Suggested versions | ||
|
||
Depending on the referenced `Cake.Core`-version different target versions are required and/or suggested. | ||
Missing a required target version will raise [CCG0007](../rules/ccg0007) as an error | ||
while missing a suggested target version will raise [CCG0007](../rules/ccg0007) as a warning. | ||
|
||
* Cake.Core <= 0.33.0 | ||
* Required: `netstandard2.0` | ||
* Suggested: `net461` | ||
* alternative: `net46` | ||
|
||
## Related rules | ||
|
||
* [CCG0007](../rules/ccg0007) | ||
|
||
## Usage | ||
|
||
Using this package automatically enables this guideline. | ||
|
||
## Settings | ||
|
||
### Opt-Out | ||
|
||
It it possible to opt-out of the check for target framework using the following setting: | ||
|
||
(*Keep in mind, though that it is not recommended to opt-out of this feature*) | ||
|
||
```xml | ||
<ItemGroup> | ||
<CakeContribGuidelinesOmitTargetFramework Include="netstandard2.0" /> | ||
<CakeContribGuidelinesOmitTargetFramework Include="net461" /> | ||
</ItemGroup> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
Order: 7 | ||
Title: CCG0007 | ||
Description: Missing recommended target | ||
--- | ||
|
||
> Missing required target: netstandard2.0 | ||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
## Table of Contents | ||
|
||
- [Cause](#cause) | ||
- [Description](#description) | ||
- [How to fix violations](#how-to-fix-violations) | ||
- [Related guidelines](#related-guidelines) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
## Cause | ||
|
||
This warning is raised, when the addin is not targeted to a recommended target version. | ||
Also, This could be raised as an error, if a required target version is not set. | ||
|
||
## Description | ||
|
||
Addins should be multi-targeted to `netstandard2.0` and `net461` to have the maximum compatibility. | ||
|
||
## How to fix violations | ||
|
||
Add the recommended target(s) to the project: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks> | ||
</PropertyGroup> | ||
``` | ||
|
||
(Or opt-out of this rule, by setting `CakeContribGuidelinesOmitTargetFramework`) | ||
|
||
## Related guidelines | ||
|
||
* [Target Frameworks](../guidelines/TargetFramework) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES/@EntryValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<UsingTask | ||
TaskName="$(CakeContribGuidelinesCustomTasksNamespace).TargetFrameworkVersions" | ||
AssemblyFile="$(CakeContribGuidelinesCustomTasksAssembly)" /> | ||
|
||
<Target | ||
Name="_CheckTargetFrameworkVersions" | ||
AfterTargets="BeforeBuild" | ||
BeforeTargets="CoreBuild"> | ||
<!-- All other rules have some "configuration" here, this rules required/suggested targets are hard-coded in the task. Sadly. --> | ||
|
||
<TargetFrameworkVersions | ||
References="@(Reference)" | ||
TargetFramework="$(TargetFramework)" | ||
TargetFrameworks="$(TargetFrameworks)" | ||
Omitted="@(CakeContribGuidelinesOmitTargetFramework)" | ||
ProjectFile="$(MSBuildProjectFullPath)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.