-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read embedded pdbs Copy debug information for scopes and imports Taken from Alexx999#3 Make the output assembly MVID deterministic Fix test locking dlls Add .ToArray() to flush the Linq expression so that it is not evaluated more than once. Better error if the pdb doesn't exist Use cecil from https://github.com/KirillOsenkov/cecil/tree/ilrepack
- Loading branch information
1 parent
96a60b6
commit 8ebc6f9
Showing
14 changed files
with
205 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "cecil"] | ||
path = cecil | ||
url = https://github.com/gluck/cecil.git | ||
url = https://github.com/KirillOsenkov/cecil | ||
branch = ilrepack |
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
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,16 @@ | ||
using System.Collections.Generic; | ||
using Mono.Collections.Generic; | ||
|
||
namespace ILRepacking.Mixins | ||
{ | ||
static class CollectionMixins | ||
{ | ||
public static void AddRange<T>(this Collection<T> destination, IEnumerable<T> source) | ||
{ | ||
foreach (var item in source) | ||
{ | ||
destination.Add(item); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,16 +1,12 @@ | ||
using Mono.Cecil; | ||
using System.Collections.Generic; | ||
|
||
namespace ILRepacking | ||
{ | ||
public class RepackAssemblyResolver : DefaultAssemblyResolver | ||
{ | ||
public void RegisterAssemblies(IList<AssemblyDefinition> mergedAssemblies) | ||
public new void RegisterAssembly(AssemblyDefinition assembly) | ||
{ | ||
foreach (var assemblyDefinition in mergedAssemblies) | ||
{ | ||
RegisterAssembly(assemblyDefinition); | ||
} | ||
base.RegisterAssembly(assembly); | ||
} | ||
} | ||
} |
Oops, something went wrong.