MSBuild has a switch "--self-contained" what publishes also the used .NET framework. So cake has a Function "DotNetCorePublish". Exists any way to set up that function so it delivers also the framework?
CodePudding user response:
Looks like you're looking for DotNetPublishSettings.SelfContained
:
var settings = new DotNetPublishSettings
{
SelfContained = true,
// ...
};
DotNetPublish("./src/*", settings);