diff --git a/src/Cake.NuGet/NuGetModule.cs b/src/Cake.NuGet/NuGetModule.cs index d34fce96e3..ada6473b8b 100644 --- a/src/Cake.NuGet/NuGetModule.cs +++ b/src/Cake.NuGet/NuGetModule.cs @@ -3,10 +3,13 @@ // See the LICENSE file in the project root for more information. using System; +using Cake.Core.Annotations; using Cake.Core.Composition; using Cake.Core.Packaging; using Cake.Core.Scripting.Processors.Loading; +using Cake.NuGet; +[assembly: CakeModule(typeof(NuGetModule))] namespace Cake.NuGet { /// diff --git a/src/Cake/Infrastructure/Composition/ModuleSearcher.cs b/src/Cake/Infrastructure/Composition/ModuleSearcher.cs index 6565d8810f..4c7886458d 100644 --- a/src/Cake/Infrastructure/Composition/ModuleSearcher.cs +++ b/src/Cake/Infrastructure/Composition/ModuleSearcher.cs @@ -37,7 +37,8 @@ public sealed class ModuleSearcher : IModuleSearcher { private static readonly Dictionary _excludedModules = new Dictionary(StringComparer.OrdinalIgnoreCase) { - { "Cake.DotNetTool.Module", "Cake.DotNetTool.Module is now included with Cake, so should no longer be installed separately to module directory or using #module directive" } + { "Cake.DotNetTool.Module", "Cake.DotNetTool.Module is now included with Cake, so should no longer be installed separately to module directory or using #module directive" }, + { "Cake.NuGet", "Cake.NuGet is included with Cake, so should not be installed separately to module directory or using #module directive" } }; private readonly IFileSystem _fileSystem;