diff --git a/Tapeti.Annotations/Tapeti.Annotations.csproj b/Tapeti.Annotations/Tapeti.Annotations.csproj
index 8ede527..5c1ef0d 100644
--- a/Tapeti.Annotations/Tapeti.Annotations.csproj
+++ b/Tapeti.Annotations/Tapeti.Annotations.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Autofac/Tapeti.Autofac.csproj b/Tapeti.Autofac/Tapeti.Autofac.csproj
index e0100ee..4aabb0c 100644
--- a/Tapeti.Autofac/Tapeti.Autofac.csproj
+++ b/Tapeti.Autofac/Tapeti.Autofac.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.CastleWindsor/Tapeti.CastleWindsor.csproj b/Tapeti.CastleWindsor/Tapeti.CastleWindsor.csproj
index 7ec6d35..2c81fe5 100644
--- a/Tapeti.CastleWindsor/Tapeti.CastleWindsor.csproj
+++ b/Tapeti.CastleWindsor/Tapeti.CastleWindsor.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.DataAnnotations.Extensions/Tapeti.DataAnnotations.Extensions.csproj b/Tapeti.DataAnnotations.Extensions/Tapeti.DataAnnotations.Extensions.csproj
index 8855449..9fd102a 100644
--- a/Tapeti.DataAnnotations.Extensions/Tapeti.DataAnnotations.Extensions.csproj
+++ b/Tapeti.DataAnnotations.Extensions/Tapeti.DataAnnotations.Extensions.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.DataAnnotations/Tapeti.DataAnnotations.csproj b/Tapeti.DataAnnotations/Tapeti.DataAnnotations.csproj
index 834acf7..d0cac34 100644
--- a/Tapeti.DataAnnotations/Tapeti.DataAnnotations.csproj
+++ b/Tapeti.DataAnnotations/Tapeti.DataAnnotations.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj b/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj
index 44bd845..428bda5 100644
--- a/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj
+++ b/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Flow/Tapeti.Flow.csproj b/Tapeti.Flow/Tapeti.Flow.csproj
index c6b101f..d2939b4 100644
--- a/Tapeti.Flow/Tapeti.Flow.csproj
+++ b/Tapeti.Flow/Tapeti.Flow.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Ninject/Tapeti.Ninject.csproj b/Tapeti.Ninject/Tapeti.Ninject.csproj
index 864ff7a..914e276 100644
--- a/Tapeti.Ninject/Tapeti.Ninject.csproj
+++ b/Tapeti.Ninject/Tapeti.Ninject.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Serilog/Tapeti.Serilog.csproj b/Tapeti.Serilog/Tapeti.Serilog.csproj
index c643fa4..20e9996 100644
--- a/Tapeti.Serilog/Tapeti.Serilog.csproj
+++ b/Tapeti.Serilog/Tapeti.Serilog.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.SimpleInjector/Tapeti.SimpleInjector.csproj b/Tapeti.SimpleInjector/Tapeti.SimpleInjector.csproj
index 4804e37..e9fa456 100644
--- a/Tapeti.SimpleInjector/Tapeti.SimpleInjector.csproj
+++ b/Tapeti.SimpleInjector/Tapeti.SimpleInjector.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.Transient/Tapeti.Transient.csproj b/Tapeti.Transient/Tapeti.Transient.csproj
index dbe9e14..21f80d7 100644
--- a/Tapeti.Transient/Tapeti.Transient.csproj
+++ b/Tapeti.Transient/Tapeti.Transient.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti.UnityContainer/Tapeti.UnityContainer.csproj b/Tapeti.UnityContainer/Tapeti.UnityContainer.csproj
index 16df73c..fe9aab8 100644
--- a/Tapeti.UnityContainer/Tapeti.UnityContainer.csproj
+++ b/Tapeti.UnityContainer/Tapeti.UnityContainer.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/Tapeti/Tapeti.csproj b/Tapeti/Tapeti.csproj
index d115af9..a1cb606 100644
--- a/Tapeti/Tapeti.csproj
+++ b/Tapeti/Tapeti.csproj
@@ -3,6 +3,7 @@
netstandard2.0
true
+ 2.0.0
diff --git a/appveyor.yml b/appveyor.yml
index 96fe67d..bb19263 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -6,7 +6,8 @@ install:
before_build:
- nuget restore
- - ps: gitversion /l console /output buildserver /updateAssemblyInfo
+ - ps: gitversion /l console /output buildserver
+ - ps: build\UpdateVersion.ps1
after_build:
# Tapeti
@@ -50,9 +51,6 @@ after_build:
- cmd: nuget pack Tapeti.UnityContainer\Tapeti.UnityContainer.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Tapeti.UnityContainer.%GitVersion_NuGetVersion%.nupkg"
-assembly_info:
- patch: false
-
build:
project: Tapeti.sln
diff --git a/build/UpdateVersion.ps1 b/build/UpdateVersion.ps1
new file mode 100644
index 0000000..70e542c
--- /dev/null
+++ b/build/UpdateVersion.ps1
@@ -0,0 +1,29 @@
+# For debugging purposes
+if (-not (Test-Path env:APPVEYOR_BUILD_FOLDER))
+{
+ Write-Host "Warning: APPVEYOR_BUILD_FOLDER environment variable not set"
+ $env:APPVEYOR_BUILD_FOLDER = "P:\Tapeti"
+}
+
+if (-not (Test-Path env:GitVersion_AssemblySemVer))
+{
+ Write-Host "Warning: GitVersion_AssemblySemVer environment variable not set"
+ $env:GitVersion_AssemblySemVer = "2.0.0"
+}
+
+
+$projectFiles = Get-ChildItem $env:APPVEYOR_BUILD_FOLDER -Recurse *.csproj | Select -ExpandProperty FullName
+foreach ($projectFile in $projectFiles)
+{
+ $contents = Get-Content -Path $projectFile
+ if ($contents -match "(.+?)")
+ {
+ $contents = $contents -replace "(.+?)", "$($env:GitVersion_AssemblySemVer)"
+ Set-Content -Path $projectFile -Value $contents
+ Write-Host "Updated $($projectFile)"
+ }
+ else
+ {
+ Write-Host "No version information in $($projectFile)"
+ }
+}
\ No newline at end of file