diff --git a/actors/csharp/sdk/client/SmartDevice.Client.csproj b/actors/csharp/sdk/client/SmartDevice.Client.csproj
index f683cc38..fcbfbf3b 100644
--- a/actors/csharp/sdk/client/SmartDevice.Client.csproj
+++ b/actors/csharp/sdk/client/SmartDevice.Client.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/actors/csharp/sdk/interfaces/SmartDevice.Interfaces.csproj b/actors/csharp/sdk/interfaces/SmartDevice.Interfaces.csproj
index 83aa2f67..3dd42b06 100644
--- a/actors/csharp/sdk/interfaces/SmartDevice.Interfaces.csproj
+++ b/actors/csharp/sdk/interfaces/SmartDevice.Interfaces.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/actors/csharp/sdk/service/SmartDevice.Service.csproj b/actors/csharp/sdk/service/SmartDevice.Service.csproj
index 77c2251e..03f7777f 100644
--- a/actors/csharp/sdk/service/SmartDevice.Service.csproj
+++ b/actors/csharp/sdk/service/SmartDevice.Service.csproj
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/bindings/csharp/sdk/batch/batch.csproj b/bindings/csharp/sdk/batch/batch.csproj
index 1d43dc76..2ef1a7c9 100644
--- a/bindings/csharp/sdk/batch/batch.csproj
+++ b/bindings/csharp/sdk/batch/batch.csproj
@@ -8,7 +8,7 @@
-
+
\ No newline at end of file
diff --git a/configuration/csharp/sdk/order-processor/Program.csproj b/configuration/csharp/sdk/order-processor/Program.csproj
index c697a89c..abefa24a 100644
--- a/configuration/csharp/sdk/order-processor/Program.csproj
+++ b/configuration/csharp/sdk/order-processor/Program.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/conversation/csharp/sdk/conversation/Program.csproj b/conversation/csharp/sdk/conversation/Program.csproj
index a2663eb0..2ffc69b7 100644
--- a/conversation/csharp/sdk/conversation/Program.csproj
+++ b/conversation/csharp/sdk/conversation/Program.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/makefile b/makefile
index f7b0fccc..a289c5e5 100644
--- a/makefile
+++ b/makefile
@@ -71,6 +71,78 @@ update_python_sdk_version:
@echo "Python dependency update complete! Please verify changes and run tests before committing."
+
+# Target to update Dapr package versions in all C# quickstarts (SDK variant only)
+# Usage: make update_dotnet_sdk_version VERSION=1.15.0
+update_dotnet_sdk_version:
+ @if [ -z "$(VERSION)" ]; then \
+ echo "Error: VERSION parameter is required. Usage: make update_csharp_dapr VERSION=1.16.0-rc01"; \
+ exit 1; \
+ fi
+ @echo "Updating Dapr packages to version $(VERSION) in all C# projects..."
+
+ @# Process standard SDK quickstarts
+ @echo "Processing SDK quickstarts..."
+ @building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
+ for building_block in $$building_blocks; do \
+ if [ -d "$$building_block/csharp/sdk" ]; then \
+ echo "Checking $$building_block/csharp/sdk for .csproj files"; \
+ CSPROJ_FILES=$$(find "$$building_block/csharp/sdk" -name "*.csproj"); \
+ if [ -n "$$CSPROJ_FILES" ]; then \
+ for CSPROJ in $$CSPROJ_FILES; do \
+ echo "Processing: $$CSPROJ"; \
+ PROJ_DIR=$$(dirname "$$CSPROJ"); \
+ DAPR_LINES=$$(grep -A1 "PackageReference Include=\"Dapr." "$$CSPROJ" || echo ""); \
+ if [ -n "$$DAPR_LINES" ]; then \
+ echo "$$DAPR_LINES" | grep "Include=\"Dapr." | while read -r LINE; do \
+ PACKAGE=$$(echo $$LINE | sed 's/.*Include="\([^"]*\)".*/\1/'); \
+ echo " Updating $$PACKAGE to version $(VERSION)"; \
+ (cd "$$PROJ_DIR" && dotnet add "$$(basename $$CSPROJ)" package "$$PACKAGE" --version $(VERSION)) || \
+ echo " Failed to update $$PACKAGE in $$CSPROJ"; \
+ done; \
+ else \
+ echo " No Dapr package references found in $$CSPROJ"; \
+ fi; \
+ done; \
+ else \
+ echo "No .csproj files found in $$building_block/csharp/sdk"; \
+ fi; \
+ fi; \
+ done
+
+ @# Process tutorials directory separately
+ @echo "Processing tutorials directory..."
+ @if [ -d "./tutorials" ]; then \
+ echo "Searching tutorials for .csproj files with Dapr references..."; \
+ TUTORIAL_CSPROJ_FILES=$$(find "./tutorials" -name "*.csproj"); \
+ if [ -n "$$TUTORIAL_CSPROJ_FILES" ]; then \
+ for CSPROJ in $$TUTORIAL_CSPROJ_FILES; do \
+ echo "Processing tutorial: $$CSPROJ"; \
+ PROJ_DIR=$$(dirname "$$CSPROJ"); \
+ DAPR_LINES=$$(grep -A1 "PackageReference Include=\"Dapr." "$$CSPROJ" || echo ""); \
+ if [ -n "$$DAPR_LINES" ]; then \
+ echo "$$DAPR_LINES" | grep "Include=\"Dapr." | while read -r LINE; do \
+ PACKAGE=$$(echo $$LINE | sed 's/.*Include="\([^"]*\)".*/\1/'); \
+ echo " Updating $$PACKAGE to version $(VERSION)"; \
+ (cd "$$PROJ_DIR" && dotnet add "$$(basename $$CSPROJ)" package "$$PACKAGE" --version $(VERSION)) || \
+ echo " Failed to update $$PACKAGE in $$CSPROJ"; \
+ done; \
+ else \
+ echo " No Dapr package references found in $$CSPROJ"; \
+ fi; \
+ done; \
+ else \
+ echo "No .csproj files found in tutorials directory"; \
+ fi; \
+ else \
+ echo "No tutorials directory found"; \
+ fi
+
+ @echo "C# Dapr package update complete! Please verify changes and run tests before committing."
+
+.PHONY: update_dotnet_sdk_version
+
+
test_go_quickstarts:
@echo "Testing all Go quickstarts..."
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
diff --git a/pub_sub/csharp/sdk/checkout/checkout.csproj b/pub_sub/csharp/sdk/checkout/checkout.csproj
index c697a89c..abefa24a 100644
--- a/pub_sub/csharp/sdk/checkout/checkout.csproj
+++ b/pub_sub/csharp/sdk/checkout/checkout.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/pub_sub/csharp/sdk/order-processor/order-processor.csproj b/pub_sub/csharp/sdk/order-processor/order-processor.csproj
index ae74afde..dd979f03 100644
--- a/pub_sub/csharp/sdk/order-processor/order-processor.csproj
+++ b/pub_sub/csharp/sdk/order-processor/order-processor.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/secrets_management/csharp/sdk/order-processor/Program.csproj b/secrets_management/csharp/sdk/order-processor/Program.csproj
index c697a89c..abefa24a 100644
--- a/secrets_management/csharp/sdk/order-processor/Program.csproj
+++ b/secrets_management/csharp/sdk/order-processor/Program.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/state_management/csharp/sdk/order-processor/Program.csproj b/state_management/csharp/sdk/order-processor/Program.csproj
index c697a89c..abefa24a 100644
--- a/state_management/csharp/sdk/order-processor/Program.csproj
+++ b/state_management/csharp/sdk/order-processor/Program.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/tutorials/pub-sub/csharp-subscriber/csharp-subscriber.csproj b/tutorials/pub-sub/csharp-subscriber/csharp-subscriber.csproj
index d36ca8c6..df7913fe 100644
--- a/tutorials/pub-sub/csharp-subscriber/csharp-subscriber.csproj
+++ b/tutorials/pub-sub/csharp-subscriber/csharp-subscriber.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/workflows/csharp/sdk/order-processor/WorkflowConsoleApp.csproj b/workflows/csharp/sdk/order-processor/WorkflowConsoleApp.csproj
index b3fc4b31..cd6d9c8c 100644
--- a/workflows/csharp/sdk/order-processor/WorkflowConsoleApp.csproj
+++ b/workflows/csharp/sdk/order-processor/WorkflowConsoleApp.csproj
@@ -10,7 +10,7 @@
-
+