Datei: Tools/AddMappingToVsix/Program.cs
Last Commit (1f5c0c6)
1 | -- File didn't exist -- |
New Commit (443f0d3)
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 |