Build instead of compile for samples
This commit is contained in:
parent
a3498fa5a2
commit
7a19d9a9a9
|
|
@ -1,6 +1,6 @@
|
||||||
@{/*
|
@{/*
|
||||||
|
|
||||||
dotnet-compile
|
dotnet-build
|
||||||
Builds a project.
|
Builds a project.
|
||||||
|
|
||||||
projectFile=''
|
projectFile=''
|
||||||
|
|
@ -11,7 +11,7 @@ configuration=''
|
||||||
*/}
|
*/}
|
||||||
|
|
||||||
default configuration = 'Debug'
|
default configuration = 'Debug'
|
||||||
default compile_options=' ${E("KOREBUILD_DOTNET_COMPILE_OPTIONS")}'
|
default build_options=' ${E("KOREBUILD_DOTNET_BUILD_OPTIONS")}'
|
||||||
|
|
||||||
@{
|
@{
|
||||||
var projectFolder=Path.GetDirectoryName(projectFile);
|
var projectFolder=Path.GetDirectoryName(projectFile);
|
||||||
|
|
@ -19,6 +19,6 @@ default compile_options=' ${E("KOREBUILD_DOTNET_COMPILE_OPTIONS")}'
|
||||||
|
|
||||||
DeleteFolder(projectBin);
|
DeleteFolder(projectBin);
|
||||||
|
|
||||||
var dotnetArgs=string.Format("compile{0} {1} --configuration {2}", compile_options, projectFolder, configuration);
|
var dotnetArgs=string.Format("build{0} {1} --configuration {2}", build_options, projectFolder, configuration);
|
||||||
Dotnet(dotnetArgs);
|
Dotnet(dotnetArgs);
|
||||||
}
|
}
|
||||||
|
|
@ -169,7 +169,7 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json'
|
||||||
#build-samples target='test' if='Directory.Exists("samples")'
|
#build-samples target='test' if='Directory.Exists("samples")'
|
||||||
@{
|
@{
|
||||||
var projectFiles = Files.Include("samples/**/project.json").ToList();
|
var projectFiles = Files.Include("samples/**/project.json").ToList();
|
||||||
projectFiles.ForEach(projectFile => DotnetCompile(projectFile, Configuration));
|
projectFiles.ForEach(projectFile => DotnetBuild(projectFile, Configuration));
|
||||||
}
|
}
|
||||||
|
|
||||||
#make-roslyn-fast
|
#make-roslyn-fast
|
||||||
|
|
@ -307,8 +307,8 @@ macro name='Dotnet' command='string'
|
||||||
macro name='Dotnet' command='string' dotnetDir='string'
|
macro name='Dotnet' command='string' dotnetDir='string'
|
||||||
dotnet
|
dotnet
|
||||||
|
|
||||||
macro name="DotnetCompile" projectFile='string' configuration='string'
|
macro name="DotnetBuild" projectFile='string' configuration='string'
|
||||||
dotnet-compile
|
dotnet-build
|
||||||
|
|
||||||
macro name="DotnetPack" projectFile='string' dotnetPackOutputDir='string' configuration='string'
|
macro name="DotnetPack" projectFile='string' dotnetPackOutputDir='string' configuration='string'
|
||||||
dotnet-pack
|
dotnet-pack
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue