diff --git a/.github/workflows/publish-nuget.yaml b/.github/workflows/publish-nuget.yaml
new file mode 100644
index 00000000..d532d1da
--- /dev/null
+++ b/.github/workflows/publish-nuget.yaml
@@ -0,0 +1,64 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+env:
+ BUILD_CONFIG: 'Release'
+ SOLUTION: 'src/Hyperledger.Aries.sln'
+ IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
+ IS_MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' }}
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set Version
+ run: |
+ sudo apt-get install -y libxml2-utils
+ VERSION=$(xmllint --xpath "string(/Project/PropertyGroup/Version)" Directory.Build.props)
+ if $IS_MAIN_BRANCH; then
+ SUFFIX="-rc.{{ github.run_number }}"
+ elif $IS_PULL_REQUEST; then
+ SUFFIX="-pr.${{ github.event.pull_request.number }}.${{ github.run_number }}"
+ fi
+ echo "APP_VERSION=$VERSION$SUFFIX" >> $GITHUB_ENV
+
+ - name: Setup NuGet
+ uses: NuGet/setup-nuget@v1.0.5
+
+ - name: Restore dependencies
+ run: nuget restore $SOLUTION
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 3.1.*
+
+# - name: Install libindy library
+# run: |
+# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
+# sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable"
+# sudo apt-get update \
+# apt-get install -y libindy
+
+ - name: Build
+ run: dotnet build $SOLUTION --configuration $BUILD_CONFIG -p:Version=$APP_VERSION --no-restore
+#
+# - name: Run tests
+# run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --no-restore --no-build --verbosity normal
+
+ - name: Pack WalletFramework
+ run: dotnet pack $SOLUTION --configuration $BUILD_CONFIG -p:Version=$APP_VERSION --no-build --output .
+
+ - name: Publish
+ run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
diff --git a/Directory.Build.props b/Directory.Build.props
index d1e4915e..a8efdd08 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -9,9 +9,8 @@
Hyperledger Aries Dotnet
https://github.com/hyperledger/aries-framework-dotnet.git
git
- 1.6.4
+ 2.0.0
-
@@ -21,11 +20,9 @@
disable
false
-
netstandard2.1
-
2.2.0
@@ -35,13 +32,12 @@
3.1.5
3.1.5
3.1.5
- 17.7.2
+ 16.6.1
4.4.1
4.7.2
-
- 8.0.0
+ 6.0.0
1.12.0
- 6.12.0
+ 5.10.3
9.2.0
9.2.0
2.8.2
@@ -53,7 +49,7 @@
4.14.5
2.0.2
13.0.1
- 4.7.15
+ 4.7.2
7.2.1
5.1.2
5.5.1
@@ -61,8 +57,7 @@
5.5.1
5.5.1
5.5.1
- 2.5.3
+ 2.4.2
2.4.1
-
diff --git a/src/Hyperledger.Aries.AspNetCore.Contracts/Hyperledger.Aries.AspNetCore.Contracts.csproj b/src/Hyperledger.Aries.AspNetCore.Contracts/Hyperledger.Aries.AspNetCore.Contracts.csproj
index cb50fec1..9ce251b2 100644
--- a/src/Hyperledger.Aries.AspNetCore.Contracts/Hyperledger.Aries.AspNetCore.Contracts.csproj
+++ b/src/Hyperledger.Aries.AspNetCore.Contracts/Hyperledger.Aries.AspNetCore.Contracts.csproj
@@ -1,6 +1,7 @@
Api Library
+ WalletFramework.AspNetCore.Contracts
enable
diff --git a/src/Hyperledger.Aries.AspNetCore/Hyperledger.Aries.AspNetCore.csproj b/src/Hyperledger.Aries.AspNetCore/Hyperledger.Aries.AspNetCore.csproj
index bfe2373e..7c95f345 100644
--- a/src/Hyperledger.Aries.AspNetCore/Hyperledger.Aries.AspNetCore.csproj
+++ b/src/Hyperledger.Aries.AspNetCore/Hyperledger.Aries.AspNetCore.csproj
@@ -4,6 +4,7 @@
true
$(NoWarn);1591
ASP.NET Core support for Agent Framework
+ WalletFramework.AspNetCore
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
diff --git a/src/Hyperledger.Aries.Payments.SovrinToken/Hyperledger.Aries.Payments.SovrinToken.csproj b/src/Hyperledger.Aries.Payments.SovrinToken/Hyperledger.Aries.Payments.SovrinToken.csproj
index b4975614..677184d9 100644
--- a/src/Hyperledger.Aries.Payments.SovrinToken/Hyperledger.Aries.Payments.SovrinToken.csproj
+++ b/src/Hyperledger.Aries.Payments.SovrinToken/Hyperledger.Aries.Payments.SovrinToken.csproj
@@ -1,5 +1,6 @@
+ false
bin\$(Configuration)\$(TargetFramework)\Hyperledger.Aries.Payments.SovrinToken.xml
diff --git a/src/Hyperledger.Aries.Routing.Edge/Hyperledger.Aries.Routing.Edge.csproj b/src/Hyperledger.Aries.Routing.Edge/Hyperledger.Aries.Routing.Edge.csproj
index 1cd1feb6..41c63b3f 100644
--- a/src/Hyperledger.Aries.Routing.Edge/Hyperledger.Aries.Routing.Edge.csproj
+++ b/src/Hyperledger.Aries.Routing.Edge/Hyperledger.Aries.Routing.Edge.csproj
@@ -1,5 +1,6 @@
+ WalletFramework.Routing.Edge
bin\$(Configuration)\$(TargetFramework)\Hyperledger.Aries.Routing.Edge.xml
diff --git a/src/Hyperledger.Aries.Routing.Mediator/Hyperledger.Aries.Routing.Mediator.csproj b/src/Hyperledger.Aries.Routing.Mediator/Hyperledger.Aries.Routing.Mediator.csproj
index 559ba6a4..4c3a6bfe 100644
--- a/src/Hyperledger.Aries.Routing.Mediator/Hyperledger.Aries.Routing.Mediator.csproj
+++ b/src/Hyperledger.Aries.Routing.Mediator/Hyperledger.Aries.Routing.Mediator.csproj
@@ -1,6 +1,7 @@
+ WalletFramework.Routing.Mediator
bin\$(Configuration)\$(TargetFramework)\Hyperledger.Aries.Routing.Mediator.xml
diff --git a/src/Hyperledger.Aries.Routing/Hyperledger.Aries.Routing.csproj b/src/Hyperledger.Aries.Routing/Hyperledger.Aries.Routing.csproj
index f510ffa2..ff816e34 100644
--- a/src/Hyperledger.Aries.Routing/Hyperledger.Aries.Routing.csproj
+++ b/src/Hyperledger.Aries.Routing/Hyperledger.Aries.Routing.csproj
@@ -1,5 +1,6 @@
+ WalletFramework.Routing
bin\$(Configuration)\$(TargetFramework)\Hyperledger.Aries.Routing.xml
diff --git a/src/Hyperledger.Aries/Hyperledger.Aries.csproj b/src/Hyperledger.Aries/Hyperledger.Aries.csproj
index 7cd0cbb5..60ab8421 100644
--- a/src/Hyperledger.Aries/Hyperledger.Aries.csproj
+++ b/src/Hyperledger.Aries/Hyperledger.Aries.csproj
@@ -1,6 +1,7 @@
.NET Core tools for building agent services
+ WalletFramework
bin\$(Configuration)\$(TargetFramework)\Hyperledger.Aries.xml
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
enable
@@ -16,7 +17,7 @@
-
+