Esempio n. 1
0
 public override void ProcessSkippedAssembly(
     Configuration configuration, string assemblyPath, TranslationResult result
     )
 {
     ResourceConverter.ConvertResources(configuration, assemblyPath, result);
     ManifestResourceExtractor.ExtractFromAssembly(configuration, assemblyPath, result);
 }
Esempio n. 2
0
        public virtual TranslationResult Translate(AssemblyTranslator translator, Configuration configuration, string assemblyPath, bool scanForProxies)
        {
            var result = translator.Translate(assemblyPath, scanForProxies);

            ResourceConverter.ConvertResources(configuration, assemblyPath, result);

            AssemblyTranslator.GenerateManifest(translator.Manifest, assemblyPath, result);

            return(result);
        }
Esempio n. 3
0
        public override TranslationResult Translate(
            VariableSet variables, AssemblyTranslator translator, Configuration configuration, string assemblyPath, bool scanForProxies
            )
        {
            var result = translator.Translate(assemblyPath, scanForProxies);

            ResourceConverter.ConvertResources(configuration, assemblyPath, result);

            result.AddFile("Script", "XNA.Colors.js", new ArraySegment <byte>(Encoding.UTF8.GetBytes(
                                                                                  Common.MakeXNAColors()
                                                                                  )), 0);

            AssemblyTranslator.GenerateManifest(translator.Manifest, assemblyPath, result);

            return(result);
        }
Esempio n. 4
0
 protected void PostProcessAssembly(Configuration configuration, string assemblyPath, TranslationResult result)
 {
     ResourceConverter.ConvertResources(configuration, assemblyPath, result);
     ManifestResourceExtractor.ExtractFromAssembly(configuration, assemblyPath, result);
 }