diff --git a/.github/workflows/publish.txt b/.github/workflows/publish.txt deleted file mode 100644 index 03dca2d..0000000 --- a/.github/workflows/publish.txt +++ /dev/null @@ -1,52 +0,0 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0.x - - name: Setup dotnet-script - run: dotnet tool install -g dotnet-script - #- name: Validate Catalog - # run: dotnet script --no-cache ./src/CatalogValidation.csx -- ./docs/Catalog.xml - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8c22e37 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,38 @@ +name: Deploy Docs to GitHub Pages with Catalog Builder Tool + +on: + push: + branches: + - main + paths: + - '.github/workflows/**' + - 'docs/**' + - 'src/**' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Setup .NET Core SDK + - name: Setup .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + # Build catalog builder tool + - name: Build .NET Tool + run: dotnet build src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj --configuration Release + + # Run catalog builder tool + - name: Run .NET Tool + run: dotnet run --project src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj --configuration Release -- ./docs/ ./outputs/ + + # Deploy to GitHub Pages + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./outputs + publish_branch: gh-pages \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c53c701 --- /dev/null +++ b/.gitignore @@ -0,0 +1,438 @@ +# Created by https://www.toptal.com/developers/gitignore/api/dotnetcore,visualstudio,visualstudiocode,windows +# Edit at https://www.toptal.com/developers/gitignore?templates=dotnetcore,visualstudio,visualstudiocode,windows + +### DotnetCore ### +# .NET Core build folders +bin/ +obj/ + +# Common node modules locations +/node_modules +/wwwroot/node_modules + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### VisualStudio ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Nuget personal access tokens and Credentials +nuget.config + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools + +# Local History for Visual Studio Code + +# Windows Installer files from build outputs + +# JetBrains Rider +.idea/ +*.sln.iml + +### VisualStudio Patch ### +# Additional files built by Visual Studio + +# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,visualstudio,visualstudiocode,windows + +/outputs/ diff --git a/src/TableCloth.CatalogBuilder/Program.cs b/src/TableCloth.CatalogBuilder/Program.cs new file mode 100644 index 0000000..d457d45 --- /dev/null +++ b/src/TableCloth.CatalogBuilder/Program.cs @@ -0,0 +1,320 @@ +using SixLabors.ImageSharp.Formats.Png; +using System.IO.Compression; +using System.Xml.Schema; +using System.Xml; + +AppMain(args); + +static void AppMain(string[] args) +{ + var sourceDirectory = args.ElementAtOrDefault(0); + var targetDirectory = args.ElementAtOrDefault(1); + + if (string.IsNullOrWhiteSpace(sourceDirectory) || + !Directory.Exists(sourceDirectory)) + { + Console.Error.WriteLine("Please specify source directory to run this tool."); + Environment.Exit(1); + return; + } + + if (string.IsNullOrWhiteSpace(targetDirectory)) + { + Console.Error.WriteLine("Please specify target directory to run this tool."); + Environment.Exit(1); + return; + } + + try + { + Console.Out.WriteLine($"Source directory path: `{sourceDirectory}`"); + Console.Out.WriteLine($"Target directory path: `{targetDirectory}`"); + + PrepareOutputDirectory(sourceDirectory, targetDirectory); + ConvertSiteLogoImagesIntoIconFiles(targetDirectory); + CreateImageResourceZipFile(targetDirectory); + ValidatingCatalogSchemaFile(targetDirectory); + + Console.Out.WriteLine("Catalog builder runs with succeed result."); + Environment.Exit(0); + } + catch (Exception thrownException) + { + Console.Error.WriteLine($"Error: {thrownException}"); + Environment.Exit(2); + } +} + +static string? GetPositionInfo(IXmlLineInfo? lineInfo) +{ + var positionText = "Unknown Position"; + + if (lineInfo != null) + positionText = $"Line: {lineInfo.LineNumber}, Line Position: {lineInfo.LinePosition}"; + + return positionText; +} + +static void ValidatingCatalogSchemaFile(string targetDirectory) +{ + const string userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36"; + var catalogXmlPath = Path.Combine(targetDirectory, "Catalog.xml"); + var schemaXsdPath = Path.Combine(targetDirectory, "Catalog.xsd"); + + var config = new XmlReaderSettings() + { + ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings, + }; + + Console.Out.WriteLine($"Info: Using schema `{schemaXsdPath}`."); + config.ValidationFlags |= XmlSchemaValidationFlags.ProcessSchemaLocation; + config.ValidationType = ValidationType.Schema; + config.Schemas.Add(null, schemaXsdPath); + + var warningCount = 0; + var errorCount = 0; + + config.ValidationEventHandler += new ValidationEventHandler((_sender, _e) => + { + if (_e.Severity == XmlSeverityType.Warning) + { + warningCount++; + Console.Out.WriteLine($"Warning: {_e.Message} - {GetPositionInfo(_sender as IXmlLineInfo)}"); + } + else if (_e.Severity == XmlSeverityType.Error) + { + errorCount++; + Console.Error.WriteLine($"Error: {_e.Message} - {GetPositionInfo(_sender as IXmlLineInfo)}"); + } + }); + + var httpClient = new HttpClient() + { + Timeout = TimeSpan.FromSeconds(5d), + }; + + if (!string.IsNullOrWhiteSpace(userAgent)) + { + Console.Out.WriteLine($"Info: Using User Agent String `{userAgent}`."); + httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", userAgent); + } + + Console.Out.WriteLine($"Info: Validating `{catalogXmlPath}` file."); + var testedUrl = new Dictionary(); + + // Get the XmlReader object with the configured settings. + using (XmlReader reader = XmlReader.Create(catalogXmlPath, config)) + { + // Parsing the file will cause the validation to occur. + while (reader.Read()) + { + try + { + if (reader.NodeType != XmlNodeType.Element) + continue; + + switch (reader.Name) + { + case "Companion": + case "Service": + case "Package": + var urlString = reader.GetAttribute("Url", null); + + if (string.IsNullOrWhiteSpace(urlString)) + { + errorCount++; + Console.Error.WriteLine($"Error: [{reader.Name}] URL string cannot be empty - {GetPositionInfo(reader as IXmlLineInfo)}"); + continue; + } + + if (!Uri.TryCreate(urlString, UriKind.Absolute, out Uri? result) || + result == null) + { + errorCount++; + Console.Error.WriteLine($"Error: Cannot parse the URI `{urlString}` - {GetPositionInfo(reader as IXmlLineInfo)}"); + continue; + } + + if (testedUrl.ContainsKey(urlString)) + { + Console.Out.WriteLine($"Skipping visited `{reader.Name}` URL `{urlString}`..."); + continue; + } + + var response = httpClient.GetAsync(result, HttpCompletionOption.ResponseHeadersRead).Result; + + if (response == null || !response.IsSuccessStatusCode) + { + testedUrl[urlString] = false; + errorCount++; + Console.Out.WriteLine($"Warning: Cannot fetch the URI `{urlString}` (Remote response code: {(int?)response?.StatusCode}) - {GetPositionInfo(reader as IXmlLineInfo)}"); + continue; + } + else + { + Console.Out.WriteLine($"Test succeed on `{reader.Name}` URL `{urlString}`..."); + testedUrl[urlString] = true; + } + break; + } + } + catch (Exception ex) + { + errorCount++; + Console.Error.WriteLine($"Error: {ex.GetType().Name} / {ex.InnerException?.GetType().Name} throwed. ({ex.InnerException?.Message ?? ex.Message}) - {GetPositionInfo(reader as IXmlLineInfo)}"); + continue; + } + } + } + + if (errorCount + warningCount < 1) + Console.Out.WriteLine("Success: No XML warnings or errors found."); + else if (errorCount < 1 && warningCount > 0) + Console.Out.WriteLine("Warning: Some XML warnings found."); + else + Console.Error.WriteLine("Error: One or more XML errors or warnings found."); +} + +static void CreateImageResourceZipFile(string targetDirectory) +{ + var imageDirectory = Path.Combine(targetDirectory, "images"); + Console.Out.WriteLine($"Investigating directory `{imageDirectory}`..."); + + var pngFiles = Directory.GetFiles(imageDirectory, "*.png", SearchOption.AllDirectories); + var icoFiles = Directory.GetFiles(imageDirectory, "*.ico", SearchOption.AllDirectories); + var sourceFiles = Enumerable.Concat(pngFiles, icoFiles).ToArray(); + Console.Out.WriteLine($"Found total {sourceFiles.Length} source files."); + + var workingDirectory = Path.Combine(targetDirectory, "working"); + if (!Directory.Exists(workingDirectory)) + { + Console.Out.WriteLine($"Creating working directory `{workingDirectory}`..."); + Directory.CreateDirectory(workingDirectory); + } + + foreach (var eachResourceFile in sourceFiles) + { + var destFilePath = Path.Combine(workingDirectory, Path.GetFileName(eachResourceFile)); + + if (File.Exists(destFilePath)) + Console.Out.WriteLine($"Warning: Duplicated file found. Source: `{eachResourceFile}`."); + + Console.Out.WriteLine($"Copying `{eachResourceFile}` file to `{destFilePath}` file..."); + File.Copy(eachResourceFile, destFilePath, true); + } + + var zipFilePath = Path.Combine(targetDirectory, "Images.zip"); + Console.Out.WriteLine($"Creating `{zipFilePath}` zip file..."); + ZipFile.CreateFromDirectory(workingDirectory, zipFilePath, CompressionLevel.Optimal, false); + + Console.Out.WriteLine($"Removing working directory `{workingDirectory}`..."); + Directory.Delete(workingDirectory, true); +} + +static void ConvertSiteLogoImagesIntoIconFiles(string targetDirectory) +{ + var imageDirectory = Path.Combine(targetDirectory, "images"); + Console.Out.WriteLine($"Investigating directory `{imageDirectory}`..."); + + var pngFiles = Directory.GetFiles(imageDirectory, "*.png", SearchOption.AllDirectories); + Console.Out.WriteLine($"Found {pngFiles.Length} png files in `{imageDirectory}` directory."); + + foreach (var eachPngFile in pngFiles) + { + var directoryPath = Path.GetDirectoryName(eachPngFile); + + if (string.IsNullOrEmpty(directoryPath)) + { + Console.Error.WriteLine($"Cannot obtain directory path of `{eachPngFile}` file."); + continue; + } + + var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(eachPngFile); + var iconFilePath = Path.Combine(directoryPath, $"{fileNameWithoutExtension}.ico"); + + Console.Out.WriteLine($"Converting `{eachPngFile}` image file into `{iconFilePath}` Win32 icon file."); + ConvertImageToIcon(eachPngFile, iconFilePath); + } +} + +// https://stackoverflow.com/questions/21387391/how-to-convert-an-image-to-an-icon-without-losing-transparency +static void ConvertImageToIcon(string sourceImageFilePath, string targetIconFilePath) +{ + using (var outputFile = File.OpenWrite(targetIconFilePath)) + using (var outputWriter = new BinaryWriter(outputFile)) + using (var inputFile = File.OpenRead(sourceImageFilePath)) + using (var inputImage = Image.Load(inputFile)) + { + // Header + outputWriter.Write((short)0); // 0 : reserved + outputWriter.Write((short)1); // 2 : 1=ico, 2=cur + outputWriter.Write((short)1); // 4 : number of images + + // Image directory + var w = inputImage.Width; + if (w >= 256) w = 0; + outputWriter.Write((byte)w); // 0 : width of image + + var h = inputImage.Height; + if (h >= 256) h = 0; + outputWriter.Write((byte)h); // 1 : height of image + + outputWriter.Write((byte)0); // 2 : number of colors in palette + outputWriter.Write((byte)0); // 3 : reserved + outputWriter.Write((short)0); // 4 : number of color planes + outputWriter.Write((short)0); // 6 : bits per pixel + + var sizeHere = outputFile.Position; + outputWriter.Write(0); // 8 : image size + + var start = (int)outputFile.Position + 4; + outputWriter.Write(start); // 12: offset of image data + + // Image data + inputImage.Save(outputFile, PngFormat.Instance); + var imageSize = (int)outputFile.Position - start; + outputFile.Seek(sizeHere, SeekOrigin.Begin); + outputWriter.Write(imageSize); + outputFile.Seek(0L, SeekOrigin.Begin); + } +} + +static void PrepareOutputDirectory(string sourceDirectory, string targetDirectory) +{ + if (Directory.Exists(targetDirectory)) + { + Console.Out.WriteLine($"Removing output directory `{targetDirectory}`..."); + Directory.Delete(targetDirectory, true); + } + + Console.Out.WriteLine($"Copying all sub-items in `{sourceDirectory}` directory to `{targetDirectory}` directory..."); + CopyAll(sourceDirectory, targetDirectory, true); +} + +static void CopyAll(string sourceDirectory, string targetDirectory, bool overwrite) +{ + if (!Directory.Exists(sourceDirectory)) + return; + + if (!Directory.Exists(targetDirectory)) + { + Console.Out.WriteLine($"Creating `{targetDirectory}` directory..."); + Directory.CreateDirectory(targetDirectory); + } + + foreach (var filePath in Directory.GetFiles(sourceDirectory, "*.*", SearchOption.TopDirectoryOnly)) + { + var fileName = Path.GetFileName(filePath); + var destFile = Path.Combine(targetDirectory, fileName); + Console.Out.WriteLine($"Copying `{filePath}` file into `{destFile}` file..."); + File.Copy(filePath, destFile, overwrite); + } + + foreach (var directoryPath in Directory.GetDirectories(sourceDirectory, "*.*", SearchOption.TopDirectoryOnly)) + { + var directoryName = Path.GetFileName(directoryPath); + var destDirectory = Path.Combine(targetDirectory, directoryName); + Console.Out.WriteLine($"Copying `{directoryName}` directories into `{destDirectory}` directory..."); + CopyAll(directoryPath, destDirectory, overwrite); + } +} diff --git a/src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj b/src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj new file mode 100644 index 0000000..bdff611 --- /dev/null +++ b/src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + diff --git a/src/TableClothCatalog.sln b/src/TableClothCatalog.sln new file mode 100644 index 0000000..8898b61 --- /dev/null +++ b/src/TableClothCatalog.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TableCloth.CatalogBuilder", "TableCloth.CatalogBuilder\TableCloth.CatalogBuilder.csproj", "{F2BBC947-18A5-4D40-AF8B-201E16964C09}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F2BBC947-18A5-4D40-AF8B-201E16964C09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F2BBC947-18A5-4D40-AF8B-201E16964C09}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F2BBC947-18A5-4D40-AF8B-201E16964C09}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F2BBC947-18A5-4D40-AF8B-201E16964C09}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal