mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
c1830c20c9
* move catalog samples to the HostedAgents folder * move the catalog samples' projects to the HostedAgents folder * host agents, add dockerfile, add http for testing, and use explicit nuget packages * add agents` manifests * Update dotnet/samples/HostedAgents/AgentWithTextSearchRag/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentsInWorkflows/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> * remove BOMs, decrease identation and remove unecessary `parameters` node. * remove unnecessary analyzers and align the packages' versions * remove end-of-line breaks in agents' descriptions, eliminated unnecessary double quotes around versions, and changed the descriptions to be more agent-centric rather than sample-centric * use DefaultAzureCredential --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
70 lines
3.5 KiB
XML
70 lines
3.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
|
|
<!--
|
|
Disable central package management for this project.
|
|
This project requires explicit package references with versions specified inline rather than
|
|
inheriting them from Directory.Packages.props. This is necessary because a Docker image will
|
|
be created from this project, and the Docker build process only has access to this folder
|
|
and cannot access parent folders where Directory.Packages.props resides.
|
|
-->
|
|
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Remove analyzer PackageReference items inherited from Directory.Packages.props.
|
|
Note: ManagePackageVersionsCentrally only controls PackageVersion items, not PackageReference items.
|
|
Directory.Packages.props contains both PackageVersion and PackageReference entries for analyzers,
|
|
and the PackageReference items are always inherited through MSBuild imports regardless of the
|
|
ManagePackageVersionsCentrally setting. We must explicitly remove them before adding our own versions.
|
|
-->
|
|
<ItemGroup>
|
|
<PackageReference Remove="Microsoft.CodeAnalysis.NetAnalyzers" />
|
|
<PackageReference Remove="Microsoft.VisualStudio.Threading.Analyzers" />
|
|
<PackageReference Remove="xunit.analyzers" />
|
|
<PackageReference Remove="Moq.Analyzers" />
|
|
<PackageReference Remove="Roslynator.Analyzers" />
|
|
<PackageReference Remove="Roslynator.CodeAnalysis.Analyzers" />
|
|
<PackageReference Remove="Roslynator.Formatting.Analyzers" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Azure.AI.AgentServer.AgentFramework" Version="1.0.0-beta.4" />
|
|
<PackageReference Include="Azure.AI.OpenAI" Version="2.5.0-beta.1" />
|
|
<PackageReference Include="Azure.Identity" Version="1.17.0" />
|
|
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.0.0-preview.251110.2" />
|
|
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.10.2-preview.1.25552.1" />
|
|
</ItemGroup>
|
|
|
|
<!-- Add analyzers with compatible versions -->
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Roslynator.Analyzers" Version="4.12.9">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.12.9">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.12.9">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
</Project>
|