Esempio n. 1
0
        public void Store(BuildResult result)
        {
            CreateCacheFolder();

            WriteReferences(result);
            WriteVariables(result);
            WriteAssembly(result);
            WriteSymbols(result);
        }
Esempio n. 2
0
        void WriteVariables(BuildResult result)
        {
            var variables = result.Variables
                .OrderBy(x => x.Name)
                .ToArray();

            var names  = string.Join("!#!", variables.Select(x => x.Name));
            var values = StringHash(string.Join("", variables.Select(x => x.Value)));

            File.WriteAllLines(CapturedVariablesFile, new[]{names, values});
        }
Esempio n. 3
0
 void WriteReferences(BuildResult result)
 {
     File.WriteAllLines(ReferencesFile, result.References.Select(x => x.FullPath));
 }
Esempio n. 4
0
 void WriteSymbols(BuildResult result)
 {
     if (result.SymbolBytes != null)
         File.WriteAllBytes(PdbFile, result.SymbolBytes);
 }
Esempio n. 5
0
 void WriteAssembly(BuildResult result)
 {
     File.WriteAllBytes(AssemblyFile, result.AssemblyBytes);
 }