From 9c34bd53ea6564734d2753629e8472922c5888c3 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Mar 2026 12:49:52 +0000
Subject: [PATCH 1/3] refactor: move package references to
Directory.Build.props
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
---
dotnet/001-connect-passwordless/connect.cs | 5 -----
dotnet/Directory.Build.props | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/dotnet/001-connect-passwordless/connect.cs b/dotnet/001-connect-passwordless/connect.cs
index f8c8fff..13ace9d 100644
--- a/dotnet/001-connect-passwordless/connect.cs
+++ b/dotnet/001-connect-passwordless/connect.cs
@@ -1,8 +1,3 @@
-#:package Azure.Identity
-#:package Microsoft.Azure.Cosmos
-#:package Newtonsoft.Json
-#:package Microsoft.Extensions.Configuration.UserSecrets
-
using Azure.Identity;
using Microsoft.Azure.Cosmos;
using Microsoft.Extensions.Configuration;
diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index 64f68c0..f14ea74 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -2,4 +2,10 @@
azurecosmosdb-samples-dotnet
+
+
+
+
+
+
From ec85b13a7b987cb84348407e11a06a10431b9683 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Mar 2026 13:09:25 +0000
Subject: [PATCH 2/3] refactor: keep only shared packages in
Directory.Build.props
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
---
dotnet/001-connect-passwordless/connect.cs | 4 ++++
dotnet/Directory.Build.props | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dotnet/001-connect-passwordless/connect.cs b/dotnet/001-connect-passwordless/connect.cs
index 13ace9d..8b45cce 100644
--- a/dotnet/001-connect-passwordless/connect.cs
+++ b/dotnet/001-connect-passwordless/connect.cs
@@ -1,3 +1,7 @@
+#:package Azure.Identity
+#:package Microsoft.Azure.Cosmos
+#:package Newtonsoft.Json
+
using Azure.Identity;
using Microsoft.Azure.Cosmos;
using Microsoft.Extensions.Configuration;
diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index f14ea74..6d58e82 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -3,9 +3,6 @@
azurecosmosdb-samples-dotnet
-
-
-
From a0f1cafb6fe98734635c89d05a3f174831bf48f9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Mar 2026 13:12:28 +0000
Subject: [PATCH 3/3] refactor: move Microsoft.Azure.Cosmos and Newtonsoft.Json
to Directory.Build.props
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
---
dotnet/001-connect-passwordless/connect.cs | 2 --
dotnet/Directory.Build.props | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dotnet/001-connect-passwordless/connect.cs b/dotnet/001-connect-passwordless/connect.cs
index 8b45cce..d71c2be 100644
--- a/dotnet/001-connect-passwordless/connect.cs
+++ b/dotnet/001-connect-passwordless/connect.cs
@@ -1,6 +1,4 @@
#:package Azure.Identity
-#:package Microsoft.Azure.Cosmos
-#:package Newtonsoft.Json
using Azure.Identity;
using Microsoft.Azure.Cosmos;
diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index 6d58e82..66f4404 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -3,6 +3,8 @@
azurecosmosdb-samples-dotnet
+
+