You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DotNetTool Module that shipped as part of the Cake release v1.1.0 regressed a fix that was applied in the old repo to target netstandard2.0only due to known limitations in how modules are loaded (docs, #2256).
This causes warnings to appear in the logs for users that are using Cake <= 1.0.0 and are using the DotNetTool module in their build scripts.
What You Are Seeing?
C:\augustoproiete\cake\tool\1.0.0>dotnet cake test-dotnettool-module.cake
Could not load module 'C:/augustoproiete/cake/tool/1.0.0/tools/Modules/Cake.DotNetTool.Module.1.1.0/lib/net5.0/Cake.DotNetTool.Module.dll'. System.ArgumentNullException: Value cannot be null. (Parameter 'element')
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](Assembly element)
at Cake.Infrastructure.Composition.ModuleSearcher.LoadModule(FilePath path, ICakeConfiguration configuration) in C:\projects\cake\src\Cake\Infrastructure\Composition\ModuleSearcher.cs:line 68
Could not load module 'C:/augustoproiete/cake/tool/1.0.0/tools/Modules/Cake.DotNetTool.Module.1.1.0/lib/netstandard2.0/Cake.DotNetTool.Module.dll'. System.ArgumentNullException: Value cannot be null. (Parameter 'element')
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](Assembly element)
at Cake.Infrastructure.Composition.ModuleSearcher.LoadModule(FilePath path, ICakeConfiguration configuration) in C:\projects\cake\src\Cake\Infrastructure\Composition\ModuleSearcher.cs:line 68
What is Expected?
Zero warnings
What version of Cake are you using?
1.0.0 and lower
Are you running on a 32 or 64 bit system?
N/A
What environment are you running on? Windows? Linux? Mac?
N/A
Are you running on a CI Server? If so, which one?
N/A
How Did You Get This To Happen? (Steps to Reproduce)
mkdir cake-1.0.0
cd cake-1.0.0
dotnet new tool-manifest
dotnet tool install Cake.Tool --version 1.0.0
code build.cake
We decided we'll leave it as is and document our general recommendation:
If you use Cake.DotNetTool.Module already on your builds, you should either:
(1) Upgrade Cake to version 1.1.0, and remove the Cake.DotNetTool.Module from your build script (as it's no longer needed)
or
(2) Pin Cake.DotNetTool.Module to a version compatible with the Cake version that you use. Cake.DotNetTool.Module version 1.0.1 is the last version compatible with Cake 1.0.0. Starting with this release, Cake.DotNetTool.Module will always be released together with Cake and will only be compatible with the current release.
The DotNetTool Module that shipped as part of the Cake release v1.1.0 regressed a fix that was applied in the old repo to target
netstandard2.0
only due to known limitations in how modules are loaded (docs, #2256).When we brought the code of the DotNetTool Module to this repo, it went back to targeting multiple TFMs:
net5.0;netstandard2.0;net461
.This causes warnings to appear in the logs for users that are using Cake <= 1.0.0 and are using the DotNetTool module in their build scripts.
What You Are Seeing?
What is Expected?
Zero warnings
What version of Cake are you using?
1.0.0 and lower
Are you running on a 32 or 64 bit system?
N/A
What environment are you running on? Windows? Linux? Mac?
N/A
Are you running on a CI Server? If so, which one?
N/A
How Did You Get This To Happen? (Steps to Reproduce)
Output Log
N/A
The text was updated successfully, but these errors were encountered: