Пример #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="BuildTask"/>
 /// </summary>
 /// <param name="configuration"><see cref="Configuration"/> to use</param>
 /// <param name="assemblyPaths"><see cref="AssemblyPaths"/> to use</param>
 /// <param name="assemblies"><see cref="Assemblies"/> for handling what assemblies is part of the deployment</param>
 /// <param name="artifactsEmbedder"><see cref="ArtifactsEmbedder"/> for embedding artifacts</param>
 public BuildTask(
     Configuration configuration,
     AssemblyPaths assemblyPaths,
     Assemblies assemblies,
     ArtifactsEmbedder artifactsEmbedder)
 {
     _configuration     = configuration;
     _assemblyPaths     = assemblyPaths;
     _artifactsEmbedder = artifactsEmbedder;
     _assemblies        = assemblies;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Assemblies"/> class.
 /// </summary>
 /// <param name="configuration">Current <see cref="Configuration"/>.</param>
 /// <param name="buildTarget">Current <see cref="BuildTarget"/>.</param>
 /// <param name="assemblyPaths">Paths for assemblies.</param>
 public Assemblies(
     Configuration configuration,
     BuildTarget buildTarget,
     AssemblyPaths assemblyPaths)
 {
     _configuration = configuration;
     _assemblyPaths = assemblyPaths;
     _buildTarget   = buildTarget;
     PopulateRootAssemblies();
     ImportAllAssemblies();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CopyFiles"/> class.
 /// </summary>
 /// <param name="configuration"><see cref="Configuration"/> to use.</param>
 /// <param name="assemblyPaths"><see cref="AssemblyPaths"/> to use.</param>
 /// <param name="assemblies"><see cref="Assemblies"/> for handling what assemblies is part of the deployment.</param>
 /// <param name="buildMessages"><see cref="IBuildMessages"/> for build messages.</param>
 /// <param name="buildTarget">Current <see cref="BuildTarget"/>.</param>
 public CopyFiles(
     Configuration configuration,
     AssemblyPaths assemblyPaths,
     Assemblies assemblies,
     IBuildMessages buildMessages,
     BuildTarget buildTarget)
 {
     _configuration = configuration;
     _assemblyPaths = assemblyPaths;
     _assemblies    = assemblies;
     _buildMessages = buildMessages;
     _buildTarget   = buildTarget;
 }
Пример #4
0
        IEnumerable <string> GetFilesFor(AssemblyPaths paths, string path)
        {
            var files = new List <string>();

            path = paths.FindBestMatchFor(path);
            if (File.Exists(path))
            {
                files.Add(path);

                var pdbFile = Path.ChangeExtension(path, ".pdb");
                if (File.Exists(pdbFile))
                {
                    files.Add(pdbFile);
                }
            }
            return(files);
        }