Datei: Tools/AddMappingToVsix/Program.cs
Last Commit (5192672)
1 | using System.IO.Compression; |
2 | |
3 | namespace AddMappingToVsix |
4 | { |
5 | ····internal class Program |
6 | ····{ |
7 | ········static void Main(string[] args) |
8 | ········{ |
9 | ············var vsixFile = args[0]; |
10 | ············string releasePath = Path.GetDirectoryName(vsixFile)!; |
11 | ············var root = Path.GetFullPath(Path.Combine(releasePath, @"..\..\..")); |
12 | ············var path1 = Path.Combine( root, @"NDOInterfaces\bin\Release\net8.0\NDOInterfaces.dll" ); |
13 | ············var path2 = Path.Combine( root, @"NDO.Mapping\NDO.Mapping\bin\Release\net8.0\NDO.mapping.dll" ); |
14 | ············using (var zipFile = ZipFile.Open( args[0], ZipArchiveMode.Update )) |
15 | ············{ |
16 | ················FileInfo fi = new FileInfo(path1); |
17 | ················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
18 | ················fi = new FileInfo(path2); |
19 | ················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
20 | ············} |
21 | ········} |
22 | ····} |
23 | } |
24 |
New Commit (964ec79)
1 | using System.IO.Compression; |
2 | |
3 | namespace AddMappingToVsix |
4 | { |
5 | ····internal class Program |
6 | ····{ |
7 | ········static void Main(string[] args) |
8 | ········{ |
9 | ············var vsixFile = args[0]; |
10 | ············string releasePath = Path.GetDirectoryName(vsixFile)!; |
11 | ············var root = Path.GetFullPath(Path.Combine(releasePath, @"..\..\..")); |
12 | ············var path1 = Path.Combine( root, @"NDOInterfaces\bin\Release\net8.0\NDOInterfaces.dll" ); |
13 | ············var path2 = Path.Combine( root, @"NDO.Mapping\NDO.Mapping\bin\Release\net8.0\NDO.mapping.dll" ); |
14 | ············var path3 = Path.Combine( root, @"SimpleMappingTool\bin\Release\net8.0-windows\WinForms.FontSize.dll" ); |
15 | ············using (var zipFile = ZipFile.Open( args[0], ZipArchiveMode.Update )) |
16 | ············{ |
17 | ················FileInfo fi = new FileInfo(path1); |
18 | ················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
19 | ················fi = new FileInfo(path2); |
20 | ················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
21 | ················fi = new FileInfo( path3 ); |
22 | ················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
23 | ············} |
24 | ········} |
25 | ····} |
26 | } |
27 |