예제 #1
0
        public override bool Execute()
        {
            WriteLow("IncludeDocumentation: " + IncludeCodeDocFiles);
            WriteLow("IncludePdbs: " + IncludePdbFiles);
            WriteLow("BasePath: " + BasePath);
            WriteLow("ExportName: " + BasePath);
            WriteLow("AllowBinDuplicates: " + AllowBinDuplicates);

            WriteFiles("OutputAssemblyFiles", OutputAssemblyFiles);
            WriteFiles("ContentFiles", ContentFiles);
            WriteFiles("AllAssemblyReferenceFiles", AllAssemblyReferenceFiles);
            WriteFiles("OpenWrapReferenceFiles", OpenWrapReferenceFiles);
            WriteFiles("PdbFiles", PdbFiles);
            WriteFiles("CodeDocFiles", CodeDocFiles);
            WriteFiles("SatelliteAssemblies", SatelliteAssemblies);
            WriteFiles("SerializationAssemblies", SerializationAssemblies);

            var emitter = new MSBuildInstructionEmitter(LocalFileSystem.Instance)
            {
                AllAssemblyReferenceFiles = Files(AllAssemblyReferenceFiles),
                ContentFiles           = Files(ContentFiles),
                OpenWrapReferenceFiles = Files(OpenWrapReferenceFiles),
                PdbFiles                = Files(PdbFiles),
                CodeDocFiles            = Files(CodeDocFiles),
                SatelliteAssemblies     = Files(SatelliteAssemblies),
                SerializationAssemblies = Files(SerializationAssemblies),
                OutputAssemblyFiles     = Files(OutputAssemblyFiles),
                IncludePdbFiles         = IncludePdbFiles,
                IncludeCodeDocFiles     = IncludeCodeDocFiles,
                BasePath                = BasePath,
                ExportName              = ExportName
            };

            foreach (var kv in emitter.GenerateInstructions())
            {
                BuildEngine.LogMessageEvent(new BuildMessageEventArgs(
                                                "[built(" +
                                                kv.Key +
                                                ", '" +
                                                kv.Value +
                                                "', " +
                                                AllowBinDuplicates.ToString().ToLowerInvariant() +
                                                ")]",
                                                null,
                                                "OpenWrap",
                                                MessageImportance.Normal));
            }
            return(true);
        }
예제 #2
0
        public override bool Execute()
        {
            WriteLow("Include Binaries: " + IncludeBinFiles);
            WriteLow("Include Content: " + IncludeContentFiles);
            WriteLow("Include XML Documentation: " + IncludeCodeDocFiles);
            WriteLow("Include PDBs: " + IncludePdbFiles);
            WriteLow("Include Source: " + IncludeSourceFiles);
            WriteLow("Export to: " + ExportName);
            WriteLow("Allow duplicates: " + AllowBinDuplicates);

            WriteLow("Root path: " + RootPath);

            WriteFiles("BuildOutput", BuildOutputFiles);
            WriteFiles("ContentFiles", ContentFiles);
            WriteFiles("SourceFiles", SourceFiles);

            var emitter = new MSBuildInstructionEmitter(LocalFileSystem.Instance)
            {
                ContentFiles        = Files(ContentFiles),
                SourceFiles         = Files(SourceFiles),
                BuildOutputFiles    = Files(BuildOutputFiles),
                IncludePdbFiles     = IncludePdbFiles,
                IncludeCodeDocFiles = IncludeCodeDocFiles,
                IncludeSourceFiles  = IncludeSourceFiles,
                IncludeBinFiles     = IncludeBinFiles,
                IncludeContentFiles = IncludeContentFiles,
                ExportName          = ExportName,
                RootPath            = RootPath
            };

            foreach (var kv in emitter.GenerateInstructions())
            {
                BuildEngine.LogMessageEvent(new BuildMessageEventArgs(
                                                string.Format("[built({0}, '{1}', {2})]", kv.Key, kv.Value, AllowBinDuplicates.ToString().ToLowerInvariant()),
                                                null,
                                                "OpenWrap",
                                                MessageImportance.High));
            }
            return(true);
        }