first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>FunGame.Server.Plugins.Example</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
<ProjectReference Include="..\..\src\FunGame.Server.Contracts\FunGame.Server.Contracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- 构建后复制到宿主 plugins/_staging(热重载暂存区,由宿主原子替换到正式目录) -->
|
||||
<Target Name="CopyPluginToHost" AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<PluginFiles Include="$(TargetDir)$(AssemblyName).dll;$(TargetDir)$(AssemblyName).pdb" />
|
||||
</ItemGroup>
|
||||
<MakeDir Directories="$(MSBuildThisFileDirectory)..\..\src\FunGame.Server.Host\plugins\_staging\" />
|
||||
<Copy SourceFiles="@(PluginFiles)" DestinationFolder="$(MSBuildThisFileDirectory)..\..\src\FunGame.Server.Host\plugins\_staging\" SkipUnchangedFiles="false" />
|
||||
<Message Text="插件已复制到 Host/plugins/_staging:$(AssemblyName).dll(等待宿主热替换)" Importance="high" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user