XUnity.AutoTranslator.Plugin.BepIn.csproj 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net35</TargetFramework>
  4. <Version>2.14.0</Version>
  5. </PropertyGroup>
  6. <ItemGroup>
  7. <ProjectReference Include="..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
  8. </ItemGroup>
  9. <ItemGroup>
  10. <Reference Include="BepInEx">
  11. <HintPath>..\..\libs\BepInEx.dll</HintPath>
  12. </Reference>
  13. <Reference Include="ExIni">
  14. <HintPath>..\..\libs\ExIni.dll</HintPath>
  15. </Reference>
  16. <Reference Include="UnityEngine">
  17. <HintPath>..\..\libs\UnityEngine.dll</HintPath>
  18. </Reference>
  19. <Reference Include="UnityEngine.UI">
  20. <HintPath>..\..\libs\UnityEngine.UI.dll</HintPath>
  21. </Reference>
  22. </ItemGroup>
  23. <Target Name="PostBuild" AfterTargets="PostBuildEvent">
  24. <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
  25. <Output TaskParameter="Assemblies" ItemName="Targets" />
  26. </GetAssemblyIdentity>
  27. <ItemGroup>
  28. <VersionNumber Include="$([System.Text.RegularExpressions.Regex]::Replace(&quot;%(Targets.Version)&quot;, &quot;^(.+?)(\.0+)$&quot;, &quot;$1&quot;))" />
  29. </ItemGroup>
  30. <Exec Command="if $(ConfigurationName) == Release (&#xD;&#xA; XCOPY /Y /I &quot;$(TargetDir)ExIni.dll&quot; &quot;$(SolutionDir)dist\BepIn\BepInEx\&quot;&#xD;&#xA; XCOPY /Y /I &quot;$(TargetDir)XUnity.AutoTranslator.Plugin.Core.dll&quot; &quot;$(SolutionDir)dist\BepIn\BepInEx\&quot;&#xD;&#xA; XCOPY /Y /I &quot;$(TargetDir)Jurassic.dll&quot; &quot;$(SolutionDir)dist\BepIn\BepInEx\&quot;&#xD;&#xA; XCOPY /Y /I &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot; &quot;$(SolutionDir)dist\BepIn\BepInEx\&quot;&#xD;&#xA; powershell Compress-Archive -Path '$(SolutionDir)dist\BepIn\BepInEx' -DestinationPath '$(SolutionDir)dist\BepIn\XUnity.AutoTranslator-BepIn-@(VersionNumber).zip' -Force)&#xD;&#xA;)" />
  31. </Target>
  32. </Project>