diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index cd3efc60..ac8d51b7 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -8,6 +8,7 @@ jobs:
build_csharp:
strategy:
matrix:
+ grpc-web: [false, true]
include:
- os: ubuntu-latest
target-framework: net6.0
@@ -47,7 +48,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
- run: dotnet build
+ run: dotnet build ${{ matrix.grpc-web == 'true' && '-p:DefineConstants=USE_GRPC_WEB' || '' }}
- name: Unit Test
run: dotnet test --logger "console;verbosity=detailed" -f ${{ matrix.target-framework }} tests/Unit/Momento.Sdk.Tests
diff --git a/.github/workflows/on-push-to-main-branch.yaml b/.github/workflows/on-push-to-main-branch.yaml
index 1ee763cd..f42cfabc 100644
--- a/.github/workflows/on-push-to-main-branch.yaml
+++ b/.github/workflows/on-push-to-main-branch.yaml
@@ -8,9 +8,12 @@ jobs:
build_csharp:
strategy:
matrix:
+ grpc-web: [false, true]
include:
- os: ubuntu-latest
target-framework: net6.0
+ - os: windows-latest
+ target-framework: net6.0
- os: windows-latest
target-framework: net462
runs-on: ${{ matrix.os }}
@@ -32,7 +35,7 @@ jobs:
dotnet-version: "6.0.x"
- name: Build
- run: dotnet build
+ run: dotnet build ${{ matrix.grpc-web == 'true' && '-p:DefineConstants=USE_GRPC_WEB' || '' }}
- name: Unit Test
run: dotnet test -f ${{ matrix.target-framework }} tests/Unit/Momento.Sdk.Tests
diff --git a/src/Momento.Sdk/Momento.Sdk.csproj b/src/Momento.Sdk/Momento.Sdk.csproj
index 4aea7550..53553cb8 100644
--- a/src/Momento.Sdk/Momento.Sdk.csproj
+++ b/src/Momento.Sdk/Momento.Sdk.csproj
@@ -30,13 +30,6 @@
https://github.com/momentohq/client-sdk-dotnet
-
-
- USE_GRPC_WEB
-
-
@@ -66,7 +59,7 @@
-
+