Ejemplo n.º 1
0
 public SerReader(IRepackContext repackContext, Stream inputStream, Stream outputStream)
 {
     _repackContext = repackContext;
     reader = new BinaryReader(inputStream, Encoding.UTF8);
     pos = inputStream.Position;
     writer = new BinaryWriter(outputStream, Encoding.UTF8);
 }
Ejemplo n.º 2
0
 public SigningStep(
     IRepackContext repackContext,
     RepackOptions repackOptions)
 {
     _repackContext = repackContext;
     _repackOptions = repackOptions;
 }
Ejemplo n.º 3
0
 public SerReader(IRepackContext repackContext, Stream inputStream, Stream outputStream)
 {
     _repackContext = repackContext;
     reader         = new BinaryReader(inputStream, Encoding.UTF8);
     pos            = inputStream.Position;
     writer         = new BinaryWriter(outputStream, Encoding.UTF8);
 }
Ejemplo n.º 4
0
 public SigningStep(
     IRepackContext repackContext,
     RepackOptions repackOptions)
 {
     _repackContext = repackContext;
     _repackOptions = repackOptions;
 }
Ejemplo n.º 5
0
        public TypesRepackStep(
            ILogger logger,
            IRepackContext repackContext,
            IRepackImporter repackImporter,
            RepackOptions repackOptions)
        {
            _logger         = logger;
            _repackContext  = repackContext;
            _repackImporter = repackImporter as RepackImporter;
            _repackOptions  = repackOptions;

            var types = _repackContext.OtherAssemblies.Concat(new[] { _repackContext.PrimaryAssemblyDefinition })
                        .SelectMany(x => x.Modules)
                        .SelectMany(m => m.Types)
                        .ToList();

            if (_repackOptions.OptMode == OptionMode.merge)
            {
                _allTypes = types;
            }
            else
            {
                _allTypes = StripTypes(types);
            }
        }
        public BamlStreamCollector(ILogger logger, IRepackContext repackContext)
        {
            _logger = logger;
            _primaryAssemblyDefinition = repackContext.PrimaryAssemblyDefinition;

            _bamlGenerator = new BamlGenerator(
                _logger,
                repackContext.TargetAssemblyMainModule.AssemblyReferences,
                _primaryAssemblyDefinition);
        }
Ejemplo n.º 7
0
 public ResourcesRepackStep(
     ILogger logger,
     IRepackContext repackContext,
     RepackOptions options)
 {
     _logger                   = logger;
     _options                  = options;
     _repackContext            = repackContext;
     _targetAssemblyMainModule = _repackContext.TargetAssemblyMainModule;
 }
Ejemplo n.º 8
0
        public BamlStreamCollector(ILogger logger, IRepackContext repackContext)
        {
            _logger = logger;
            _primaryAssemblyDefinition = repackContext.PrimaryAssemblyDefinition;

            _bamlGenerator = new BamlGenerator(
                _logger,
                repackContext.TargetAssemblyMainModule.AssemblyReferences,
                _primaryAssemblyDefinition);
        }
 public ResourcesRepackStep(
     ILogger logger,
     IRepackContext repackContext,
     RepackOptions options)
 {
     _logger = logger;
     _options = options;
     _repackContext = repackContext;
     _targetAssemblyMainModule = _repackContext.TargetAssemblyMainModule;
 }
Ejemplo n.º 10
0
 public ReferencesFixStep(
     ILogger logger,
     IRepackContext repackContext,
     IRepackImporter repackImporter,
     RepackOptions options)
 {
     _logger         = logger;
     _repackContext  = repackContext;
     _repackImporter = repackImporter;
     _options        = options;
 }
Ejemplo n.º 11
0
 public ReferencesFixStep(
     ILogger logger,
     IRepackContext repackContext,
     IRepackImporter repackImporter,
     RepackOptions options)
 {
     _logger = logger;
     _repackContext = repackContext;
     _repackImporter = repackImporter;
     _options = options;
 }
Ejemplo n.º 12
0
 public AttributesRepackStep(
     ILogger logger,
     IRepackContext repackContext,
     IRepackCopier repackCopier,
     RepackOptions options)
 {
     _logger        = logger;
     _repackContext = repackContext;
     _repackCopier  = repackCopier;
     _options       = options;
 }
Ejemplo n.º 13
0
 public TypesRepackStep(
     ILogger logger,
     IRepackContext repackContext,
     IRepackImporter repackImporter,
     RepackOptions repackOptions)
 {
     _logger         = logger;
     _repackContext  = repackContext;
     _repackImporter = repackImporter;
     _repackOptions  = repackOptions;
 }
Ejemplo n.º 14
0
 public TypesRepackStep(
     ILogger logger,
     IRepackContext repackContext,
     IRepackImporter repackImporter,
     RepackOptions repackOptions)
 {
     _logger = logger;
     _repackContext = repackContext;
     _repackImporter = repackImporter;
     _repackOptions = repackOptions;
 }
Ejemplo n.º 15
0
 public RepackImporter(
     ILogger logger,
     RepackOptions options,
     IRepackContext repackContext,
     Dictionary <AssemblyDefinition, int> aspOffsets)
 {
     _logger        = logger;
     _options       = options;
     _repackContext = repackContext;
     _aspOffsets    = aspOffsets;
 }
