diff --git a/BuildAssets/Octopus.Core.Parsers.Hcl.nuspec b/BuildAssets/Octopus.CoreParsers.Hcl.nuspec
similarity index 87%
rename from BuildAssets/Octopus.Core.Parsers.Hcl.nuspec
rename to BuildAssets/Octopus.CoreParsers.Hcl.nuspec
index c456a90..d09a1c6 100644
--- a/BuildAssets/Octopus.Core.Parsers.Hcl.nuspec
+++ b/BuildAssets/Octopus.CoreParsers.Hcl.nuspec
@@ -24,6 +24,7 @@
-
+
+
diff --git a/build.cake b/build.cake
index c5bf87b..8c61d96 100644
--- a/build.cake
+++ b/build.cake
@@ -22,7 +22,7 @@ var artifactsDir = "./artifacts";
var assetDir = "./BuildAssets";
var globalAssemblyFile = "./source/Solution Items/VersionInfo.cs";
var solutionToBuild = "./source/Octopus.Core.Parsers.Hcl.sln";
-var fileToPublish = "./source/Octopus.Core.Parsers.Hcl/bin/Release/netcoreapp2.0/Octopus.Core.Parsers.Hcl.dll";
+var directoryToPublish = "./source/Octopus.Core.Parsers.Hcl/bin/Release";
var cleanups = new List();
@@ -41,7 +41,7 @@ Setup(context =>
BuildSystem.TeamCity.SetBuildNumber(gitVersionInfo.NuGetVersion);
if(BuildSystem.IsRunningOnAppVeyor)
AppVeyor.UpdateBuildVersion(gitVersionInfo.NuGetVersion);
- Information("Building Octopus.Core.Parsers.Hcl v{0}", nugetVersion);
+ Information("Building Octopus.CoreParsers.Hcl v{0}", nugetVersion);
});
Teardown(context =>
@@ -103,11 +103,11 @@ Task("__Build")
Task("__Pack")
.Does(() => {
var nugetPackDir = Path.Combine(publishDir, "nuget");
- var nuspecFile = "Octopus.Core.Parsers.Hcl.nuspec";
+ var nuspecFile = "Octopus.CoreParsers.Hcl.nuspec";
CreateDirectory(nugetPackDir);
CopyFileToDirectory(Path.Combine(assetDir, nuspecFile), nugetPackDir);
- CopyFileToDirectory(fileToPublish, nugetPackDir);
+ CopyDirectory(directoryToPublish, nugetPackDir);
NuGetPack(Path.Combine(nugetPackDir, nuspecFile), new NuGetPackSettings {
Version = nugetVersion,
@@ -119,14 +119,14 @@ Task("__Publish")
.WithCriteria(BuildSystem.IsRunningOnTeamCity)
.Does(() =>
{
- NuGetPush($"{artifactsDir}/Octopus.Core.Parsers.Hcl.{nugetVersion}.nupkg", new NuGetPushSettings {
+ NuGetPush($"{artifactsDir}/Octopus.CoreParsers.Hcl.{nugetVersion}.nupkg", new NuGetPushSettings {
Source = "https://octopus.myget.org/F/octopus-dependencies/api/v3/index.json",
ApiKey = EnvironmentVariable("MyGetApiKey")
});
if (gitVersionInfo.PreReleaseLabel == "")
{
- NuGetPush($"{artifactsDir}/Octopus.Core.Parsers.Hcl.{nugetVersion}.nupkg", new NuGetPushSettings {
+ NuGetPush($"{artifactsDir}/Octopus.CoreParsers.Hcl.{nugetVersion}.nupkg", new NuGetPushSettings {
Source = "https://www.nuget.org/api/v2/package",
ApiKey = EnvironmentVariable("NuGetApiKey")
});
@@ -139,7 +139,7 @@ Task("__CopyToLocalPackages")
.Does(() =>
{
CreateDirectory(localPackagesDir);
- CopyFileToDirectory(Path.Combine(artifactsDir, $"Octopus.Core.Parsers.Hcl.{nugetVersion}.nupkg"), localPackagesDir);
+ CopyFileToDirectory(Path.Combine(artifactsDir, $"Octopus.CoreParsers.Hcl.{nugetVersion}.nupkg"), localPackagesDir);
});
private class AutoRestoreFile : IDisposable
diff --git a/source/Octopus.Core.Parsers.Hcl.Tests/Octopus.Core.Parsers.Hcl.Tests.csproj b/source/Octopus.Core.Parsers.Hcl.Tests/Octopus.Core.Parsers.Hcl.Tests.csproj
index 7d3fe12..37d745f 100644
--- a/source/Octopus.Core.Parsers.Hcl.Tests/Octopus.Core.Parsers.Hcl.Tests.csproj
+++ b/source/Octopus.Core.Parsers.Hcl.Tests/Octopus.Core.Parsers.Hcl.Tests.csproj
@@ -6,6 +6,7 @@
false
+
diff --git a/source/Octopus.Core.Parsers.Hcl.sln b/source/Octopus.Core.Parsers.Hcl.sln
index 213174d..94e2bdd 100644
--- a/source/Octopus.Core.Parsers.Hcl.sln
+++ b/source/Octopus.Core.Parsers.Hcl.sln
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27604.0
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopus.Core.Parsers.Hcl.Tests", "Octopus.Core.Parsers.Hcl.Tests\Octopus.Core.Parsers.Hcl.Tests.csproj", "{C2D0CE75-2222-4B3B-8D02-D5DE8E2E887B}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Octopus.Core.Parsers.Hcl.Tests", "Octopus.Core.Parsers.Hcl.Tests\Octopus.Core.Parsers.Hcl.Tests.csproj", "{C2D0CE75-2222-4B3B-8D02-D5DE8E2E887B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopus.Core.Parsers.Hcl", "Octopus.Core.Parsers.Hcl\Octopus.Core.Parsers.Hcl.csproj", "{2C02A830-2CA9-4547-B49A-60B7E8DB6B96}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Octopus.Core.Parsers.Hcl", "Octopus.Core.Parsers.Hcl\Octopus.Core.Parsers.Hcl.csproj", "{2C02A830-2CA9-4547-B49A-60B7E8DB6B96}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/source/Octopus.Core.Parsers.Hcl/Octopus.Core.Parsers.Hcl.csproj b/source/Octopus.Core.Parsers.Hcl/Octopus.Core.Parsers.Hcl.csproj
index 2925be0..7dc6465 100644
--- a/source/Octopus.Core.Parsers.Hcl/Octopus.Core.Parsers.Hcl.csproj
+++ b/source/Octopus.Core.Parsers.Hcl/Octopus.Core.Parsers.Hcl.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.0
+ netcoreapp2.0;net40
false