diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 0000000..7a0f467
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,10 @@
+
+
+
+ $(MSBuildThisFileDirectory)build\$(Configuration)\
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.proj b/build.proj
index b73737b..3778c63 100644
--- a/build.proj
+++ b/build.proj
@@ -3,6 +3,7 @@
Debug
$(MSBuildThisFileDirectory)build\$(Configuration)
+ true
@@ -30,9 +31,9 @@
-
-
-
+
+
+
diff --git a/eng/azure-pipelines-nightly.yml b/eng/azure-pipelines-nightly.yml
new file mode 100644
index 0000000..bd51c8c
--- /dev/null
+++ b/eng/azure-pipelines-nightly.yml
@@ -0,0 +1,12 @@
+pool:
+ vmImage: 'windows-2019'
+steps:
+- task: DotNetCoreInstaller@0
+ inputs:
+ version: '2.2.300'
+- powershell:
+ .\eng\nightly.ps1 -apiKey $env:APIKEY -source $env:SOURCE
+ ignoreLASTEXITCODE: "true"
+ env:
+ APIKEY: $(apikey)
+ SOURCE: $(source)
\ No newline at end of file
diff --git a/eng/nightly.ps1 b/eng/nightly.ps1
new file mode 100644
index 0000000..4fb5568
--- /dev/null
+++ b/eng/nightly.ps1
@@ -0,0 +1,19 @@
+param (
+ [string]$apiKey,
+ [string]$source
+ )
+
+if (!$apiKey -or !$source)
+{
+ Write-Host -ForegroundColor Red Specify apiKey and source
+ exit
+}
+
+Write-Host -ForegroundColor Blue Publish with .NET CLI
+& dotnet --info
+
+Write-Host -ForegroundColor Green Create Packages
+& dotnet msbuild "$PSScriptRoot\..\build.proj" /t:CreateNuGetPackage /p:Configuration=Release /p:PublicRelease=false # amend build.proj path if changes
+
+Write-Host -ForegroundColor Green Upload Packages
+& dotnet nuget push "$PSScriptRoot\..\build\Release\*.nupkg" -k $apiKey -s $source
\ No newline at end of file
diff --git a/global.json b/global.json
new file mode 100644
index 0000000..c71d619
--- /dev/null
+++ b/global.json
@@ -0,0 +1,5 @@
+{
+ "sdk": {
+ "version": "2.2.300"
+ }
+}
\ No newline at end of file
diff --git a/src/coverlet.collector/coverlet.collector.csproj b/src/coverlet.collector/coverlet.collector.csproj
index dae8389..10d0af8 100644
--- a/src/coverlet.collector/coverlet.collector.csproj
+++ b/src/coverlet.collector/coverlet.collector.csproj
@@ -1,12 +1,8 @@
-
-
+
netcoreapp2.0
coverlet.collector
- 1.0.0
-
coverlet.collector
- $(AssemblyVersion)
coverlet.collector
tonerdo
MIT
@@ -19,6 +15,7 @@
git
https://github.com/tonerdo/coverlet
true
+ coverlet.collector.nuspec
@@ -65,4 +62,11 @@
+
+
+ $(NuspecProperties);version=$(NuGetPackageVersion);configuration=$(Configuration)
+
+
+
+
diff --git a/src/coverlet.collector/coverlet.collector.nuspec b/src/coverlet.collector/coverlet.collector.nuspec
index 7da3d08..d8eb853 100644
--- a/src/coverlet.collector/coverlet.collector.nuspec
+++ b/src/coverlet.collector/coverlet.collector.nuspec
@@ -2,7 +2,7 @@
coverlet.collector
- 1.0.0
+ $version$
coverlet.collector
tonerdo
tonerdo
@@ -14,8 +14,8 @@
coverage testing unit-test lcov opencover quality
-
-
+
+
\ No newline at end of file
diff --git a/src/coverlet.collector/version.json b/src/coverlet.collector/version.json
new file mode 100644
index 0000000..ef37068
--- /dev/null
+++ b/src/coverlet.collector/version.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
+ "version": "1.0.0",
+ "publicReleaseRefSpec": [
+ "^refs/heads/master$"
+ ]
+}
\ No newline at end of file
diff --git a/src/coverlet.console/coverlet.console.csproj b/src/coverlet.console/coverlet.console.csproj
index aeb6036..4a0aa49 100644
--- a/src/coverlet.console/coverlet.console.csproj
+++ b/src/coverlet.console/coverlet.console.csproj
@@ -6,10 +6,8 @@
coverlet
true
coverlet.console
- 1.5.1
tonerdo
$(AssemblyTitle)
- $(AssemblyTitle)
Coverlet is a cross platform code coverage tool for .NET, with support for line, branch and method coverage.
$(AssemblyVersion)
coverage;testing;unit-test;lcov;opencover;quality
diff --git a/src/coverlet.console/version.json b/src/coverlet.console/version.json
new file mode 100644
index 0000000..1f5147a
--- /dev/null
+++ b/src/coverlet.console/version.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
+ "version": "1.5.1",
+ "publicReleaseRefSpec": [
+ "^refs/heads/master$"
+ ]
+}
\ No newline at end of file
diff --git a/src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj b/src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj
index 11faca5..a9ef490 100644
--- a/src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj
+++ b/src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj
@@ -4,10 +4,7 @@
Library
netstandard2.0
coverlet.msbuild.tasks
- 2.6.1
-
coverlet.msbuild
- $(AssemblyVersion)
coverlet.msbuild
tonerdo
MIT
diff --git a/src/coverlet.msbuild.tasks/version.json b/src/coverlet.msbuild.tasks/version.json
new file mode 100644
index 0000000..8a3846b
--- /dev/null
+++ b/src/coverlet.msbuild.tasks/version.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
+ "version": "2.6.1",
+ "publicReleaseRefSpec": [
+ "^refs/heads/master$"
+ ]
+}
\ No newline at end of file