Skip to content

Commit d0b37c0

Browse files
authored
Continuous Integration Publish: b21e6e9
Merge pull request #94 from cake-contrib/feature/GH-76 (GH-76) added net5.0 as suggested for Cake 1.0.0
1 parent 2e01165 commit d0b37c0

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

feed.atom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<id>https://cake-contrib.github.io/CakeContrib.Guidelines</id>
44
<title>CakeContrib.Guidelines</title>
55
<link rel="self" href="https://cake-contrib.github.io/CakeContrib.Guidelines" />
6-
<rights>2020</rights>
7-
<updated>2020-10-27T23:34:56Z</updated>
6+
<rights>2021</rights>
7+
<updated>2021-02-27T22:46:24Z</updated>
88
</feed>

feed.rss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<title>CakeContrib.Guidelines</title>
55
<link>https://cake-contrib.github.io/CakeContrib.Guidelines</link>
66
<description />
7-
<copyright>2020</copyright>
8-
<pubDate>Tue, 27 Oct 2020 23:34:56 GMT</pubDate>
9-
<lastBuildDate>Tue, 27 Oct 2020 23:34:56 GMT</lastBuildDate>
7+
<copyright>2021</copyright>
8+
<pubDate>Sat, 27 Feb 2021 22:46:24 GMT</pubDate>
9+
<lastBuildDate>Sat, 27 Feb 2021 22:46:24 GMT</lastBuildDate>
1010
</channel>
1111
</rss>

guidelines/TargetFramework.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,14 @@ <h2 id="table-of-contents">Table of Contents</h2>
132132
</ul>
133133
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
134134
<h2 id="goals">Goals</h2>
135-
<p>As .NET Framework &lt; 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 <code>netstandard2.0</code> and <code>net461</code> to have the maximum compatibility.</p>
135+
<p>Each addin should have maximum compatibility when being used. Toward that end some Framework versions are required and some others are
136+
suggested, depending on the Cake.Core version that is being referenced.</p>
136137
<h3 id="required-suggested-versions">Required / Suggested versions</h3>
137138
<p>Depending on the referenced <code>Cake.Core</code>-version different target versions are required and/or suggested.
138139
Missing a required target version will raise <a href="../rules/ccg0007">CCG0007</a> as an error
139140
while missing a suggested target version will raise <a href="../rules/ccg0007">CCG0007</a> as a warning.</p>
140141
<ul>
141-
<li>Cake.Core &lt;= 0.33.0
142+
<li>Cake.Core &lt; 1.0.0
142143
<ul>
143144
<li>Required: <code>netstandard2.0</code></li>
144145
<li>Suggested: <code>net461</code>
@@ -148,6 +149,17 @@ <h3 id="required-suggested-versions">Required / Suggested versions</h3>
148149
</li>
149150
</ul>
150151
</li>
152+
<li>Cake.Core &gt;= 1.0.0
153+
<ul>
154+
<li>Required: <code>netstandard2.0</code></li>
155+
<li>Suggested: <code>net461</code>
156+
<ul>
157+
<li>alternative: <code>net46</code></li>
158+
</ul>
159+
</li>
160+
<li>Suggested: <code>net5.0</code></li>
161+
</ul>
162+
</li>
151163
</ul>
152164
<h2 id="related-rules">Related rules</h2>
153165
<ul>

rules/ccg0005.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ <h2 id="how-to-fix-violations">How to fix violations</h2>
129129
(Or opt-out of this rule, by setting <code>CakeContribGuidelinesOmitRecommendedReference</code>)</p>
130130
<h2 id="related-guidelines">Related guidelines</h2>
131131
<ul>
132-
<li><a href="../guidelines/Analysers">Usage of Analysers</a></li>
132+
<li><a href="../guidelines/RecommendedReferences">Recommended References</a></li>
133133
</ul>
134134

135135
</section>

rules/ccg0007.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ <h2 id="cause">Cause</h2>
124124
<p>This warning is raised, when the addin is not targeted to a recommended target version.
125125
Also, This could be raised as an error, if a required target version is not set.</p>
126126
<h2 id="description">Description</h2>
127-
<p>Addins should be multi-targeted to <code>netstandard2.0</code> and <code>net461</code> to have the maximum compatibility.</p>
127+
<p>Addins should be multi-targeted to different framework versions to have the maximum compatibility.</p>
128128
<h2 id="how-to-fix-violations">How to fix violations</h2>
129-
<p>Add the recommended target(s) to the project:</p>
129+
<p>Add the recommended target(s) to the project (example for an addin referencing Cake.Core 1.0.0):</p>
130130
<pre><code class="language-xml">&lt;PropertyGroup&gt;
131-
&lt;TargetFrameworks&gt;netstandard2.0;net472&lt;/TargetFrameworks&gt;
131+
&lt;TargetFrameworks&gt;netstandard2.0;net461;net5.0&lt;/TargetFrameworks&gt;
132132
&lt;/PropertyGroup&gt;
133133
</code></pre>
134134
<p>(Or opt-out of this rule, by setting <code>CakeContribGuidelinesOmitTargetFramework</code>)</p>

0 commit comments

Comments
 (0)