-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#22 Update remaining files necessary for release
- Loading branch information
Showing
5 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
var target = Argument("target", "Default"); | ||
|
||
var solutionFile = "./Pose.sln"; | ||
var nuspecFileName = "Poser"; | ||
|
||
Task("Build") | ||
.Does(() => | ||
{ | ||
var buildSettings = new DotNetCoreBuildSettings | ||
{ | ||
Configuration = "Release", | ||
Verbosity = DotNetCoreVerbosity.Minimal | ||
}; | ||
DotNetCoreBuild(solutionFile, buildSettings); | ||
}); | ||
|
||
Task("Test") | ||
.Does(() => | ||
{ | ||
var settings = new DotNetCoreTestSettings | ||
{ | ||
Verbosity = DotNetCoreVerbosity.Minimal | ||
}; | ||
DotNetCoreTest(solutionFile, settings); | ||
}) | ||
; | ||
|
||
Task("Default") | ||
.IsDependentOn("Build") | ||
.IsDependentOn("Test") | ||
; | ||
|
||
Task("Pack") | ||
//.IsDependentOn("Build") | ||
//.IsDependentOn("Test") | ||
.Does(() => | ||
{ | ||
Pack("Pose", new [] { "netstandard2.0" }); | ||
}) | ||
; | ||
|
||
RunTarget(target); | ||
|
||
public void Pack(string projectName, string[] targets) | ||
{ | ||
var buildSettings = new DotNetCoreMSBuildSettings() | ||
.WithProperty("NuspecFile", $"../../nuget/{nuspecFileName}.nuspec") | ||
.WithProperty("NuspecBasePath", "bin/Release"); | ||
var settings = new DotNetCorePackSettings | ||
{ | ||
MSBuildSettings = buildSettings, | ||
Verbosity = DotNetCoreVerbosity.Minimal, | ||
Configuration = "Release", | ||
IncludeSource = true, | ||
IncludeSymbols = true, | ||
OutputDirectory = "./nuget" | ||
}; | ||
|
||
DotNetCorePack($"./src/{projectName}/{projectName}.csproj", settings); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters