You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Microsoft.AutoGen.Integration.Tests.csproj 2.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net8.0</TargetFramework>
  4. <ImplicitUsings>enable</ImplicitUsings>
  5. <Nullable>enable</Nullable>
  6. <IsPackable>false</IsPackable>
  7. <IsTestProject>true</IsTestProject>
  8. </PropertyGroup>
  9. <ItemGroup>
  10. <PackageReference Include="Aspire.Hosting.Testing" />
  11. <PackageReference Include="coverlet.collector" />
  12. <PackageReference Include="GitHubActionsTestLogger">
  13. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  14. <PrivateAssets>all</PrivateAssets>
  15. </PackageReference>
  16. <PackageReference Include="MartinCostello.Logging.XUnit" />
  17. <PackageReference Include="Microsoft.Extensions.Diagnostics.Testing" />
  18. </ItemGroup>
  19. <ItemGroup>
  20. <Using Include="System.Net" />
  21. <Using Include="Microsoft.Extensions.DependencyInjection" />
  22. <Using Include="Aspire.Hosting.ApplicationModel" />
  23. <Using Include="Aspire.Hosting.Testing" />
  24. <Using Include="Xunit" />
  25. </ItemGroup>
  26. <ItemGroup>
  27. <PackageReference Include="Aspire.Hosting.AppHost" />
  28. <PackageReference Include="Aspire.Hosting" />
  29. <PackageReference Include="Aspire.Hosting.Python" />
  30. </ItemGroup>
  31. <ItemGroup>
  32. <ProjectReference Include="../../src/Microsoft.AutoGen/AgentHost/Microsoft.AutoGen.AgentHost.csproj" />
  33. <ProjectReference Include="../Microsoft.AutoGen.Integration.Tests.AppHosts/HelloAgentTests/HelloAgentTests.csproj" />
  34. <ProjectReference Include="../Microsoft.AutoGen.Integration.Tests.AppHosts/InMemoryTests.AppHost/InMemoryTests.AppHost.csproj" />
  35. </ItemGroup>
  36. <!-- Properties, Items, and targets to ensure Python apps are initialized -->
  37. <PropertyGroup>
  38. <PythonVirtualEnvironmentName>.venv</PythonVirtualEnvironmentName>
  39. <PythonRoot>$(RepoRoot)..\python</PythonRoot>
  40. </PropertyGroup>
  41. <Target Name="CreatePythonVirtualEnvironments" AfterTargets="PrepareForBuild">
  42. <PropertyGroup>
  43. <VenvDir>$(PythonVenvRoot)\$(PythonVirtualEnvironmentName)\</VenvDir>
  44. <CreateVenv Condition="!Exists('$(VenvDir)')">True</CreateVenv>
  45. <Uv>~/.local/bin/uv</Uv>
  46. <CheckUvPath Condition="!Exists('$(Uv)')">True</CheckUvPath>
  47. <UvPath Condition="'$(CheckUvPath)' == 'True'">uv</UvPath>
  48. <UvPath Condition="'$(CheckUvPath)' == 'False'">$(Uv)</UvPath>
  49. </PropertyGroup>
  50. <Message Importance="Normal" Text="Initializing virtual environment for $(PythonVenvRoot)" />
  51. <Exec Command="$(UvPath) sync --all-extras" WorkingDirectory="$(PythonRoot)" Condition=" '$(CreateVenv)' == 'True' " />
  52. <!--Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
  53. </Exec>
  54. <Message Importance="Normal" Text="$(OutputOfExec)" />-->
  55. </Target>
  56. </Project>