-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi,
I have cloned your repository.
I am using this Azure pipelines to build the solution:
`trigger: none
pool:
vmImage: 'windows-latest'
variables:
- name: buildConfiguration
value: 'Release' - name: dotnetVersion
value: '8.x' - name: projectPath
value: '$(System.DefaultWorkingDirectory)/AzureAgentToM365/AzureAgentToM365ATK/AzureAgentToM365ATK.csproj'
stages:
- stage: Build
displayName: 'Build Stage'
jobs:- job: BuildJob
displayName: 'Build and Test'
steps:-
task: UseDotNet@2
displayName: 'Install .NET SDK'
inputs:
packageType: 'sdk'
version: $(dotnetVersion)
installationPath: $(Agent.ToolsDirectory)/dotnet -
task: DotNetCoreCLI@2
displayName: 'Restore NuGet packages'
inputs:
command: 'restore'
projects: '**/*.csproj' -
task: DotNetCoreCLI@2
displayName: 'Build solution'
inputs:
command: 'build'
projects: $(projectPath)
arguments: '--configuration $(buildConfiguration) --no-restore' -
task: DotNetCoreCLI@2
displayName: 'Run tests'
inputs:
command: 'test'
projects: '**/*Tests.csproj'
arguments: '--configuration $(buildConfiguration) --no-build --no-restore'
continueOnError: true -
task: DotNetCoreCLI@2
displayName: 'Publish application'
inputs:
command: 'publish'
publishWebProjects: false
projects: $(projectPath)
arguments: '--configuration$(buildConfiguration) --output $ (Build.ArtifactStagingDirectory)'
zipAfterPublish: true -
task: PublishBuildArtifacts@1
displayName: 'Publish build artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'`
-
- job: BuildJob
At the build taks I get this error:
`##[error]AzureAgentToM365\AzureAgentToM365ATK\Agents\AzureAgent.cs(156,55): Error CS1061: 'PersistentAgentsClient' does not contain a definition for 'GetAIAgent' and no accessible extension method 'GetAIAgent' accepting a first argument of type 'PersistentAgentsClient' could be found (are you missing a using directive or an assembly reference?)
D:\a\1\s\AzureAgentToM365\AzureAgentToM365ATK\Agents\AzureAgent.cs(156,55): error CS1061: 'PersistentAgentsClient' does not contain a definition for 'GetAIAgent' and no accessible extension method 'GetAIAgent' accepting a first argument of type 'PersistentAgentsClient' could be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\AzureAgentToM365\AzureAgentToM365ATK\AzureAgentToM365ATK.csproj]
Build FAILED.
D:\a\1\s\AzureAgentToM365\AzureAgentToM365ATK\Agents\AzureAgent.cs(156,55): error CS1061: 'PersistentAgentsClient' does not contain a definition for 'GetAIAgent' and no accessible extension method 'GetAIAgent' accepting a first argument of type 'PersistentAgentsClient' could be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\AzureAgentToM365\AzureAgentToM365ATK\AzureAgentToM365ATK.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:13.24
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
`
Here is the content of AzureAgentToM365ATK.csproj file:
`
net8.0 latest enable $(NoWarn);SKEXP0110;SKEXP0010 1e771eaa-c5b7-444a-bba3-94a94501f448<!-- Microsoft 365 Agents SDK -->
<PackageReference Include="Microsoft.Agents.Authentication.Msal" Version="1.*-*"/>
<PackageReference Include="Microsoft.Agents.Hosting.AspNetCore" Version="1.*-*"/>
<PackageReference Include="Microsoft.Agents.AI" Version="1.*-*"/>
<PackageReference Include="Microsoft.Agents.AI.AzureAI" Version="1.0.0-preview.251114.1" />
<!-- Azure AI Agents Persistent: use an actually published version -->
<!-- 1.1.0 is the current stable line for Azure.AI.Agents.Persistent -->
<PackageReference Include="Azure.AI.Agents.Persistent" Version="1.1.0" />
<!-- Microsoft.Extensions.AI -->
<PackageReference Include="Microsoft.Extensions.AI" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.0.0" />
`
Could you please help me out solve that issue?
Thanks in advance.
Regards