Beispiel #1
0
 public void PackStandard(PackageDescriptor desc)
 {
     // 'standard'
     List<Pattern> old = q.exclusions;
     q.exclusions = new List<Pattern>(old);
     q.exclusions.Add(new Pattern("^/Core/[^/]+.sln")); //Don't include the regular solution files, they won't load properly.
     using (var p = new Package(desc.Path, this.f.ParentPath)) {
         p.Add(q.files("^/dlls/release/ImageResizer.(Mvc.)?(dll|pdb|xml)$"), "/");
         p.Add(q.files("^/dlls/(debug|release)/"));
         p.Add(q.files("^/submodules/studiojs"), "/StudioJS"); //Copy submodules/studiojs -> /StudioJS
         p.Add(q.files("^/(core|samples)/"));
         p.Add(q.files("^/[^/]+.txt$"));
         p.Add(q.files("^/Web.config$"));
     }
     q.exclusions = old;
 }
Beispiel #2
0
        public void PackFull(PackageDescriptor desc)
        {
            // 'full'
            using (var p = new Package(desc.Path, this.f.ParentPath)) {
                p.Add(q.files("^/(core|contrib|core.mvc|plugins|samples|tests|studiojs)/"));
                p.Add(q.files("^/tools/COMInstaller"));
                p.Add(q.files("^/dlls/(debug|release)"));
                p.Add(q.files("^/dlls/release/ImageResizer.(Mvc.)?(dll|pdb|xml)$"), "/"); //Make a copy in the root
                p.Add(q.files("^/submodules/studiojs"), "/StudioJS"); //Copy submodules/studiojs -> /StudioJS
                p.Add(q.files("^/submodules/(lightresize|libwebp-net)"));
                p.Add(q.files("^/[^/]+.txt$"));
                p.Add(q.files("^/Web.config$"));

                //Make a empty sample app for IIS
                p.Add(q.files("^/dlls/release/ImageResizer.(Mvc.)?(dll|pdb)$"), "/Samples/BasicIISSite/bin/");
                p.Add(q.files("^/dlls/release/ImageResizer.(Mvc.)?(dll|pdb)$"), "/Samples/SampleAspSite/bin/");
                p.Add(q.files("^/dlls/release/ImageResizer.Plugins.RemoteReader.(dll|pdb)$"), "/Samples/SampleAspSite/bin/");
                p.Add(q.files("^/Web.config$"),"/Samples/BasicIISSite/");
            }
        }
Beispiel #3
0
 public void PackMin(PackageDescriptor desc)
 {
     // 'min' - /dlls/release/ImageResizer.* - /
     // /*.txt
     using (var p = new Package(desc.Path, this.f.ParentPath)) {
         p.Add(q.files("^/dlls/release/ImageResizer.(Mvc.)?(dll|pdb|xml)$"), "/", "dlls/release");
         p.Add(q.files("^/readme.txt$"));
         p.Add(q.files("^/Core/license.txt$"), "");
         p.Add(q.files("^/Web.config$"));
     }
 }
Beispiel #4
0
 public void PackAllBinaries(PackageDescriptor desc)
 {
     using (var p = new Package(desc.Path, this.f.ParentPath)) {
         p.Add(q.files("^/dlls/release/*.(dll|pdb)$"), "/", "dlls/release");
         p.Add(q.files("^/[^/]+.txt$"));
     }
 }