{"id":19903467,"url":"https://github.com/zdavatz/amiko_csharp","last_synced_at":"2025-05-03T00:31:15.291Z","repository":{"id":11624615,"uuid":"70154368","full_name":"zdavatz/amiko_csharp","owner":"zdavatz","description":"AmiKo Desitin for Windows, written in C#","archived":false,"fork":false,"pushed_at":"2023-09-10T17:24:35.000Z","size":5391,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T23:16:27.114Z","etag":null,"topics":["amiko","csharp","daily","drugs","full-text-search","opensource","prices","switzerland","update"],"latest_commit_sha":null,"homepage":"https://www.microsoft.com/de-ch/p/amiko-desitin/9wzdncrdffxc","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdavatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-06T13:02:22.000Z","updated_at":"2024-05-01T23:16:27.115Z","dependencies_parsed_at":"2022-08-08T00:00:02.336Z","dependency_job_id":null,"html_url":"https://github.com/zdavatz/amiko_csharp","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Famiko_csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Famiko_csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Famiko_csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Famiko_csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdavatz","download_url":"https://codeload.github.com/zdavatz/amiko_csharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224343130,"owners_count":17295578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amiko","csharp","daily","drugs","full-text-search","opensource","prices","switzerland","update"],"created_at":"2024-11-12T20:23:54.392Z","updated_at":"2024-11-12T20:23:55.946Z","avatar_url":"https://github.com/zdavatz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AmiKo Windows (a.k.a. AmiKo C#)\n\nAmiKo for Windows, written in C#.\nApplications are available in the Microsoft store now!\n\n| Name | Language | Build |\n|------|----------|-------|\n| [AmiKo Desitin] | Deutsch (Schweiz) | [Build in Azure Pipelines](https://dev.azure.com/ywesee/AmiKo_Csharp/_build?definitionId=1) |\n| [CoMed Desitin] | Français (Suisse) | [Build in Azure Pipelines](https://dev.azure.com/ywesee/AmiKo_Csharp/_build?definitionId=1) |\n\n[AmiKo Desitin]: https://www.microsoft.com/de-de/store/p/amiko-desitin/9wzdncrdffxc\n[CoMed Desitin]: https://www.microsoft.com/de-de/store/p/comed-desitin/9nlldb9vxmgx\n\nAnother version for the macOS is also available. See [AmiKo-OSX](https://github.com/zdavatz/amiko-osx).\n\n## Screenshots\n\n\u003cimg src=\"/img/screenshot-1-20180713.png?raw=true\" alt=\"Compendium\" width=\"430px\"\u003e \u003cimg src=\"/img/screenshot-2-20180713.png?raw=true\" alt=\"Interactions\" width=\"430px\"\u003e \u003cimg src=\"/img/screenshot-3-20180713.png?raw=true\" alt=\"Addressbook\" width=\"430px\"\u003e \u003cimg src=\"/img/screenshot-4-20180713.png?raw=true\" alt=\"Prescription\" width=\"430px\"\u003e\n\n\n## Features\n\n* All legally registered drugs of Switzerland\n* `15'913` Drug-Drug Interactions\n* Full-Text-Search (FTS) with Keyword highlighting\n* Patient Management (outlook format CSV integration)\n* Prescriptions (with comment, import/export support)\n* Documents Printing\n\nSearch by:\n\n* Drug Tradename\n* Active Agent\n* Registration Holder\n* ATC-Code\n* Drug Indication\n* Registration-Number\n* Full-Text Search\n\nAll data can be updated on daily basis.\n\n\n## Build\n\n### Requirements\n\n* NuGet `\u003e= 4.6.2`\n* MSBuild `\u003e= 14.0`\n* .NET Core SDK (`2.1.105`)\n* .NET Core Runtime (`2.0.7`)\n* .NET Framework (`4.6.2`)\n\nOr just setup *Visual Studio* `\u003e= 2015`\n\nAnd for testing.\n\n* NUnit (`\u003e= 3.10.1`)\n* NUnit Console (`\u003e= 3.8.0`)\n\nFor release.\n\n* Windows Kit 10 (`10.0.17134.0`)\n* Desktop App Converter\n\n### Setup\n\n#### Checkout the source code\n\nIf you check out the source code on Linux on Windows, it seems that it must be\n**readonly** on Windows. You can still build it on there on Windows using\nMSBuild or Visual Studio etc., but you cannot modify existing files on there\nfrom Windows side.\n\nSee: [Do not change Linux files using Windows apps and tools](\nhttps://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/).\n\n##### Possible Locations\n\n* Linux on Windows (Readonly on Windows)\n* Windows (Readable/Editable also on Linux on Windows via `/mnt`)\n\n#### Prepare Initial Database Files\n\nAt first, you need to put database and csv files into `Data` directory.\nOnce you have built the app with these files, you can update it via the feature\nof the app.\n\nIt can be done by running `download.ps1` with Powershell, or:\n\n```bash\n$ cd /path/to/project\n% mkdir -p AmiKoWindows/Data/{de,fr}\n\n# AmiKoDesitin\n$ cd AmiKoWindows/Data/de\n$ curl -sLO http://pillbox.oddb.org/amiko_report_de.html\n\n$ curl -sLO http://pillbox.oddb.org/amiko_db_full_idx_de.zip\n$ curl -sLO http://pillbox.oddb.org/amiko_frequency_de.db.zip\n$ curl -sLO http://pillbox.oddb.org/drug_interactions_csv_de.zip\n$ unzip amiko_db_full_idx_de.zip\n$ unzip amiko_frequency_de.db.zip\n$ unzip drug_interactions_csv_de.zip\n\n# CoMedDesitin\n$ cd AmiKoWindows/Data/fr\n$ curl -sLO http://pillbox.oddb.org/amiko_report_fr.html\n\n$ curl -sLO http://pillbox.oddb.org/amiko_db_full_idx_fr.zip\n$ curl -sLO http://pillbox.oddb.org/amiko_frequency_fr.db.zip\n$ curl -sLO http://pillbox.oddb.org/drug_interactions_csv_fr.zip\n$ unzip amiko_db_full_idx_fr.zip\n$ unzip amiko_frequency_fr.db.zip\n$ unzip drug_interactions_csv_fr.zip\n```\n\n#### Dependencies\n\n##### Embedded\n\n* Roboto (Apache-2.0)\n* [ModernUIIcons](https://github.com/Templarian/WindowsIcons) (CC-BY-ND-3.0)\n* [Glyphish](http://www.glyphish.com) (__NOT REDISTRIBUTED__ \\*)\n\n\\*: We have purchased Glyphish icons and modified them for this project. It's\nnot redistributed under `GPL-3.0` (as icons). Because it's not open\nsource project, you cannot take them as icons from this project, can just use\nthem as a part of our source code. See [Glyphish-License.txt](\nAmiKoWindows/Resources/Glyphish-License.txt).\n\n##### NuGet\n\nIf you have checked out the project on Linux on Windows, `NuGet` can't handle\nlong path on the PowerShell on Windows, correctly. So you need to set symbolic\nlink using `mklink` and environment variable on Command Prompt or PowerShell\n(using `/c`).\n\nSee: [NuGet and long file name support #3324](\nhttps://github.com/NuGet/Home/issues/3324).\n\n```txt\n# This is project location, for example environment variable `AmiKo` is set as:\n# C:\\Users\\\u003cUSER\u003e\\AppData\\Local\\Packages\\TheDebian...\\LocalState\\rootfs\n#   \\home\\\u003cuser\u003e\\path\\to\\project\n\nC:\\Windows\\system32\u003e cd C:\\Users\\\u003cUSER\u003e\n\n# Or `cmd /c mklink /D AmiKo %AmiKo%` on PowerShell\nC:\\Users\\\u003cUSER\u003e\u003e mklink /d AmiKo %AmiKo%\nC:\\Users\\\u003cUSER\u003e\u003e cd AmiKo\nC:\\Users\\\u003cUSER\u003e\\AmiKo\u003e\n```\n\nAnd then, you can download packages (into `Packages`).\non PowerShell:\n\n```powershell\n# Downloads NuGet.exe (windows x86 Commandline) here\nC:\\Users\\\u003cUSER\u003e\\AmiKo\u003e .\\NuGet.exe install \"AmiKoWindows/packages.config\"\n```\n\nOn Linux on Windows, it's not affected to long path name problem.\non Bash (Linux on Windows with Mono):\n\n```bash\n# You can just do it (e.g. `/usr/local/bin/nuget.exe`)\nuser@host:/path/to/project $ nuget install AmiKoWindows/packages.config\n```\n\n### Fill in Google API Client ID and Secret for Google Drive Syncing\n\n1. Rename `GoogleConstants.cs.sample` to `AmiKoWindows\\Source\\GoogleConstants.cs`\n2. Fill the the details in the file\n\n### Fill in HIN API Client ID and Secret for HIN Client\n\n1. Rename `AmiKoWindows\\Source\\HINClient\\HINClientCredentials.cs.sample` to `AmiKoWindows\\Source\\HINClient\\HINClientCredentials.cs`\n2. Fill the the details in the file\n\n### Make\n\nFrom this step, you may need to use PowerShell on Windows.\n\n* Configuration (`Debug` or `Release`)\n* Platform (`AnyCPU`, `x86` or `x64`.)\n* Log (`Trace` or None)\n\n#### Using MSBuild\n\nYou would need to install *Microsoft Build Tools 2015* from [here](\nhttps://www.microsoft.com/en-us/download/details.aspx?id=48159).\n\nUse `\u003e= 14.0` (installed one by *Microsoft Build Tools 2015*). Or, you may want\nto use special command prompt like `Developer Command Prompt for VS 2017`\nbundled in Visual Studio.\n\n\n```powershell\n# Check the location of `MSBuild.exe`\nPS C:\\Users\\... \u003e Resolve-Path HKLM:\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersion\\* | Get-ItemProperty -Name MSBuildToolsPath\n\nMSBuildToolsPath : C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64\\\nPSPath           : Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\14.0\n...\n\nMSBuildToolsPath : C\\:Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\\nPSPath           : Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\4.0\n...\n```\n\nBuild with `MSBuild` on PowerShell (You need to set *PATH* for `MSBuild.exe`):\n\n```powershell\n# AmiKoDesitin\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\AmiKoDesitin.csproj /t:Clean\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\AmiKoDesitin.csproj /t:Build /p:Configuration=Debug\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\CoMedDesitin.csproj /t:Clean\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\CoMedDesitin.csproj /t:Build /p:Configuration=Debug\n```\n\nAnd then, you can start or kill `{AmiKo|CoMed}Desitin.exe` in `bin` directory like this:\n\n```powershell\n# AmiKoDesitin\nPS C:\\Users\\...\u003e Start-Process '.\\AmiKoWindows\\bin\\Debug\\AmiKo\\AmiKo Desitin.exe'\nPS C:\\Users\\...\u003e Get-Process 'AmiKo Desitin' | Stop-Process\nPS C:\\Users\\...\u003e taskkill /im 'AmiKo Desitin.exe' /f\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e Start-Process '.\\AmiKoWindows\\bin\\Debug\\AmiKo\\CoMed Desitin.exe'\nPS C:\\Users\\...\u003e Get-Process 'CoMed Desitin' | Stop-Process\nPS C:\\Users\\...\u003e taskkill /im 'CoMed Desitin.exe' /f\n```\n\nThere is also a script to build and invoke the application.\n\n```powershell\n# AmiKoDesitin (Debug is default)\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\BuildAndRun.ps1 \"AmiKo\"\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\BuildAndRun.ps1 \"CoMed\" \"Debug\"\n```\n\nFinally, You need to debug the app with `DebugView` or `WinDbg` etc. (Set `/p:Log=Trace` for Trace)\n\n##### Reference\n\n* [MSBuild](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild)\n* [MSBuild Command Line Reference](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference)\n* [DebugView](https://docs.microsoft.com/en-us/sysinternals/downloads/debugview)\n* [WinDbg](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools)\n\n\n#### Building with Visual Studio Community Edition\n\n```txt\n1. AmiKoWindows -\u003e Navigate {AmiKoDesitin|CoMedDesitin} -\u003e Properties (Right Click)\n  a. Set assembly name\n  b. Set assembly information (Title, Product, Assembly version, File version)\n2. Confirm Signing Tab\n3. Check Security\n4. Set target project using `Set as StartUp Project` (Right Click on the Solution Name)\n5. Clean Solution (both projects)\n5. Rebuild target project (AmiKoDesitin or CoMedDesitin)\n6. (Publish)\n```\n\n#### Building with Visual Studio Community Edition via Commandline\n\nor you can add this to your Path\n\n```\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\amd64\n```\n\nand this will work as well from your Source Directory\n\n```\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\AmiKoDesitin.csproj /t:Clean\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\AmiKoDesitin.csproj /t:Build /p:Configuration=Debug\nPS C:\\Users\\...\u003e Start-Process '.\\AmiKoWindows\\bin\\Debug\\AmiKo\\AmiKo Desitin.exe'\n\n# or just do\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\BuildAndRun.ps1 \"AmiKo\"\n```\n\n#### Building Installer with WiX\n\n- Get [The WiX toolset](https://wixtoolset.org)\n- Build Amiko / Comed with Release configuration\n- Run `MakeMsi.ps1` with Powershell\n  - Make sure you have WiX command in PATH,\n  - `;C:\\Program Files (x86)\\WiX Toolset v3.11\\bin`\n- The output should be at:\n  - `AmikoWindows\\bin\\Release\\Amiko-Installer\\Amiko-Installer.msi`\n  - `AmikoWindows\\bin\\Release\\Comed-Installer\\Comed-Installer.msi`\n\n##### Reference\n\n* [Compile and build in Visual Studio](https://docs.microsoft.com/en-us/visualstudio/ide/compiling-and-building-in-visual-studio)\n\n\n### Release\n\nYou would need following steps.\n\n0. Convert Exe binary to Appx using `MakeRelease.ps1`\n1. Update AppxManifest.xml\n2. Re-Package Assets using `Package.ps1`\n3. Re-Signing\n\n#### 0. Using Desktop App Converter (Desktop Bridge)\n\nDownload `Desktop App Converter` from Microsoft Store. And then use\n`MakeRelease.ps1` script with your signing certificate and key. (In PowerShell run as Administrator)\n\nBefore making release build, check build configuration and version etc. in\nfollowing files.\n\n* `AmiKoWindows/{AmiKoDesitin.appx.manifest,CoMedDesitin.appx.manifest}`\n* `AmiKoWindows/Properties/AssemblyInfo.cs`\n* `MakeRelease.ps1`\n\n```powershell\n# As Administrator\n\n# AmiKoDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\MakeRelease.ps1 \"AmiKo\" \"Debug\"\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\MakeRelease.ps1 \"AmiKo\" \"Release\"\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\MakeRelease.ps1 \"CoMed\" \"Debug\"\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\MakeRelease.ps1 \"CoMed\" \"Release\"\n```\n\n**Appx** will be generated in\n`AmiKoWindows/bin/{Debug,Release}/Output/{AmiKo,CoMed}`.\n\n#### 1. Fix AppxManifest.xml\n\nCurrently, `-AppFileTypes` option of **DesktopAppConverter** does not work\nexpectedly for out configurations. Although fix `AppxManifest.xml` manually.\n\nPath:\n\n* `AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles/AppxManifest.xml`\n* `AmiKoWindows/bin/Release/Output/yweseeGmbH.CoMedDesitin/PackageFiles/AppxManifest.xml`\n\n```\n# add missing entries `Extensions`\n\n\u003cApplications\u003e\n  \u003cApplication\u003e\n    ...\n\n    \u003cExtensions\u003e\n      \u003cuap:Extension Category=\"windows.fileTypeAssociation\"\u003e\n        \u003cuap:FileTypeAssociation Name=\"amk\"\u003e\n          \u003cuap:Logo\u003eAssets\\Square44x44Logo.scale-100.png\u003c/uap:Logo\u003e\n          \u003cuap:SupportedFileTypes\u003e\n            \u003cuap:FileType\u003e.amk\u003c/uap:FileType\u003e\n          \u003c/uap:SupportedFileTypes\u003e\n        \u003c/uap:FileTypeAssociation\u003e\n      \u003c/uap:Extension\u003e\n    \u003c/Extensions\u003e\n  \u003c/Application\u003e\n\u003c/Applications\u003e\n```\n\n\n#### 2. Bundle Assets for Windows 10\n\n`Package.ps1` script does also this step. If you want manually do it again. you can follow these instructions:\n\n```powershell\n# As Administrator\n\n# AmiKoDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\Package.ps1 \"AmiKo\" \"Debug\"\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\Package.ps1 \"AmiKo\" \"Release\"\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\Package.ps1 \"CoMed\" \"Debug\"\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\Package.ps1 \"CoMed\" \"Release\"\n```\n\nOr,\n\n0. Make sure `'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17134.0\\x64\\{makepri,makeappx}.exe'` exist (Version `10.0.17134`, and set also **PATH**, as you need)\n1. Go to `AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles`\n2. Copy all Assets in `AmiKoWindows/Assets/` to `AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles/Assets/` (Overwrite)\n3. Create pri files\n4. Re-Package using `MakeAppx.exe`\n\n```powershell\n# e.g. AmiKoDesitin\n\n# Change directory into **PackageFiles**\nPS C:\\Users\\...\u003e cd AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles\n\nPS C:\\Users\\...\u003e rm .\\Assets -r -fo\nPS C:\\Users\\...\u003e cp ..\\..\\..\\..\\..\\Assets .\n\n# MakePri.exe\nPS C:\\Users\\...\u003e 'makepri.exe' createconfig /cf priconfig.xml /dq de-CH\n\n# It seems that it needs absolute path...\nPS C:\\Users\\...\u003e 'makepri.exe' new \\\n  /pr C:\\Users\\\u003cuser\u003e\\path\\to\\amiko_csharp\\AmiKoWindows\\bin\\Release\\Output\\yweseeGmbH.AmiKo\\PackageFiles\\ \\\n  /cf C:\\Users\\\u003cuser\u003e\\path\\to\\amiko_csharp\\AmiKoWindows\\bin\\Release\\Output\\yweseeGmbH.AmiKo\\PackageFiles\\priconfig.xml\n\n# MakeAppx.exe\nPS C:\\Users\\...\u003e 'makeappx.exe' pack /d .\\ /p \"AmiKo Desitin\"\n\n# Replace appx\nPS C:\\Users\\...\u003e Move-Item -Path \"AmiKoWindows\\bin\\Release\\Output\\yweseeGmbH.AmiKo\\PackageFiles\\AmiKo Desitin.appx\" `\n      -Destination \"AmiKoWindows\\bin\\Release\\Output\\yweseeGmbH.AmiKo\\yweseeGmbH.AmiKo.appx\" -Force\n```\n\n#### 3. Re-Signing\n\n```powershell\n# Sign (again)\nPS C:\\Users\\...\u003e signtool.exe sign /fd \u003cHASH ALGORITHM\u003e /a /f \u003cPFX\u003e /p \u003cPASSWORD\u003e \u003cFILE\u003e.appx\n```\n\nNOTE:\nYou need to install this `pfx` certificate into **Trusted People** on **Local\nMachine** via Certificate Wizard.\nUse [importpfx.exe](http://home.fnal.gov/~jklemenc/importpfx.html) `importpfx.exe -f \"somePfx.pfx\" -p \"somePassword\" -t MACHINE -s \"TRUSTEDPEOPLE\"`\n\n\n##### Reference\n\n* https://aka.ms/converter\n* https://docs.microsoft.com/en-us/windows/uwp/launch-resume/handle-file-activation\n* https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare\n* https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter\n* https://docs.microsoft.com/en-us/windows/uwp/app-resources/makepri-exe-command-options\n* https://docs.microsoft.com/en-us/windows/uwp/packaging/sign-app-package-using-signtool\n\n\n### Clean\n\nTo clean built cache data or resources etc. (for debug, .exe)\n\n```powershell\nPS C:\\Users\\...\u003e taskkill /im 'AmiKo Desitin.exe' /f\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\AmiKoDesitin.csproj /t:Clean\n\nPS C:\\Users\\...\u003e taskkill /im 'CoMed Desitin.exe' /f\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows\\CoMedDesitin.csproj /t:Clean\n```\n\n#### User Settings\n\n```powershell\n# Just delete these directories (or delete `user.config` in there)\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Local\\ywesee\\AmiKo Desitin.exe*' -f -fo\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Local\\ywesee\\CoMed Desitin.exe*' -f -fo\n```\n\n#### Application Resources\n\n* Fachinfo Text DB\n* Favorites\n* Interaction Basket\n* Doctor(Operator) Profile Photo\n\n```powershell\n# e.g. Profile Photo (for debug, .exe)\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Roaming\\ywesee\\AmiKo Desitin\\*.png' -f -fo\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Roaming\\ywesee\\CoMed Desitin\\*.png' -f -fo\n```\n\n#### Contacts and Prescriptions\n\nTo reset *AddressBook* entries and *Prescriptions* files (`.amk` files).\n\n```powershell\n# AmiKoDesitin (for debug, .exe)\nPS C:\\Users\\...\u003e taskkill /im 'AmiKo Desitin.exe' /f\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Local\\Temp\\amiko*' -r -fo\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Roaming\\ywesee\\Amiko Desitin\\amk\\*' -r -fo\nPS C:\\Users\\...\u003e rm .\\AmiKoWindows\\bin\\Debug\\AmiKo\\* -r -fo\n\n# CoMedDesitin (for debug, .exe)\nPS C:\\Users\\...\u003e taskkill /im 'CoMed Desitin.exe' /f\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Local\\Temp\\comed*' -r -fo\nPS C:\\Users\\...\u003e rm 'C:\\Users\\\u003cUSER\u003e\\AppData\\Roaming\\ywesee\\CoMed Desitin\\amk\\*' -r -fo\nPS C:\\Users\\...\u003e rm .\\AmiKoWindows\\bin\\Debug\\CoMed\\* -r -fo\n```\n\n\n## Test\n\nSee projects in `AmiKoWindows.Tests`. Tests are written in NUnit.\n\n```powershell\nPS C:\\Users\\...\u003e taskkill /im 'MSBuild.exe' /f\n\n# AmiKoDesitin\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows.Tests\\AmiKoDesitin.Test.csproj /t:Clean\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows.Tests\\AmiKoDesitin.Test.csproj /t:Build /p:Configuration=Debug /p:Platform=x64\nPS C:\\Users\\...\u003e .\\Package\\NUnit.ConseleRunner.3.8.0\\tools\\nunit3-console.exe .\\AmiKoWindows.Tests\\bin\\Debug\\AmiKo\\AmiKoDesitin.Test.dll --output TestOutput.log\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows.Tests\\CoMedDesitin.Test.csproj /t:Clean\nPS C:\\Users\\...\u003e MSBuild.exe .\\AmiKoWindows.Tests\\CoMedDesitin.Test.csproj /t:Build /p:Configuration=Debug /p:Platform=x64\nPS C:\\Users\\...\u003e .\\Package\\NUnit.ConsoleRunner.3.8.0\\tools\\nunit3-console.exe .\\AmiKoWindows.Tests\\bin\\Debug\\CoMed\\CoMedDesitin.Test.dll --output TestOutput.log\n```\n\nOr you can just execute tests using `RunTest.ps1` like this.\n\n```powershell\n# AmiKoDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\RunTest.ps1 \"AmiKo\"\n\n# CoMedDesitin\nPS C:\\Users\\...\u003e PowerShell.exe -ExecutionPolicy Bypass -File .\\RunTest.ps1 \"CoMed\"\n```\n\n##### Reference\n\n* [NUnit](https://github.com/nunit/nunit)\n* [NUnit Console](https://github.com/nunit/nunit-console)\n\n\n## License\n\n`GPL-3.0`\n\n```txt\nAmiKo for Windows\nCopyright (c) ywesee GmbH\n```\n\n\n## Questions\n\nPlease contact:\n\n```txt\nzdavatz@ywesee.com\n+41 43 540 05 50\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Famiko_csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdavatz%2Famiko_csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Famiko_csharp/lists"}