Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteDev committed Feb 13, 2020
1 parent c7e91d7 commit 53bc926
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions build/ByteDev.Configuration.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
<tags>configuration config app.config settings connection string section</tags>
<iconUrl>https://raw.githubusercontent.com/bytedev/ByteDev.Configuration/master/images/icon.png</iconUrl>
<dependencies>
<group targetFramework=".NETStandard2.0" />
<dependency id="System.Configuration.ConfigurationManager" version="4.7.0" />
<group targetFramework=".NETStandard2.0">
<dependency id="System.Configuration.ConfigurationManager" version="4.7.0" />
</group>
</dependencies>
</metadata>
<files>
Expand Down
17 changes: 9 additions & 8 deletions build/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
#tool "nuget:?package=GitVersion.CommandLine&version=5.1.3"
#load "ByteDev.Utilities.cake"

var nugetSources = new[] {"https://api.nuget.org/v3/index.json"};
var solutionName = "ByteDev.Configuration";
var projName = "ByteDev.Configuration";

var target = Argument("target", "Default");
var solutionFilePath = "../" + solutionName + ".sln";
var nuspecFilePath = projName + ".nuspec";

var repoName = "ByteDev.Configuration";
var nugetSources = new[] {"https://api.nuget.org/v3/index.json"};

var solutionFilePath = $"../{repoName}.sln";
var target = Argument("target", "Default");

var artifactsDirectory = Directory("../artifacts");
var nugetDirectory = artifactsDirectory + Directory("NuGet");
Expand Down Expand Up @@ -65,14 +67,13 @@ Task("CreateNuGetPackages")
{
var nugetVersion = GetNuGetVersion();
var settings = new DotNetCorePackSettings()
var nugetSettings = new NuGetPackSettings
{
ArgumentCustomization = args => args.Append("/p:Version=" + nugetVersion),
Configuration = configuration,
Version = nugetVersion,
OutputDirectory = nugetDirectory
};
DotNetCorePack($"../src/{repoName}/ByteDev.Configuration.csproj", settings);
NuGetPack(nuspecFilePath, nugetSettings);
});


Expand Down

0 comments on commit 53bc926

Please sign in to comment.