0
我有一个.net项目,我使用MSBuild插件构建gradle。在最后一项任务中,我想创建一个.msi或.exe安装程序,包括构建步骤中的dll。目前gradle这个构建脚本如下所示:在.net项目中使用setupbuilder插件创建msi或exe安装程序
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.ullink.gradle:gradle-msbuild-plugin:2.16"
classpath "gradle.plugin.de.inetsoftware:SetupBuilder:1.8.0"
}
}
apply plugin: 'msbuild'
apply plugin: "de.inetsoftware.setupbuilder"
msbuild {
// Project solution file
solutionFile = 'Test.sln'
targets = ['Clean', 'Rebuild']
}
setupBuilder {
vendor = 'MyOrg'
application = "Test"
appIdentifier = "Test"
version = '1.0'
licenseFile = 'license.txt'
// icons in different sizes for different usage. you can also use a single *.ico or *.icns file
icons = 'test.icns'
// all files for all platforms
from('testbuild') {
include 'bin/Debug/*.dll'
}
bundleJre = 1.8
}
msi {
// files only for the Windows platform
}
当我运行gradle这个微星,错误是 -
Execution failed for task ':msi'.
> org.gradle.api.internal.file.copy.CopyActionExecuter.<init>(Lorg/gradle/internal/reflect/Instantiator;Lorg/gradle/internal/nativeintegration/filesystem/FileSystem;)V
我使用gradle这个4.2.1,wixtools,setupbuilder 1.8。有没有任何依赖,我失踪或代码块中的东西?