コード例 #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();
        }
コード例 #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());
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: isoquark/isocore.data
        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());

        }
コード例 #4
0
ファイル: Program.cs プロジェクト: isoquark/isocore.data
        private static void PublishDacpac(PackageToolConfig config)
        {

        }
コード例 #5
0
ファイル: Program.cs プロジェクト: isoquark/isocore.data
        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();
        }
コード例 #6
0
 private static void PublishDacpac(PackageToolConfig config)
 {
 }