| 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | <PropertyGroup> |
| 3 | <TargetFramework>net10.0</TargetFramework> |
| 4 | <Nullable>enable</Nullable> |
| 5 | <ImplicitUsings>enable</ImplicitUsings> |
| 6 | <LangVersion>14</LangVersion> |
| 7 | <RootNamespace>AgentForge.Plugin.Org.Import.GitHub</RootNamespace> |
| 8 | <AssemblyName>AgentForge.Plugin.Org.Import.GitHub</AssemblyName> |
| 9 | </PropertyGroup> |
| 10 | <ItemGroup> |
| 11 | <FrameworkReference Include="Microsoft.AspNetCore.App" /> |
| 12 | </ItemGroup> |
| 13 | <ItemGroup> |
| 14 | <ProjectReference Include="..\AgentForge.Abstractions\AgentForge.Abstractions.csproj" /> |
| 15 | <ProjectReference Include="..\AgentForge.Plugin.RepositoryImport.GitHub.Core\AgentForge.Plugin.RepositoryImport.GitHub.Core.csproj" /> |
| 16 | <ProjectReference Include="..\AgentForge.Plugin.Sdk\AgentForge.Plugin.Sdk.csproj" /> |
| 17 | </ItemGroup> |
| 18 | <Target Name="CopyOrgImportGitHubPluginToHost" AfterTargets="Build"> |
| 19 | <PropertyGroup> |
| 20 | <_PluginDll>$(TargetPath)</_PluginDll> |
| 21 | <_CoreDll>$(MSBuildThisFileDirectory)..\AgentForge.Plugin.RepositoryImport.GitHub.Core\bin\$(Configuration)\$(TargetFramework)\AgentForge.Plugin.RepositoryImport.GitHub.Core.dll</_CoreDll> |
| 22 | <_HostPluginsDir>$(MSBuildThisFileDirectory)..\AgentForge\bin\$(Configuration)\$(TargetFramework)\plugins</_HostPluginsDir> |
| 23 | <_ApiTestPluginsDir>$(MSBuildThisFileDirectory)..\..\tests\AgentForge.Tests\bin\$(Configuration)\$(TargetFramework)\plugins</_ApiTestPluginsDir> |
| 24 | <_Manifest>$(MSBuildThisFileDirectory)..\..\forge.plugins.toml</_Manifest> |
| 25 | </PropertyGroup> |
| 26 | <MakeDir Directories="$(_HostPluginsDir);$(_ApiTestPluginsDir)" /> |
| 27 | <Copy SourceFiles="$(_PluginDll)" DestinationFolder="$(_HostPluginsDir)\" SkipUnchangedFiles="true" /> |
| 28 | <Copy SourceFiles="$(_CoreDll)" DestinationFolder="$(_HostPluginsDir)\" SkipUnchangedFiles="true" Condition="Exists('$(_CoreDll)')" /> |
| 29 | <Copy SourceFiles="$(_PluginDll)" DestinationFolder="$(_ApiTestPluginsDir)\" SkipUnchangedFiles="true" /> |
| 30 | <Copy SourceFiles="$(_CoreDll)" DestinationFolder="$(_ApiTestPluginsDir)\" SkipUnchangedFiles="true" Condition="Exists('$(_CoreDll)')" /> |
| 31 | <Copy SourceFiles="$(_Manifest)" DestinationFolder="$(_HostPluginsDir)\..\" SkipUnchangedFiles="true" /> |
| 32 | <Copy SourceFiles="$(_Manifest)" DestinationFolder="$(_ApiTestPluginsDir)\..\" SkipUnchangedFiles="true" /> |
| 33 | </Target> |
| 34 | </Project> |
| 35 | |