XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEWarframe

【WinUI】基于Warframe游戏本体的公开服务器以及安装器

公开
关注 0 Fork 0 Star 0
UTF-8
<Project>
  <PropertyGroup>
    <_XfeBridgeScript>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../scripts/Build-Bridge.ps1'))</_XfeBridgeScript>
    <XFEBridgePowerShellExe Condition="'$(XFEBridgePowerShellExe)' == ''">$(SystemRoot)\System32\WindowsPowerShell\v1.0\powershell.exe</XFEBridgePowerShellExe>
    <XFEBridgeDotNetExe Condition="'$(XFEBridgeDotNetExe)' == ''">$([System.IO.Path]::Combine('$(NetCoreRoot)', 'dotnet.exe'))</XFEBridgeDotNetExe>
  </PropertyGroup>
  <Target Name="BuildBundledBridgePayload" AfterTargets="Build" Condition="'$(DesignTimeBuild)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'">
    <Error Condition="!Exists('$(XFEBridgePowerShellExe)')" Text="Windows PowerShell was not found at $(XFEBridgePowerShellExe). Set XFEBridgePowerShellExe to an installed PowerShell executable." />
    <Error Condition="!Exists('$(XFEBridgeDotNetExe)')" Text="The .NET SDK host was not found at $(XFEBridgeDotNetExe). Set XFEBridgeDotNetExe to the dotnet.exe used by this build." />
    <Exec Command="&quot;$(XFEBridgePowerShellExe)&quot; -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File &quot;$(_XfeBridgeScript)&quot; -Configuration &quot;$(Configuration)&quot; -IfNeeded -DotNetPath &quot;$(XFEBridgeDotNetExe)&quot; -Destination &quot;$(TargetDir)Bridge&quot;" />
  </Target>
  <Target Name="PublishBundledBridgePayload" AfterTargets="ComputeFilesToPublish">
    <Error Condition="!Exists('$(TargetDir)Bridge/payload.json') or !Exists('$(TargetDir)Bridge/XFEWarframe.Bridge.dll')" Text="The bundled native component was not built. Build this application before publishing." />
    <ItemGroup>
      <ResolvedFileToPublish Include="$(TargetDir)Bridge/payload.json">
        <RelativePath>Bridge/payload.json</RelativePath>
        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
      </ResolvedFileToPublish>
      <ResolvedFileToPublish Include="$(TargetDir)Bridge/XFEWarframe.Bridge.dll">
        <RelativePath>Bridge/XFEWarframe.Bridge.dll</RelativePath>
        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
      </ResolvedFileToPublish>
    </ItemGroup>
  </Target>
</Project>