Skip to content

Commit

Permalink
ILRepack moved from project file into build template
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyzwezdin committed Dec 19, 2017
1 parent f047d67 commit 3670b4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
9 changes: 8 additions & 1 deletion build/build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#addin "Cake.Powershell"
#addin "Newtonsoft.Json"
#tool "nuget:?package=ILRepack"

// Helpers

Expand Down Expand Up @@ -145,8 +146,14 @@ Task("Build")
PlatformTarget = PlatformTarget.MSIL,
}.WithTarget("Build"));
ILRepack(
paths.workingDirSolutionDir + "/MagicChunks/bin/" + configuration + "/netstandard1.3/MagicChunks.dll",
paths.workingDirSolutionDir + "/MagicChunks/bin/" + configuration + "/netstandard1.3/MagicChunks.dll",
GetFiles(paths.workingDirSolutionDir + "/MagicChunks/bin/" + configuration + "/netstandard1.3/*.dll"),
new ILRepackSettings { Internalize = true });
CopyFiles(paths.workingDirSolutionDir + "/MagicChunks" + "/bin/" + configuration + "/netstandard1.3/MagicChunks*.dll", paths.workingDirDotNet);
CopyFiles(paths.workingDirSolutionDir + "/MagicChunks.Cake" + "/bin/" + configuration + "/netstandard1.6/MagicChunks*.dll", paths.workingDirDotNet);
CopyFiles(paths.workingDirSolutionDir + "/MagicChunks.Cake" + "/bin/" + configuration + "/netstandard1.6/MagicChunks.Cake.dll", paths.workingDirDotNet);
CopyFiles(paths.workingDirSolutionDir + "/MagicChunks/MSBuild/*.targets", paths.workingDirDotNet);
CopyFiles(paths.workingDirSolutionDir + "/MagicChunks/Powershell/*.ps*", paths.workingDirDotNet);
});
Expand Down
2 changes: 0 additions & 2 deletions src/MagicChunks/MagicChunks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
<PackageReference Include="YamlDotNet" Version="4.2.2" />
</ItemGroup>

<!-- <Import Project="$(SolutionDir)\..\tools\ILRepack\ILRepack.CSharp.targets" /> -->

</Project>
10 changes: 0 additions & 10 deletions tools/ILRepack/ILRepack.CSharp.targets

This file was deleted.

Binary file removed tools/ILRepack/ILRepack.exe
Binary file not shown.

0 comments on commit 3670b4d

Please sign in to comment.