Ejemplo n.º 1
0
        private static void NupackIsocoreData(PackageToolConfig config)
        {
            var outputNuspecPath = Path.Combine(config.WorkingDirectory, config.OutputNuspecName);
            var versionText      = String.Format($"{config.Version.Major}.{config.Version.Minor}.{config.Version.Build}");
            var nuspec           = GetResourceText(config.OutputNuspecName).Replace("$VERSION$", versionText);

            File.WriteAllText(outputNuspecPath, nuspec);


            var p = new Process();

            p.StartInfo.UseShellExecute = false;
            p.StartInfo.FileName        = "nuget.exe";
            p.StartInfo.Arguments       = $"pack \"{outputNuspecPath}\" -Verbosity detailed -OutputDirectory \"{config.OutputDirectory}\"";
            p.Start();
            p.WaitForExit();
        }
Ejemplo n.º 2
0
        private static void CreateIsocoreData(PackageToolConfig config)
        {
            var libdir = Path.Combine(config.WorkingDirectory, @"lib\net45\");

            Directory.CreateDirectory(libdir);

            var outputAssemblyPath = Path.Combine(libdir, config.CondensedAssemblyName);

            var nuspec   = GetResourceText(config.NuspecTemplateName);
            var assFiles = new List <string>();

            foreach (var assName in AssemblyNames)
            {
                var assembly = Assembly.LoadFrom($"{assName}.dll");
                assFiles.Add(assembly.CodeBase.Replace("file:///", String.Empty));
            }
            Packaging.MergeAssemblies(outputAssemblyPath, config.Version, assFiles.ToArray());
        }
Ejemplo n.º 3
0
        private static void CreateIsocoreData(PackageToolConfig config)
        {

            var libdir = Path.Combine(config.WorkingDirectory, @"lib\net45\");
            Directory.CreateDirectory(libdir);

            var outputAssemblyPath = Path.Combine(libdir, config.CondensedAssemblyName);

            var nuspec = GetResourceText(config.NuspecTemplateName);
            var assFiles = new List<string>();
            foreach(var assName in AssemblyNames)
            {
                var assembly = Assembly.LoadFrom($"{assName}.dll");
                assFiles.Add(assembly.CodeBase.Replace("file:///", String.Empty));
            }
            Packaging.MergeAssemblies(outputAssemblyPath, config.Version, assFiles.ToArray());

        }
Ejemplo n.º 4
0
        private static void PublishDacpac(PackageToolConfig config)
        {

        }
Ejemplo n.º 5
0
        private static void NupackIsocoreData(PackageToolConfig config)
        {
            var outputNuspecPath = Path.Combine(config.WorkingDirectory, config.OutputNuspecName);
            var versionText = String.Format($"{config.Version.Major}.{config.Version.Minor}.{config.Version.Build}");
            var nuspec = GetResourceText(config.OutputNuspecName).Replace("$VERSION$", versionText);
            File.WriteAllText(outputNuspecPath, nuspec);


            var p = new Process();
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.FileName = "nuget.exe";
            p.StartInfo.Arguments = $"pack \"{outputNuspecPath}\" -Verbosity detailed -OutputDirectory \"{config.OutputDirectory}\"";
            p.Start();
            p.WaitForExit();
        }
Ejemplo n.º 6
0
 private static void PublishDacpac(PackageToolConfig config)
 {
 }