(string[] args)
| 9 | private static string RepositoryRoot = GitRepository.GetRootPath(); |
| 10 | |
| 11 | static void Main(string[] args) |
| 12 | { |
| 13 | { |
| 14 | string SourcePath = RepositoryRoot + @"\Assets\OriginalAssets\NanaBox"; |
| 15 | |
| 16 | string OutputPath = RepositoryRoot + @"\Assets\PackageAssets"; |
| 17 | |
| 18 | ConcurrentDictionary<int, MagickImage> StandardSources = |
| 19 | new ConcurrentDictionary<int, MagickImage>(); |
| 20 | ConcurrentDictionary<int, MagickImage> StandardIconSources = |
| 21 | new ConcurrentDictionary<int, MagickImage>(); |
| 22 | ConcurrentDictionary<int, MagickImage> ContrastBlackSources = |
| 23 | new ConcurrentDictionary<int, MagickImage>(); |
| 24 | ConcurrentDictionary<int, MagickImage> ContrastWhiteSources = |
| 25 | new ConcurrentDictionary<int, MagickImage>(); |
| 26 | |
| 27 | ConcurrentDictionary<int, MagickImage> ConfigurationFileSources = |
| 28 | new ConcurrentDictionary<int, MagickImage>(); |
| 29 | |
| 30 | foreach (var AssetSize in ProjectAssetsUtilities.AssetSizes) |
| 31 | { |
| 32 | StandardSources[AssetSize] = new MagickImage(string.Format( |
| 33 | @"{0}\{1}\{1}_{2}.png", |
| 34 | SourcePath, |
| 35 | "Standard", |
| 36 | AssetSize)); |
| 37 | StandardIconSources[AssetSize] = new MagickImage(string.Format( |
| 38 | @"{0}\{1}\{1}_{2}.png", |
| 39 | SourcePath.Replace("OriginalAssets", "OriginalAssetsOptimized"), |
| 40 | "Standard", |
| 41 | AssetSize)); |
| 42 | ContrastBlackSources[AssetSize] = new MagickImage(string.Format( |
| 43 | @"{0}\{1}\{1}_{2}.png", |
| 44 | SourcePath, |
| 45 | "ContrastBlack", |
| 46 | AssetSize)); |
| 47 | ContrastWhiteSources[AssetSize] = new MagickImage(string.Format( |
| 48 | @"{0}\{1}\{1}_{2}.png", |
| 49 | SourcePath, |
| 50 | "ContrastWhite", |
| 51 | AssetSize)); |
| 52 | |
| 53 | ConfigurationFileSources[AssetSize] = new MagickImage(string.Format( |
| 54 | @"{0}\{1}\{1}_{2}.png", |
| 55 | SourcePath, |
| 56 | "ConfigurationFile", |
| 57 | AssetSize)); |
| 58 | } |
| 59 | |
| 60 | ProjectAssetsUtilities.GeneratePackageApplicationImageAssets( |
| 61 | StandardSources, |
| 62 | ContrastBlackSources, |
| 63 | ContrastWhiteSources, |
| 64 | OutputPath); |
| 65 | |
| 66 | ProjectAssetsUtilities.GeneratePackageFileAssociationImageAssets( |
| 67 | ConfigurationFileSources, |
| 68 | OutputPath, |
nothing calls this directly
no outgoing calls
no test coverage detected