Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Change build config
Browse files Browse the repository at this point in the history
Make all dll files move to /bin
  • Loading branch information
kokoropie committed Sep 12, 2023
1 parent feeff95 commit 95f5973
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CheckinHoyoverse/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin" />
</assemblyBinding>
</runtime>
</configuration>
21 changes: 18 additions & 3 deletions CheckinHoyoverse/CheckinHoyoverse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,35 @@
<UseWindowsForms>True</UseWindowsForms>
<UseWPF>False</UseWPF>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
<SignAssembly>False</SignAssembly>
<SignAssembly>True</SignAssembly>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<BaseOutputPath>bin\</BaseOutputPath>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<ApplicationIcon>favicon.ico</ApplicationIcon>
<IsPublishable>False</IsPublishable>
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
<Version>1.1.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup>
<Content Include="favicon.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ConsoleTables" Version="2.4.2" />
<PackageReference Include="ConsoleTables" Version="2.5.0" />
</ItemGroup>

<UsingTask TaskName="CreateAppHost" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
<Target Name="PostBuild" AfterTargets="PostBuildEvent" DependsOnTargets="_GetAppHostPaths">
<CreateAppHost AppHostSourcePath="$(AppHostSourcePath)" AppHostDestinationPath="$(OutputPath)\CheckinHoyoverse.exe" AppBinaryName="bin\CheckinHoyoverse.dll" IntermediateAssembly="$(OutputPath)\CheckinHoyoverse.dll" />
<Exec Command="ROBOCOPY &quot;$(TargetDir) &quot; &quot;$(TargetDir)bin\ &quot; /XF *.exe *.config *.manifest /XD lib logs data bin /E /IS /MOVE&#xD;&#xA;if %25errorlevel%25 leq 4 exit 0 else exit %25errorlevel%25" />
</Target>
</Project>

0 comments on commit 95f5973

Please sign in to comment.