diff --git a/.github/workflows/Nightly.yml b/.github/workflows/Nightly.yml index 5f900eac0..ed681a0aa 100644 --- a/.github/workflows/Nightly.yml +++ b/.github/workflows/Nightly.yml @@ -78,5 +78,5 @@ jobs: # "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211 # So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation # --no-symbols true to not let GitHub Releases interpret .snupkg as .nupkg - dotnet nuget push .nupkgs\*.nupkg --source 'https://nuget.pkg.github.com/verybadcat/index.json' --api-key ${{ github.token }} --skip-duplicate --no-symbols true + dotnet nuget push '.nupkgs\*.nupkg' --source 'https://nuget.pkg.github.com/verybadcat/index.json' --api-key ${{ github.token }} --skip-duplicate --no-symbols true shell: pwsh \ No newline at end of file diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 89cdb3594..d65f9c25c 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -40,5 +40,5 @@ jobs: - name: Upload to NuGet run: | # Use --skip-duplicate since we want re-runs of this workflow to succeed in case of network issues - dotnet nuget push .nupkgs\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate + dotnet nuget push '.nupkgs\*.nupkg' -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate shell: pwsh diff --git a/.gitignore b/.gitignore index 8544c14b2..59e9fdc85 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ ## START Specifically added for CSharpMath -# Special one for XamarinAndroidTemp on Mac -C:/ - # For CSharpMath.Rendering.Tests CSharpMath.Rendering.Tests/*/*.*.png @@ -12,77 +9,129 @@ CSharpMath.Xaml.Tests.NuGet/Test.*.png /.benchmarkresults /.nupkgs /.testcoverage - ## END Specifically added for CSharpMath ## 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 +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore # User-specific files +*.rsuser *.suo *.user *.userosscache *.sln.docstates +*.env # 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/ + +[Dd]ebug/x64/ +[Dd]ebugPublic/x64/ +[Rr]elease/x64/ +[Rr]eleases/x64/ +bin/x64/ +obj/x64/ + +[Dd]ebug/x86/ +[Dd]ebugPublic/x86/ +[Rr]elease/x86/ +[Rr]eleases/x86/ +bin/x86/ +obj/x86/ + +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +[Aa][Rr][Mm]64[Ee][Cc]/ bld/ -[Bb]in/ [Oo]bj/ +[Oo]ut/ [Ll]og/ +[Ll]ogs/ + +# Build results on 'Bin' directories +**/[Bb]in/* +# Uncomment if you have tasks that rely on *.refresh files to move binaries +# (https://github.com/github/gitignore/pull/3736) +#!**/[Bb]in/*.refresh -# Visual Studio 2015 cache/options directory +# 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.* +*.trx -# NUNIT +# NUnit *.VisualState.xml TestResult.xml +nunit-*.xml + +# Approval Tests result files +*.received.* # 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/ -**/Properties/launchSettings.json +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio *_i.c *_p.c -*_i.h +*_h.h *.ilk *.meta *.obj +*.idb +*.iobj *.pch *.pdb +*.ipdb *.pgc *.pgd *.rsp +# but not Directory.Build.rsp, as it configures directory-level build defaults +!Directory.Build.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj +*_wpftmp.csproj *.log +*.tlog *.vspscc *.vssscc .builds @@ -110,6 +159,9 @@ ipch/ *.vspx *.sap +# Visual Studio Trace Files +*.e2e + # TFS 2012 Local Workspace $tf/ @@ -121,21 +173,28 @@ _ReSharper*/ *.[Rr]e[Ss]harper *.DotSettings.user -# JustCode is a .NET coding add-in -.JustCode - # 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_* +.NCrunch_* .*crunch*.local.xml nCrunchTemp_* @@ -165,7 +224,7 @@ publish/ # Publish Web Output *.[Pp]ublish.xml *.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings +# 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 @@ -177,12 +236,14 @@ PublishScripts/ # NuGet Packages *.nupkg +# NuGet Symbol Packages +*.snupkg # The packages folder can be ignored because of Package Restore -**/packages/* +**/[Pp]ackages/* # except build/, which is used as an MSBuild target. -!**/packages/build/ +!**/[Pp]ackages/build/ # Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config +#!**/[Pp]ackages/repositories.config # NuGet v3's project.json files produces more ignorable files *.nuget.props *.nuget.targets @@ -200,12 +261,15 @@ 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/ +!?*.[Cc]ache/ # Others ClientBin/ @@ -218,6 +282,10 @@ ClientBin/ *.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/ @@ -232,6 +300,8 @@ _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak # SQL Server files *.mdf @@ -242,6 +312,10 @@ UpgradeLog*.htm *.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/ @@ -253,9 +327,6 @@ FakesAssemblies/ .ntvs_analysis.dat node_modules/ -# Typescript v1 declaration files -typings/ - # Visual Studio 6 build log *.plg @@ -265,6 +336,14 @@ typings/ # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) *.vbw +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + # Visual Studio LightSwitch build output **/*.HTMLClient/GeneratedArtifacts **/*.DesktopClient/GeneratedArtifacts @@ -274,26 +353,25 @@ typings/ _Pvt_Extensions # Paket dependency manager -.paket/paket.exe +**/.paket/paket.exe paket-files/ # FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml +**/.fake/ -# CodeRush -.cr/ +# CodeRush personal settings +**/.cr/personal # Python Tools for Visual Studio (PTVS) -__pycache__/ +**/__pycache__/ *.pyc # Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config +#tools/** +#!tools/packages.config + +# Tabs Studio +*.tss # Telerik's JustMock configuration file *.jmconfig @@ -304,8 +382,60 @@ __pycache__/ *.odx.cs *.xsd.cs -# ignore Xamarin.Android Resource.Designer.cs files -**/*.Droid/**/[Rr]esource.[Dd]esigner.cs -**/*.Android/**/[Rr]esource.[Dd]esigner.cs -**/Android/**/[Rr]esource.[Dd]esigner.cs -**/Droid/**/[Rr]esource.[Dd]esigner.cs +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog +MSBuild_Logs/ + +# AWS SAM Build and Temporary Artifacts folder +.aws-sam + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +**/.mfractor/ + +# Local History for Visual Studio +**/.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# 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 +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp \ No newline at end of file diff --git a/CSharpMath.Maui.Example/App.xaml b/CSharpMath.Maui.Example/App.xaml index 255f815de..b26d98216 100644 --- a/CSharpMath.Maui.Example/App.xaml +++ b/CSharpMath.Maui.Example/App.xaml @@ -2,6 +2,7 @@ @@ -17,6 +18,33 @@ + + 1 + 2 + 4 + 8 + 12 + 16 + 20 + 24 + 30 + 36 + 48 + 60 + 72 + 96 + 108 + 144 + 192 + 288 + 384 + 480 + 576 + 666 + 768 + 864 + 960 + diff --git a/CSharpMath.Maui.Example/TextPage.xaml b/CSharpMath.Maui.Example/TextPage.xaml index 8e4b57ba5..867b7cf33 100644 --- a/CSharpMath.Maui.Example/TextPage.xaml +++ b/CSharpMath.Maui.Example/TextPage.xaml @@ -5,7 +5,7 @@ xmlns:local="clr-namespace:CSharpMath.Maui.Example" x:Class="CSharpMath.Maui.Example.TextPage" Title="Text"> - + diff --git a/CSharpMath.Maui.Example/TryPage.xaml b/CSharpMath.Maui.Example/TryPage.xaml index 28eebbce9..9debfbc16 100644 --- a/CSharpMath.Maui.Example/TryPage.xaml +++ b/CSharpMath.Maui.Example/TryPage.xaml @@ -5,16 +5,29 @@ xmlns:local="clr-namespace:CSharpMath.Maui.Example" x:Class="CSharpMath.Maui.Example.TryPage" Title="Try"> + + + - +