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