diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8af4bd2..ea6476b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,8 +13,8 @@ env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true jobs: - build: - runs-on: ubuntu-latest + build-win: + runs-on: windows-latest steps: - name: Cancel previous builds in PR @@ -50,4 +50,21 @@ jobs: run: dotnet pack --configuration ${{ env.BuildConfig }} /p:ContinuousIntegrationBuild=true - /p:Version=${{ steps.nbgv.outputs.NuGetPackageVersion }} \ No newline at end of file + /p:Version=${{ steps.nbgv.outputs.NuGetPackageVersion }} + + # - name: Update CHANGELOG + # id: changelog + # uses: requarks/changelog-action@v1 + # with: + # token: ${{ github.token }} + # tag: ${{ github.ref_name }} + + # - name: Create Release + # uses: ncipollo/release-action@v1.12.0 + # with: + # allowUpdates: true + # draft: false + # makeLatest: true + # name: ${{ github.ref_name }} + # body: ${{ steps.changelog.outputs.changes }} + # token: ${{ github.token }} \ No newline at end of file diff --git a/global.json b/global.json index dab9599..6b9d217 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,5 @@ { - "sdk": { - "version": "9.0.100-preview.6" - } + "sdk": { + "version": "9.0.100-preview.7.24407.12" } - \ No newline at end of file +} diff --git a/src/QuickIO/CodeTemplates/StaticFileTimeMethods.tt b/src/QuickIO/CodeTemplates/StaticFileTimeMethods.tt index d0d6502..0cdac54 100644 --- a/src/QuickIO/CodeTemplates/StaticFileTimeMethods.tt +++ b/src/QuickIO/CodeTemplates/StaticFileTimeMethods.tt @@ -18,6 +18,7 @@ var dateTimeReturnValueText = "A structure."; using System; using SchwabenCode.QuickIO.Internal; +using SchwabenCode.QuickIO.Win32API; namespace SchwabenCode.QuickIO; diff --git a/src/QuickIO/LICENSE.txt b/src/QuickIO/LICENSE.txt new file mode 100644 index 0000000..b79461d --- /dev/null +++ b/src/QuickIO/LICENSE.txt @@ -0,0 +1,8 @@ +MIT License +Copyright (c) 2013-2024 Benjamin Abt + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/src/QuickIO/License.txt b/src/QuickIO/License.txt deleted file mode 100644 index f085b8e..0000000 --- a/src/QuickIO/License.txt +++ /dev/null @@ -1,22 +0,0 @@ -QuickIO.NET is published under Microsoft Public License (Ms-PL) -http://quickIO.NET - -http://www.microsoft.com/en-us/openness/licenses.aspx -Microsoft Public License (Ms-PL) - -This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. - -Definitions -The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. -A "contribution" is the original software, or any additions or changes to the software. -A "contributor" is any person that distributes its contribution under this license. -"Licensed patents" are a contributor's patent claims that read directly on its contribution. -Grant of Rights -(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. -(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. -Conditions and Limitations -(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. -(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. -(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. -(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. -(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees, or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \ No newline at end of file diff --git a/src/QuickIO/QuickIO.csproj b/src/QuickIO/QuickIO.csproj index 421510d..8c87344 100644 --- a/src/QuickIO/QuickIO.csproj +++ b/src/QuickIO/QuickIO.csproj @@ -5,9 +5,13 @@ true readme.md LICENSE.txt - true + + + + + @@ -188,4 +192,8 @@ QuickIOFile_Root_Async.tt + + + + diff --git a/src/QuickIO/QuickIODirectory_Attributes.tt b/src/QuickIO/QuickIODirectory_Attributes.tt index 11b774f..83183aa 100644 --- a/src/QuickIO/QuickIODirectory_Attributes.tt +++ b/src/QuickIO/QuickIODirectory_Attributes.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticAttributeMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticAttributeMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIODirectory_Attributes_Async.cs b/src/QuickIO/QuickIODirectory_Attributes_Async.cs index 7900d07..7f9edcc 100644 --- a/src/QuickIO/QuickIODirectory_Attributes_Async.cs +++ b/src/QuickIO/QuickIODirectory_Attributes_Async.cs @@ -1,3 +1,4 @@ + // ------------------------------------------------------------------------------ // // This code was generated by a T4 template. diff --git a/src/QuickIO/QuickIODirectory_Attributes_Async.tt b/src/QuickIO/QuickIODirectory_Attributes_Async.tt index 0d20dd7..5aa38ba 100644 --- a/src/QuickIO/QuickIODirectory_Attributes_Async.tt +++ b/src/QuickIO/QuickIODirectory_Attributes_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticAttributeMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticAttributeMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIODirectory_FileTime.tt b/src/QuickIO/QuickIODirectory_FileTime.tt index 40932be..7d13d7d 100644 --- a/src/QuickIO/QuickIODirectory_FileTime.tt +++ b/src/QuickIO/QuickIODirectory_FileTime.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticFileTimeMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticFileTimeMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIODirectory_FileTime_Async.tt b/src/QuickIO/QuickIODirectory_FileTime_Async.tt index 872bf00..14456a6 100644 --- a/src/QuickIO/QuickIODirectory_FileTime_Async.tt +++ b/src/QuickIO/QuickIODirectory_FileTime_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticFileTimeMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticFileTimeMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIODirectory_Root.tt b/src/QuickIO/QuickIODirectory_Root.tt index 8a6cf42..e3384e0 100644 --- a/src/QuickIO/QuickIODirectory_Root.tt +++ b/src/QuickIO/QuickIODirectory_Root.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticRootMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticRootMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIODirectory_Root_Async.tt b/src/QuickIO/QuickIODirectory_Root_Async.tt index dea8cb8..c4c930f 100644 --- a/src/QuickIO/QuickIODirectory_Root_Async.tt +++ b/src/QuickIO/QuickIODirectory_Root_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticRootMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticRootMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIODirectory"); diff --git a/src/QuickIO/QuickIOFile_Attributes.tt b/src/QuickIO/QuickIOFile_Attributes.tt index cfa51eb..4ed7969 100644 --- a/src/QuickIO/QuickIOFile_Attributes.tt +++ b/src/QuickIO/QuickIOFile_Attributes.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticAttributeMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticAttributeMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/src/QuickIO/QuickIOFile_Attributes_Async.tt b/src/QuickIO/QuickIOFile_Attributes_Async.tt index ed0802c..3f9cf7b 100644 --- a/src/QuickIO/QuickIOFile_Attributes_Async.tt +++ b/src/QuickIO/QuickIOFile_Attributes_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticAttributeMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticAttributeMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/src/QuickIO/QuickIOFile_FileTime.tt b/src/QuickIO/QuickIOFile_FileTime.tt index eb6e1eb..d1f91c3 100644 --- a/src/QuickIO/QuickIOFile_FileTime.tt +++ b/src/QuickIO/QuickIOFile_FileTime.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticFileTimeMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticFileTimeMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/src/QuickIO/QuickIOFile_FileTime_Async.tt b/src/QuickIO/QuickIOFile_FileTime_Async.tt index d81c4fe..2e3f772 100644 --- a/src/QuickIO/QuickIOFile_FileTime_Async.tt +++ b/src/QuickIO/QuickIOFile_FileTime_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticFileTimeMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticFileTimeMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/src/QuickIO/QuickIOFile_Root.tt b/src/QuickIO/QuickIOFile_Root.tt index 720cc73..0172bec 100644 --- a/src/QuickIO/QuickIOFile_Root.tt +++ b/src/QuickIO/QuickIOFile_Root.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticRootMethods.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticRootMethods.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/src/QuickIO/QuickIOFile_Root_Async.tt b/src/QuickIO/QuickIOFile_Root_Async.tt index 56bd5b6..8c375ea 100644 --- a/src/QuickIO/QuickIOFile_Root_Async.tt +++ b/src/QuickIO/QuickIOFile_Root_Async.tt @@ -1,6 +1,6 @@ <#@ template language="C#" hostspecific="true" #> -<#@ include file=".\CodeTemplates\SaveOutput.tt" #> -<#@ include file=".\CodeTemplates\StaticRootMethods_Async.tt" #> +<#@ include file="CodeTemplates/SaveOutput.tt" #> +<#@ include file="CodeTemplates/StaticRootMethods_Async.tt" #> <#@ output extension=".cs" #> <# Generate("QuickIOFile"); diff --git a/version.json b/version.json index ef48ca0..4af40c5 100644 --- a/version.json +++ b/version.json @@ -8,7 +8,7 @@ "semVer": 1 // optional. Set to either 1 or 2 to control how the NuGet package version string is generated. Default is 1. }, "publicReleaseRefSpec": [ - "^refs/heads/master", // we release out of master + "^refs/heads/main", // we release out of main "^refs/tags/v\\d+\\.\\d+" // we also release tags starting with vN.N ], "cloudBuild": {