Skip to content

A programming framework for agentic AI

feat: Release pre-requisites for Microsoft.AutoGen.Core NuGet (#5270)

Jacob Alber465a97472d3d
diff --git a/.azure/pipelines/templates/build.yaml b/.azure/pipelines/templates/build.yaml
index 044cbf335..8332506d7 100644
--- a/.azure/pipelines/templates/build.yaml
+++ b/.azure/pipelines/templates/build.yaml
@@ -111,7 +111,7 @@ jobs:
displayName: Build
inputs:
command: build
- arguments: '$(build_flags) /bl:${{parameters.build_configuration}}-Build.binlog /p:Configuration=${{parameters.build_configuration}} $(solution)'
+ arguments: '$(build_flags) /bl:${{parameters.build_configuration}}-Build.binlog /p:Configuration=${{parameters.build_configuration}} /p:ContinuousIntegrationBuild=true $(solution)'
workingDirectory: $(Build.SourcesDirectory)/dotnet
env:
PATH: "C:\\Users\\cloudtest\\.local\\bin;$(PATH)"
@@ -201,7 +201,7 @@ jobs:
- task: CmdLine@2
displayName: Pack
inputs:
- script: 'dotnet pack --no-build --no-restore $(build_flags) /bl:${{parameters.build_configuration}}-Pack.binlog /p:Configuration=${{parameters.build_configuration}} $(solution)'
+ script: 'dotnet pack --no-build --no-restore $(build_flags) /bl:${{parameters.build_configuration}}-Pack.binlog /p:Configuration=${{parameters.build_configuration}} /p:ContinuousIntegrationBuild=true $(solution)'
workingDirectory: $(Build.SourcesDirectory)/dotnet
env:
${{ if and(eq(parameters.include_suffix, true), eq(parameters.publish_nuget, false)) }}:
diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index e1bb2fcd3..d5610362a 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -8,6 +8,7 @@
<TestTargetFrameworks>net8.0</TestTargetFrameworks>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
+ <Deterministic>true</Deterministic>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)eng/opensource.snk</AssemblyOriginatorKeyFile>
<PublicKey>0024000004800000940000000602000000240000525341310004000001000100f1d038d0b85ae392ad72011df91e9343b0b5df1bb8080aa21b9424362d696919e0e9ac3a8bca24e283e10f7a569c6f443e1d4e3ebc84377c87ca5caa562e80f9932bf5ea91b7862b538e13b8ba91c7565cf0e8dfeccfea9c805ae3bda044170ecc7fc6f147aeeac422dd96aeb9eb1f5a5882aa650efe2958f2f8107d2038f2ab</PublicKey>
diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props
index d0131825a..aca7a136d 100644
--- a/dotnet/Directory.Packages.props
+++ b/dotnet/Directory.Packages.props
@@ -7,16 +7,17 @@
<MicrosoftExtensionConfiguration>9.0.0</MicrosoftExtensionConfiguration>
<MicrosoftExtensionDependencyInjection>9.0.0</MicrosoftExtensionDependencyInjection>
<MicrosoftExtensionLogging>9.0.0</MicrosoftExtensionLogging>
+ <MicrosoftExtensionOptions>9.0.0</MicrosoftExtensionOptions>
<MicrosoftOrleans>9.0.1</MicrosoftOrleans>
<OpenTelemetryInstrumentation>1.9.0</OpenTelemetryInstrumentation>
- <MicrosoftDotNetInteractive>1.0.0-beta.24229.4</MicrosoftDotNetInteractive>
+ <MicrosoftDotNetInteractive>1.0.0-beta.24568.1</MicrosoftDotNetInteractive>
<NuGetAuditMode>direct</NuGetAuditMode>
</PropertyGroup>
<ItemGroup>
+ <PackageVersion Include="ApprovalTests" Version="6.0.0" />
<PackageVersion Include="Aspire.Hosting" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Python" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Testing" Version="9.0.0" />
- <PackageVersion Include="AspNetCore.Authentication.ApiKey" Version="8.0.1" />
<PackageVersion Include="Aspire.Azure.AI.OpenAI" Version="8.0.1-preview.8.24267.1" />
<PackageVersion Include="Aspire.Hosting.AppHost" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Azure.ApplicationInsights" Version="9.0.0" />
@@ -25,6 +26,7 @@
<PackageVersion Include="Aspire.Hosting.Orleans" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Qdrant" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Redis" Version="8.2.0" />
+ <PackageVersion Include="AspNetCore.Authentication.ApiKey" Version="8.0.1" />
<PackageVersion Include="Azure.AI.OpenAI" Version="2.1.0-beta.2" />
<PackageVersion Include="Azure.AI.Inference" Version="1.0.0-beta.1" />
<PackageVersion Include="Azure.Data.Tables" Version="12.9.1" />
@@ -32,6 +34,8 @@
<PackageVersion Include="Azure.ResourceManager.ContainerInstance" Version="1.2.1" />
<PackageVersion Include="Azure.Storage.Files.Shares" Version="12.21.0" />
<PackageVersion Include="CloudNative.CloudEvents.SystemTextJson" Version="2.7.1" />
+ <PackageVersion Include="coverlet.collector" Version="6.0.2" />
+ <PackageVersion Include="FluentAssertions" Version="6.12.2" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
@@ -41,13 +45,20 @@
<PackageVersion Include="Grpc.Net.ClientFactory" Version="2.67.0" />
<PackageVersion Include="Grpc.Tools" Version="2.67.0" />
<PackageVersion Include="Grpc.Net.Client" Version="2.65.0" />
+ <PackageVersion Include="Google.Cloud.AIPlatform.V1" Version="3.11.0" />
<PackageVersion Include="Google.Protobuf" Version="3.28.3" />
+ <PackageVersion Include="JsonSchema.Net.Generation" Version="4.5.1" />
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.4.0" />
<PackageVersion Include="Microsoft.AspNetCore.App" Version="8.0.4" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="8.0.11" />
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
+ <PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" />
+ <PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.8.0" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive" Version="$(MicrosoftDotNetInteractive)" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive.Jupyter" Version="$(MicrosoftDotNetInteractive)" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive.PackageManagement" Version="$(MicrosoftDotNetInteractive)" />
<PackageVersion Include="Microsoft.Extensions.AI" Version="$(MicrosoftExtensionsAIVersion)" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="$(MicrosoftExtensionsAIVersion)" />
<PackageVersion Include="Microsoft.Extensions.AI.AzureAIInference" Version="$(MicrosoftExtensionsAIVersion)" />
@@ -64,9 +75,12 @@
<PackageVersion Include="Microsoft.Extensions.Diagnostics.Testing" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.0.0" />
+ <PackageVersion Include="Microsoft.Extensions.Logging" Version="$(MicrosoftExtensionLogging)" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionLogging)" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="$(MicrosoftExtensionLogging)" />
+ <PackageVersion Include="Microsoft.Extensions.Options.DataAnnotations" Version="$(MicrosoftExtensionOptions)" />
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="9.0.0" />
+ <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Microsoft.Orleans.Clustering.Cosmos" Version="$(MicrosoftOrleans)" />
<PackageVersion Include="Microsoft.Orleans.CodeGenerator" Version="$(MicrosoftOrleans)">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -85,15 +99,19 @@
<PackageVersion Include="Microsoft.Orleans.Streaming" Version="$(MicrosoftOrleans)" />
<PackageVersion Include="Microsoft.Orleans.Streaming.EventHubs" Version="$(MicrosoftOrleans)" />
<PackageVersion Include="Microsoft.Orleans.TestingHost" Version="9.0.1" />
+ <PackageVersion Include="Microsoft.PowerShell.SDK" Version="7.5.0" />
<PackageVersion Include="Microsoft.SemanticKernel" Version="1.29.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Agents.Core" Version="$(MicrosoftSemanticKernelExperimentalVersion)" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.AzureOpenAI" Version="1.29.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="$(MicrosoftSemanticKernelExperimentalVersion)" />
<PackageVersion Include="Microsoft.SemanticKernel.Plugins.Memory" Version="$(MicrosoftSemanticKernelExperimentalVersion)" />
<PackageVersion Include="Microsoft.SemanticKernel.Plugins.Web" Version="$(MicrosoftSemanticKernelExperimentalVersion)" />
+ <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
+ <PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Octokit" Version="13.0.1" />
<PackageVersion Include="Octokit.Webhooks.AspNetCore" Version="2.4.1" />
+ <PackageVersion Include="OpenAI" Version="2.1.0-beta.2" />
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="$(OpenTelemetryInstrumentation)" />
@@ -102,31 +120,16 @@
<PackageVersion Include="OrleansDashboard" Version="8.2.0" />
<PackageVersion Include="PdfPig" Version="0.1.10-alpha-20241121-7db34" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="7.1.0" />
+ <PackageVersion Include="System.CodeDom" Version="9.0.0" />
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageVersion Include="System.Data.SqlClient" Version="4.9.0" />
<PackageVersion Include="System.Formats.Asn1" Version="9.0.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" />
<PackageVersion Include="System.IO.Packaging" Version="9.0.0" />
<PackageVersion Include="System.Memory.Data" Version="9.0.0" />
- <PackageVersion Include="JsonSchema.Net.Generation" Version="4.5.1" />
- <PackageVersion Include="Microsoft.DotNet.Interactive" Version="$(MicrosoftDotNetInteractive)" />
- <PackageVersion Include="Microsoft.DotNet.Interactive.Jupyter" Version="$(MicrosoftDotNetInteractive)" />
- <PackageVersion Include="Microsoft.DotNet.Interactive.PackageManagement" Version="$(MicrosoftDotNetInteractive)" />
- <PackageVersion Include="Google.Cloud.AIPlatform.V1" Version="3.11.0" />
- <PackageVersion Include="OpenAI" Version="2.1.0-beta.2" />
- <PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" />
- <PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.8.0" />
- <PackageVersion Include="System.CodeDom" Version="9.0.0" />
- <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
- <PackageVersion Include="ApprovalTests" Version="6.0.0" />
- <PackageVersion Include="FluentAssertions" Version="6.12.2" />
- <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="System.Text.Json" Version="9.0.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.console" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
- <PackageVersion Include="Moq" Version="4.20.72" />
- <PackageVersion Include="Microsoft.PowerShell.SDK" Version="7.4.5" />
- <PackageVersion Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/dotnet/eng/MetaInfo.props b/dotnet/eng/MetaInfo.props
index db46778a0..7dd72c35c 100644
--- a/dotnet/eng/MetaInfo.props
+++ b/dotnet/eng/MetaInfo.props
@@ -3,7 +3,7 @@
<PropertyGroup>
<VersionPrefix>0.4.0</VersionPrefix>
<VersionPrefixForAutoGen0_2>0.2.2</VersionPrefixForAutoGen0_2>
- <Authors>AutoGen</Authors>
+ <Authors>Microsoft</Authors>
<PackageProjectUrl>https://microsoft.github.io/autogen-for-net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/microsoft/autogen</RepositoryUrl>
<RepositoryType>git</RepositoryType>
diff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.props
index 4a53c1226..939e21083 100644
--- a/dotnet/nuget/nuget-package.props
+++ b/dotnet/nuget/nuget-package.props
@@ -3,8 +3,7 @@
<IsPackable>true</IsPackable>
<!-- Default description and tags. Packages can override. -->
- <Authors>AutoGen</Authors>
- <Company>Microsoft</Company>
+ <Authors>Microsoft</Authors>
<Product>AutoGen</Product>
<Description>A programming framework for agentic AI</Description>
<PackageTags>AI, Artificial Intelligence, Agents, Multiagent, SDK</PackageTags>
@@ -13,7 +12,7 @@
<!-- Required license, copyright, and repo information. Packages can override. -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
- <PackageProjectUrl>https://microsoft.github.io/autogen-for-net</PackageProjectUrl>
+ <PackageProjectUrl>https://aka.ms/autogen</PackageProjectUrl>
<RepositoryUrl>https://github.com/microsoft/autogen</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -28,7 +27,7 @@
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
-
+
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
index 59ac34ba4..fbc40bf56 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
@@ -2,7 +2,9 @@
// AzureGenie.cs
using DevTeam.Backend.Services;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
+
namespace DevTeam.Backend.Agents;
[TopicSubscription(Consts.TopicName)]
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Developer/Developer.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Developer/Developer.cs
index b0f52f5bd..f86b6c825 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Developer/Developer.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Developer/Developer.cs
@@ -2,6 +2,7 @@
// Developer.cs
using DevTeam.Agents;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
namespace DevTeam.Backend.Agents.Developer;
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/DeveloperLead/DeveloperLead.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/DeveloperLead/DeveloperLead.cs
index b935d31b8..b758e1eb3 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/DeveloperLead/DeveloperLead.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/DeveloperLead/DeveloperLead.cs
@@ -2,6 +2,7 @@
// DeveloperLead.cs
using DevTeam.Agents;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
namespace DevTeam.Backend.Agents.DeveloperLead;
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
index 8ba4ddf92..ea06e6077 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
@@ -3,6 +3,7 @@
using System.Text.Json;
using DevTeam.Backend.Services;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
namespace DevTeam.Backend.Agents;
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/ProductManager/ProductManager.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/ProductManager/ProductManager.cs
index 93da47e53..f2852bd2f 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/ProductManager/ProductManager.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/ProductManager/ProductManager.cs
@@ -2,6 +2,7 @@
// ProductManager.cs
using DevTeam.Agents;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
namespace DevTeam.Backend.Agents.ProductManager;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
index 98242f43f..4151b902d 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
@@ -25,8 +25,8 @@ public class InProccessDotnetInteractiveKernelBuilder
this.compositeKernel = new CompositeKernel();
// add jupyter connector
- this.compositeKernel.AddKernelConnector(
- new ConnectJupyterKernelCommand()
+ this.compositeKernel.AddConnectDirective(
+ new ConnectJupyterKernelDirective()
.AddConnectionOptions(new JupyterHttpKernelConnectionOptions())
.AddConnectionOptions(new JupyterLocalKernelConnectionOptions()));
}
@@ -45,7 +45,7 @@ public class InProccessDotnetInteractiveKernelBuilder
})
.UseKernelHelpers()
.UseWho()
- .UseMathAndLaTeX()
+ //.UseMathAndLaTeX() // Latex is now formatted using TypeFormatters
.UseValueSharing();
this.AddKernel(csharpKernel, aliases);
@@ -61,7 +61,7 @@ public class InProccessDotnetInteractiveKernelBuilder
.UseDefaultFormatting()
.UseKernelHelpers()
.UseWho()
- .UseMathAndLaTeX()
+ //.UseMathAndLaTeX() // Latex is now formatted using TypeFormatters
.UseValueSharing();
this.AddKernel(fsharpKernel, aliases);
diff --git a/dotnet/src/Microsoft.AutoGen/Core/IHandle.cs b/dotnet/src/Microsoft.AutoGen/Contracts/IHandle.cs
similarity index 80%
rename from dotnet/src/Microsoft.AutoGen/Core/IHandle.cs
rename to dotnet/src/Microsoft.AutoGen/Contracts/IHandle.cs
index d79e57084..422c5a247 100644
--- a/dotnet/src/Microsoft.AutoGen/Core/IHandle.cs
+++ b/dotnet/src/Microsoft.AutoGen/Contracts/IHandle.cs
@@ -1,15 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// IHandle.cs
-using Google.Protobuf;
-using Microsoft.AutoGen.Contracts;
-
-namespace Microsoft.AutoGen.Core;
+namespace Microsoft.AutoGen.Contracts;
/// <summary>
/// Defines a handler interface for processing items of type <typeparamref name="T"/>.
/// </summary>
-/// <typeparam name="T">The type of item to be handled, which must implement <see cref="IMessage"/>.</typeparam>
+/// <typeparam name="T">The type of item to be handled.</typeparam>
public interface IHandle<in T>
{
/// <summary>
diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs b/dotnet/src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs
index 993470d88..a164a6abe 100644
--- a/dotnet/src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs
+++ b/dotnet/src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs
@@ -8,7 +8,7 @@ namespace Microsoft.AutoGen.Contracts;
/// <summary>
/// Provides helper methods for parsing key-value string representations.
/// </summary>
-public static class KVStringParseHelper
+internal static class KVStringParseHelper
{
/// <summary>
/// The regular expression pattern used to match key-value pairs in the format "key/value".
diff --git a/dotnet/src/Microsoft.AutoGen/Core/HandlerInvoker.cs b/dotnet/src/Microsoft.AutoGen/Core/HandlerInvoker.cs
index 740b2575c..4a7a9ea56 100644
--- a/dotnet/src/Microsoft.AutoGen/Core/HandlerInvoker.cs
+++ b/dotnet/src/Microsoft.AutoGen/Core/HandlerInvoker.cs
@@ -3,6 +3,7 @@
using System.Diagnostics;
using System.Reflection;
+
using Microsoft.AutoGen.Contracts;
namespace Microsoft.AutoGen.Core;
diff --git a/dotnet/src/Microsoft.AutoGen/Core/IHandleExtensions.cs b/dotnet/src/Microsoft.AutoGen/Core/IHandleExtensions.cs
index 367f722a4..31e81951d 100644
--- a/dotnet/src/Microsoft.AutoGen/Core/IHandleExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen/Core/IHandleExtensions.cs
@@ -3,6 +3,8 @@
using System.Reflection;
+using Microsoft.AutoGen.Contracts;
+
namespace Microsoft.AutoGen.Core;
/// <summary>
diff --git a/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj b/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj
index 0dc3cba17..7a42259dd 100644
--- a/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj
+++ b/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj
@@ -8,13 +8,13 @@
<Import Project="$(RepoRoot)/nuget/nuget-package.props" />
-
<ItemGroup>
<ProjectReference Include="..\Contracts\Microsoft.AutoGen.Contracts.csproj" />
- <ProjectReference Include="..\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" />
</ItemGroup>
<ItemGroup>
+ <PackageReference Include="Microsoft.Extensions.Hosting" />
+ <PackageReference Include="Microsoft.Extensions.Logging" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
</ItemGroup>
diff --git a/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj b/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj
index dc57a068c..867036498 100644
--- a/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj
+++ b/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj
@@ -9,6 +9,7 @@
<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" />
+ <PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" />
<PackageReference Include="Microsoft.SemanticKernel" />
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Memory" />
diff --git a/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/TestAgent.cs b/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/TestAgent.cs
index 198450187..e479a2cd7 100644
--- a/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/TestAgent.cs
+++ b/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/TestAgent.cs
@@ -2,6 +2,7 @@
// TestAgent.cs
using System.Collections.Concurrent;
+using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;