private void initVsixFile() { var fileName = Path.ChangeExtension(OutPathname, ".vsix"); var fsOut = File.Create(fileName); _zipStream = new ZipOutputStream(fsOut); _zipStream.SetLevel(9); _solutionFolder = OutPathname.GetDirectoryName(); _folderOffset = _solutionFolder.Length + (_solutionFolder.EndsWith("\\") ? 0 : 1); }
private void addSolutionTemplate() { if (string.IsNullOrWhiteSpace(OptionsGuiData.ProjectSubType)) { OptionsGuiData.ProjectSubType = "Windows"; } var path = Path.Combine(_solutionFolder, VsixManifestCreator.TemplatePath + "\\" + Uri.EscapeUriString(OptionsGuiData.ProjectSubType) + "\\" + Uri.EscapeUriString(OutPathname.GetFileName())); addFileEntry(path, File.ReadAllBytes(OutPathname), replaceSafeprojectname: false); }