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(); }
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()); }
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()); }
private static void PublishDacpac(PackageToolConfig config) { }