diff --git a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Aquality.Selenium.Core.csproj b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Aquality.Selenium.Core.csproj
index c215101..d573712 100644
--- a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Aquality.Selenium.Core.csproj
+++ b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Aquality.Selenium.Core.csproj
@@ -10,7 +10,7 @@
Core functions for Selenium-based libraries for .NET
Core functions for Selenium-based libraries for .NET
- https://github.com/aquality-automation/aquality-selenium-dotnet
+ https://github.com/aquality-automation/aquality-selenium-core-dotnet
git
selenium webdriver automation
LICENSE
diff --git a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/ElementFactory.cs b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/ElementFactory.cs
index 15489df..7194b91 100644
--- a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/ElementFactory.cs
+++ b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/ElementFactory.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics.Contracts;
using System.Linq;
using System.Reflection;
using Aquality.Selenium.Core.Elements.Interfaces;
diff --git a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/ApplicationManagerTests.cs b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/ApplicationManagerTests.cs
index 44a143c..8609086 100644
--- a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/ApplicationManagerTests.cs
+++ b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/ApplicationManagerTests.cs
@@ -45,7 +45,7 @@ private static IServiceCollection RegisterServices(Func(new CustomTimeoutConfiguration(settingsFile));
return services;
}
diff --git a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/WindowsApp/Elements/Button.cs b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/WindowsApp/Elements/Button.cs
index bb1e8ae..f7db254 100644
--- a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/WindowsApp/Elements/Button.cs
+++ b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Applications/WindowsApp/Elements/Button.cs
@@ -1,5 +1,4 @@
-using Aquality.Selenium.Core.Elements;
-using OpenQA.Selenium;
+using OpenQA.Selenium;
namespace Aquality.Selenium.Core.Tests.Applications.WindowsApp.Elements
{
diff --git a/GitVersion.yml b/GitVersion.yml
new file mode 100644
index 0000000..c58bd66
--- /dev/null
+++ b/GitVersion.yml
@@ -0,0 +1,6 @@
+next-version: 1.0
+mode: Mainline
+increment: Inherit
+branches: {}
+ignore:
+ sha: []
\ No newline at end of file
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index a4d8484..2d97897 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -10,6 +10,10 @@ pool:
vmImage: 'windows-latest'
steps:
+- task: GitVersion@5
+ displayName: 'Run GitVersion'
+ inputs:
+ runtime: 'core'
- task: SonarCloudPrepare@1
displayName: 'Prepare SonarCloud analysis'
@@ -47,4 +51,27 @@ steps:
displayName: stop WinAppDriver
inputs:
OperationType: 'Stop'
-
\ No newline at end of file
+
+- script: dotnet pack Aquality.Selenium.Core\src\Aquality.Selenium.Core\Aquality.Selenium.Core.csproj -c $(buildConfiguration) --no-build -p:Version=$(GitVersion.NuGetVersion) -o $(Build.ArtifactStagingDirectory)
+ displayName: 'Create NuGet package'
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
+
+- task: NuGetCommand@2
+ displayName: 'Push NuGet package'
+ inputs:
+ command: 'push'
+ packagesToPush: '$(Build.ArtifactStagingDirectory)/**/Aquality.Selenium.Core*.nupkg;!$(Build.ArtifactStagingDirectory)/**/Aquality.Selenium.Core*.symbols.nupkg'
+ nuGetFeedType: 'external'
+ publishFeedCredentials: 'NuGet'
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
+
+- task: GitHubRelease@0
+ displayName: 'Create tag on GitHub'
+ inputs:
+ gitHubConnection: 'GitHub'
+ repositoryName: 'aquality-automation/aquality-selenium-core-dotnet'
+ action: 'create'
+ tag: 'v$(GitVersion.NuGetVersion)'
+ tagSource: 'manual'
+ isPreRelease: contains(variables['GitVersion.NuGetVersion'], '-')
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
\ No newline at end of file