Table of Contents
Goals
When an addin/module references a package that is also provided by Cake at runtime, the version the addin/module references should match the version provided by Cake. Also, the reference of the package in the addin/module should be set as private assets.
Provided packages
Cake v1.0
Reference | Version |
---|---|
Autofac | 6.1.0 |
Microsoft.CodeAnalysis.CSharp.Scripting | 3.9.0-1.final |
Microsoft.CSharp | 4.7.0 |
Microsoft.DotNet.PlatformAbstractions | 3.1.6 |
Microsoft.Extensions.DependencyInjection | 5.0.1 |
Microsoft.NETCore.Platforms | 5.0.0 |
Microsoft.Win32.Registry | 5.0.0 |
Newtonsoft.Json | 12.0.3 |
NuGet.Common | 5.8.0 |
NuGet.Frameworks | 5.8.0 |
NuGet.Packaging | 5.8.0 |
NuGet.Protocol | 5.8.0 |
NuGet.Resolver | 5.8.0 |
NuGet.Versioning | 5.8.0 |
System.Collections.Immutable | 5.0.0 |
System.Reflection.Metadata | 5.0.0 |
xunit | 2.4.1 |
Cake v2.0.0
Reference | Version |
---|---|
Autofac | 6.3.0 |
Microsoft.CodeAnalysis.CSharp.Scripting | 4.0.1 |
Microsoft.CSharp | 4.7.0 |
Microsoft.DotNet.PlatformAbstractions | 3.1.6 |
Microsoft.Extensions.DependencyInjection | 6.0.0 |
Microsoft.NETCore.Platforms | 6.0.0 |
Microsoft.Win32.Registry | 5.0.0 |
Newtonsoft.Json | 13.0.1 |
NuGet.Common | 5.11.0 |
NuGet.Frameworks | 5.11.0 |
NuGet.Packaging | 5.11.0 |
NuGet.Protocol | 5.11.0 |
NuGet.Resolver | 5.11.0 |
NuGet.Versioning | 5.11.0 |
System.Collections.Immutable | 6.0.0 |
System.Reflection.Metadata | 6.0.0 |
xunit | 2.4.1 |
Cake v3.0.0
Reference | Version |
---|---|
Autofac | 6.4.0 |
Microsoft.CodeAnalysis.CSharp.Scripting | 4.4.0-4.final |
Microsoft.CSharp | 4.7.0 |
Microsoft.Extensions.DependencyInjection | 7.0.0 |
Microsoft.NETCore.Platforms | 7.0.0 |
Microsoft.Win32.Registry | 5.0.0 |
Newtonsoft.Json | 13.0.1 |
NuGet.Common | 6.3.1 |
NuGet.Frameworks | 6.3.1 |
NuGet.Packaging | 6.3.1 |
NuGet.Protocol | 6.3.1 |
NuGet.Resolver | 6.3.1 |
NuGet.Versioning | 6.3.1 |
System.Collections.Immutable | 7.0.0 |
System.Reflection.Metadata | 7.0.0 |
xunit | 2.4.2 |
Cake v4.0
Reference | Version |
---|---|
Autofac | 7.1.0 |
Microsoft.CodeAnalysis.CSharp.Scripting | 4.8.0-3.final |
Microsoft.CSharp | 4.7.0 |
Microsoft.Extensions.DependencyInjection | 8.0.0 |
Microsoft.NETCore.Platforms | 7.0.4 |
Microsoft.Win32.Registry | 5.0.0 |
Newtonsoft.Json | 13.0.3 |
NuGet.Common | 6.7.0 |
NuGet.Frameworks | 6.7.0 |
NuGet.Packaging | 6.7.0 |
NuGet.Protocol | 6.7.0 |
NuGet.Resolver | 6.7.0 |
NuGet.Versioning | 6.7.0 |
System.Collections.Immutable | 8.0.0 |
System.Reflection.Metadata | 8.0.0 |
xunit | 2.6.1 |
Related rules
These rules are only applied for project types addin
and module
.
Usage
Using this package automatically enables this guideline.
Settings
Cake Version
It it possible to override the detected Cake version using the CakeContribGuidelinesOverrideTargetFrameworkCakeVersion
setting:
(Keep in mind, though, that it is not recommended override the detected version.)
<PropertyGroup>
<CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>2.0.0</CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>
</PropertyGroup>