| 1234567891011121314151617181920212223242526272829303132333435 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <TargetFramework>net48</TargetFramework>
- <UseWPF>true</UseWPF>
- <Platforms>x64</Platforms>
- <PlatformTarget>x64</PlatformTarget>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
- <RootNamespace>Plugins.Script</RootNamespace>
- <AssemblyName>Plugins.Script</AssemblyName>
- </PropertyGroup>
- <ItemGroup>
- <!-- CodeForge:C# 代码编辑器控件 + Roslyn 编译/运行引擎(单文件分发,依赖已内嵌) -->
- <PackageReference Include="CodeForge" Version="1.1.0" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\TeamAAS.Core\TeamAAS.Core\TeamAAS.Core.csproj" />
- </ItemGroup>
- <!-- 构建后把插件 DLL 与其 CodeForge 依赖一起拷到运行目录 Plugins\(随后主程序 PostBuild 归入 Runtime\Plugins\)。
- CodeForge 是单文件分发(Roslyn/AvalonEdit/HandyControl 等已内嵌),只需部署这一个 DLL;
- 运行时 HandyControl 由 Runtime\ 下同版本(3.5.1)物理 DLL 统一提供,不会重复加载。 -->
- <Target Name="CopyPluginDll" AfterTargets="Build" Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
- <PropertyGroup>
- <PluginDir>$(MSBuildThisFileDirectory)..\..\EXE\win-x64\Plugins\</PluginDir>
- </PropertyGroup>
- <MakeDir Directories="$(PluginDir)" Condition="!Exists('$(PluginDir)')" />
- <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PluginDir)" SkipUnchangedFiles="true" />
- <Copy SourceFiles="$(TargetDir)CodeForge.dll" DestinationFolder="$(PluginDir)" SkipUnchangedFiles="true" Condition="Exists('$(TargetDir)CodeForge.dll')" />
- </Target>
- </Project>
|