#### Community support has been moved to https://github.com/cake-build/cake/discussions ####
.exe
of the correct version
#tool
directive is used. That registry is queried first.
nm, moved to github discussion
DotNetCoreTool(projectPath, "new nugetconfig")
, can I somehow configure it? for example, I want to change the content of the created file. I guess I can try to do it with something like DotNetCoreToolSettings.WithProperty
, but the constructor of DotNetCoreTool doesn't allow passing this settings
@/all A quick reminder that we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.
We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions
@/all We are starting to prepare our next release, 1.0.0-rc0003 (https://github.com/cake-build/cake/milestone/75?closed=1) :rocket::cake:.
This is your friendly reminder that if you haven't pinned to a specific version of Cake, you should do it now 😉 https://cakebuild.net/docs/writing-builds/reproducible-builds
Hi is there any way to get a collection of arguments but in this way?
--NugetSourceName=Test1, --NugetSourceName=Test2
public class BuildContext : FrostingContext
{
public string Solution { get; }
public ICollection<NugetSource> NugetSource { get; }
public BuildContext(ICakeContext context): base(context)
{
}
}
public class NugetSource
{
public string Name { get; }
public NugetSource(ICakeContext context)
{
Name = context.Arguments.GetArgument("NugetSourceName")
}
}
I don't want this
public class NugetSource
{
public ICollection<string> Name { get; }
public NugetSource(ICakeContext context)
{
Name = context.Arguments.GetArguments("NugetSourceName")
}
}
dotnet cake --prefix=""
dotnet cake --names=""
Error: Expected an option value.
--names=
^ Did you forget the option value?
--name ""