-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weird abomination with ILMerge to package build
- Loading branch information
Showing
7 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\packages\ILMerge.3.0.41\build\ILMerge.props" Condition="Exists('..\packages\ILMerge.3.0.41\build\ILMerge.props')" /> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x64</Platform> | ||
<ProjectGuid>{1FCFEA33-6782-4D7A-88A8-CF6D71E3B564}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>AffinityEx</RootNamespace> | ||
<AssemblyName>AffinityEx</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
<NuGetPackageImportStamp> | ||
</NuGetPackageImportStamp> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AffinityEx.Launcher.Designer\AffinityEx.Launcher.Designer.csproj"> | ||
<Project>{db2e8a2b-1de1-411c-b977-e3b4656d935f}</Project> | ||
<Name>AffinityEx.Launcher.Designer</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\AffinityEx.Launcher.Photo\AffinityEx.Launcher.Photo.csproj"> | ||
<Project>{125a4d24-c094-4cf2-98be-fd67d5a0dd7b}</Project> | ||
<Name>AffinityEx.Launcher.Photo</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\AffinityEx.Plugins\AffinityEx.Plugins.csproj"> | ||
<Project>{468df7d3-def6-4518-81ad-b406d88e1c6d}</Project> | ||
<Name>AffinityEx.Plugins</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent>IF EXIST "$(ProjectDir)$(OutDir)*.config" DEL /Q "$(ProjectDir)$(OutDir)*.config" | ||
IF EXIST "$(ProjectDir)$(OutDir)*.pdb" DEL /Q "$(ProjectDir)$(OutDir)*.pdb" | ||
IF EXIST "$(ProjectDir)$(OutDir)*.xml" DEL /Q "$(ProjectDir)$(OutDir)*.xml" | ||
|
||
IF NOT EXIST "$(ProjectDir)$(OutDir)Plugins" MKDIR "$(ProjectDir)$(OutDir)Plugins" | ||
MOVE "$(ProjectDir)$(OutDir)AffinityEx.Plugins.*" "$(ProjectDir)$(OutDir)Plugins" | ||
|
||
"$(ILMergeConsolePath)" /ndebug ^ | ||
"/lib:C:\Program Files\Affinity\Designer" ^ | ||
"/out:$(ProjectDir)$(OutDir)DesignerEx.exe" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.Designer.exe" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.dll" | ||
|
||
"$(ILMergeConsolePath)" /ndebug ^ | ||
"/lib:C:\Program Files\Affinity\Photo" ^ | ||
"/out:$(ProjectDir)$(OutDir)PhotoEx.exe" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.Photo.exe" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.dll" | ||
|
||
DEL ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.dll" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.dll" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.Designer.exe" ^ | ||
"$(ProjectDir)$(OutDir)AffinityEx.Launcher.Photo.exe"</PostBuildEvent> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PreBuildEvent>IF EXIST "$(ProjectDir)$(OutDir)Plugins\*.*" DEL /Q "$(ProjectDir)$(OutDir)Plugins\*.*" | ||
IF EXIST "$(ProjectDir)$(OutDir)*.*" DEL /Q "$(ProjectDir)$(OutDir)*.*"</PreBuildEvent> | ||
</PropertyGroup> | ||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
<PropertyGroup> | ||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
</PropertyGroup> | ||
<Error Condition="!Exists('..\packages\ILMerge.3.0.41\build\ILMerge.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILMerge.3.0.41\build\ILMerge.props'))" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="ILMerge" version="3.0.41" targetFramework="net472" /> | ||
</packages> |