Ejemplo n.º 16
0
        public BamlResourcePatcher(IRepackContext repackContext)
        {
            _mainAssembly = repackContext.PrimaryAssemblyDefinition;
            _otherAssemblies = repackContext.OtherAssemblies;

            //TODO: use dynamic when we upgrade to .NET 4
            _nodeProcessors = new Dictionary<Type, Action<BamlRecord, AssemblyDefinition>>
            {
                { typeof(AssemblyInfoRecord), (r, asm) => ProcessRecord((AssemblyInfoRecord)r) },
                { typeof(PropertyWithConverterRecord), (r, asm) => ProcessRecord((PropertyWithConverterRecord)r, asm) },
                { typeof(XmlnsPropertyRecord), (r, asm) => ProcessRecord((XmlnsPropertyRecord)r) }
            };
        }
Ejemplo n.º 17
0
        public BamlResourcePatcher(IRepackContext repackContext)
        {
            _mainAssembly    = repackContext.PrimaryAssemblyDefinition;
            _otherAssemblies = repackContext.OtherAssemblies;

            //TODO: use dynamic when we upgrade to .NET 4
            _nodeProcessors = new Dictionary <Type, Action <BamlRecord, AssemblyDefinition> >
            {
                { typeof(AssemblyInfoRecord), (r, asm) => ProcessRecord((AssemblyInfoRecord)r) },
                { typeof(PropertyWithConverterRecord), (r, asm) => ProcessRecord((PropertyWithConverterRecord)r, asm) },
                { typeof(XmlnsPropertyRecord), (r, asm) => ProcessRecord((XmlnsPropertyRecord)r) }
            };
        }
Ejemplo n.º 18
0
        public TypesRepackStep(
            ILogger logger,
            IRepackContext repackContext,
            IRepackImporter repackImporter,
            RepackOptions repackOptions)
        {
            _logger = logger;
            _repackContext = repackContext;
            _repackImporter = repackImporter;
            _repackOptions = repackOptions;

            _allTypes =
                _repackContext.OtherAssemblies.Concat(new[] { _repackContext.PrimaryAssemblyDefinition })
                    .SelectMany(x => x.Modules)
                    .SelectMany(m => m.Types)
                    .ToList();
        }
Ejemplo n.º 19
0
 public GenericResourceProcessor(IRepackContext repackContext)
 {
     _repackContext = repackContext;
 }
Ejemplo n.º 20
0
 internal ReflectionHelper(IRepackContext repack)
 {
     _repack = repack;
 }
 public GenericResourceProcessor(IRepackContext repackContext)
 {
     _repackContext = repackContext;
 }
Ejemplo n.º 22
0
 public IKVMLineIndexer(IRepackContext ilRepack, bool doLineIndexing)
 {
     repack  = ilRepack;
     enabled = doLineIndexing;
 }
Ejemplo n.º 23
0
 public ReferencesRepackStep(ILogger logger, IRepackContext repackContext, RepackOptions options)
 {
     _logger        = logger;
     _repackContext = repackContext;
     _options       = options;
 }
Ejemplo n.º 24
0
 public PlatformFixer(IRepackContext repack, TargetRuntime runtime)
 {
     this.repack = repack;
     sourceRuntime = runtime;
 }
Ejemplo n.º 25
0
 public Win32ResourceStep(ILogger logger, IRepackContext repackContext, Dictionary <AssemblyDefinition, int> aspOffsets)
 {
     _logger        = logger;
     _repackContext = repackContext;
     _aspOffsets    = aspOffsets;
 }
Ejemplo n.º 26
0
 public ReferencesRepackStep(ILogger logger, IRepackContext repackContext)
 {
     _logger        = logger;
     _repackContext = repackContext;
 }
Ejemplo n.º 27
0
 public PlatformAndDuplicateFixer(IRepackContext repack, TargetRuntime runtime) : base(repack, runtime)
 {
     _repack = repack;
 }
Ejemplo n.º 28
0
 public IKVMLineIndexer(IRepackContext ilRepack, bool doLineIndexing)
 {
     repack = ilRepack;
     enabled = doLineIndexing;
 }
Ejemplo n.º 29
0
 public ReferenceFixator(ILogger logger, IRepackContext repackContext)
 {
     _repackContext = repackContext;
     _logger = logger;
 }
 public XamlResourcePathPatcherStep(ILogger logger, IRepackContext repackContext)
 {
     _logger        = logger;
     _repackContext = repackContext;
 }
Ejemplo n.º 31
0
 public BamlResourcePatcher(IRepackContext repackContext)
 {
     _mainAssembly    = repackContext.PrimaryAssemblyDefinition;
     _otherAssemblies = repackContext.OtherAssemblies;
 }
 public StringResourceProcessor(IRepackContext repackContext)
 {
     _repackContext = repackContext;
 }
Ejemplo n.º 33
0
 public PlatformFixer(IRepackContext repack, TargetRuntime runtime)
 {
     this.repack   = repack;
     sourceRuntime = runtime;
 }
Ejemplo n.º 34
0
 internal ReflectionHelper(IRepackContext repack)
 {
     _repack = repack;
 }
Ejemplo n.º 35
0
 public ReferenceFixator(ILogger logger, IRepackContext repackContext)
 {
     _repackContext = repackContext;
     _logger        = logger;
 }
Ejemplo n.º 36
0
 public StringResourceProcessor(IRepackContext repackContext)
 {
     _repackContext = repackContext;
 }
 public ReferencesRepackStep(ILogger logger, IRepackContext repackContext)
 {
     _logger = logger;
     _repackContext = repackContext;
 }
 public XamlResourcePathPatcherStep(ILogger logger, IRepackContext repackContext)
 {
     _logger = logger;
     _repackContext = repackContext;
 }