diff --git a/build.gradle.kts b/build.gradle.kts index f2c369c..1779a5f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -122,14 +122,10 @@ tasks { dependsOn(rdGen, generateDotNetSdkProperties, generateNuGetConfig) } - val compileDotNet by registering { + val compileDotNet by registering(Exec::class) { dependsOn(rdGen, generateDotNetSdkProperties, generateNuGetConfig) - doLast { - exec { - executable("dotnet") - args("build", "-c", buildConfiguration) - } - } + executable("dotnet") + args("build", "-c", buildConfiguration) } withType {