Skip to content

Commit

Permalink
changed logging to Microsoft.Extensions.Logging.Abstractions
Browse files Browse the repository at this point in the history
added net9 support
removed net6 support
  • Loading branch information
Doraku committed Nov 20, 2024
1 parent 5642a5b commit 7a6e6c7
Show file tree
Hide file tree
Showing 83 changed files with 363 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CodeCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: Collect coverage
run: dotnet test source -c Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ContinuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'
source-url: https://nuget.pkg.github.com/Doraku/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: Build
run: dotnet build source -c Release -p:TreatWarningsAsErrors=true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
Expand Down Expand Up @@ -49,8 +49,8 @@ jobs:

- name: Generate documentation
run: |
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net8.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Api\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net8.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Markdown\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net9.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Api\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net9.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Markdown\DefaultDocumentation.json
- name: Publish packages
run: dotnet nuget push build\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
Expand Down
4 changes: 2 additions & 2 deletions Release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ IF %ERRORLEVEL% GTR 0 GOTO :end

dotnet pack source -c Release -o build /p:Version=0-local%Date:~6,4%%Date:~3,2%%Date:~0,2%%Time:~0,2%%Time:~3,2%%Time:~6,2% /p:SignAssembly=true

dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net8.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Api\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net8.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Markdown\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net9.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Api\DefaultDocumentation.json
dotnet run --project source\DefaultDocumentation.Console\DefaultDocumentation.Console.csproj --framework net9.0 -c Release --ConfigurationFilePath source\DefaultDocumentation.Markdown\DefaultDocumentation.json

:end
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ The [System\.String](https://docs.microsoft.com/en-us/dotnet/api/System.String '

#### Returns
[System\.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System\.Boolean')
[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs\.microsoft\.com/en\-us/dotnet/csharp/language\-reference/builtin\-types/bool') if the documentation text ends with [value](DefaultDocumentation/Api/IWriter/EndsWith(string).md#DefaultDocumentation.Api.IWriter.EndsWith(string).value 'DefaultDocumentation\.Api\.IWriter\.EndsWith\(string\)\.value'), else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs\.microsoft\.com/en\-us/dotnet/csharp/language\-reference/builtin\-types/bool')\.
[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs\.microsoft\.com/en\-us/dotnet/csharp/language\-reference/builtin\-types/bool') if the documentation text ends with [value](EndsWith(string).md#DefaultDocumentation.Api.IWriter.EndsWith(string).value 'DefaultDocumentation\.Api\.IWriter\.EndsWith\(string\)\.value'), else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs\.microsoft\.com/en\-us/dotnet/csharp/language\-reference/builtin\-types/bool')\.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## IContext\.GetSetting\<T\>\(string\) Method

Gets a [T](DefaultDocumentation/IContext/GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\.
Gets a [T](GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\.

```csharp
T? GetSetting<T>(string name);
Expand All @@ -24,5 +24,5 @@ The type of the setting to get\.
The name of the setting to get\.

#### Returns
[T](DefaultDocumentation/IContext/GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T')
The setting if present, otherwise the default value of the type [T](DefaultDocumentation/IContext/GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T')\.
[T](GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T')
The setting if present, otherwise the default value of the type [T](GetSetting_T_(string).md#DefaultDocumentation.IContext.GetSetting_T_(string).T 'DefaultDocumentation\.IContext\.GetSetting\<T\>\(string\)\.T')\.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Overloads | |
| :--- | :--- |
| [GetSetting&lt;T&gt;\(string\)](DefaultDocumentation/IDocItemsContext/GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\. |
| [GetSetting&lt;T&gt;\(Type, string\)](DefaultDocumentation/IDocItemsContext/GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)\.T') setting with the given name for the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem')[System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type')\. |
| [GetSetting&lt;T&gt;\(string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\. |
| [GetSetting&lt;T&gt;\(Type, string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)\.T') setting with the given name for the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem')[System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type')\. |

<a name='DefaultDocumentation.IDocItemsContext.GetSetting_T_(string)'></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ public interface IDocItemsContext

| Methods | |
| :--- | :--- |
| [GetSetting&lt;T&gt;\(string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)') | Gets a [T](DefaultDocumentation/IDocItemsContext/index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\. |
| [GetSetting&lt;T&gt;\(Type, string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)') | Gets a [T](DefaultDocumentation/IDocItemsContext/index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)\.T') setting with the given name for the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem')[System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type')\. |
| [GetSetting&lt;T&gt;\(string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(string\)\.T') setting with the given name\. |
| [GetSetting&lt;T&gt;\(Type, string\)](GetSetting.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string) 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)') | Gets a [T](index.md#DefaultDocumentation.IDocItemsContext.GetSetting_T_(System.Type,string).T 'DefaultDocumentation\.IDocItemsContext\.GetSetting\<T\>\(System\.Type, string\)\.T') setting with the given name for the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem')[System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type')\. |
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Overloads | |
| :--- | :--- |
| [GetSetting&lt;T&gt;\(this IGeneralContext, DocItem, Func&lt;IContext,T&gt;\)](DefaultDocumentation/IGeneralContextExtensions/GetSetting.md#DefaultDocumentation.IGeneralContextExtensions.GetSetting_T_(thisDefaultDocumentation.IGeneralContext,DefaultDocumentation.Models.DocItem,System.Func_DefaultDocumentation.IContext,T_) 'DefaultDocumentation\.IGeneralContextExtensions\.GetSetting\<T\>\(this DefaultDocumentation\.IGeneralContext, DefaultDocumentation\.Models\.DocItem, System\.Func\<DefaultDocumentation\.IContext,T\>\)') | Gets a data from the specific [IContext](../IContext/index.md 'DefaultDocumentation\.IContext') of the provided [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') if it exists, else from the [IGeneralContext](../IGeneralContext/index.md 'DefaultDocumentation\.IGeneralContext')\. |
| [GetSetting&lt;T&gt;\(this IGeneralContext, Type, Func&lt;IContext,T&gt;\)](DefaultDocumentation/IGeneralContextExtensions/GetSetting.md#DefaultDocumentation.IGeneralContextExtensions.GetSetting_T_(thisDefaultDocumentation.IGeneralContext,System.Type,System.Func_DefaultDocumentation.IContext,T_) 'DefaultDocumentation\.IGeneralContextExtensions\.GetSetting\<T\>\(this DefaultDocumentation\.IGeneralContext, System\.Type, System\.Func\<DefaultDocumentation\.IContext,T\>\)') | Gets a data from the specific [IContext](../IContext/index.md 'DefaultDocumentation\.IContext') of the provided [System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type') if it exists, else from the [IGeneralContext](../IGeneralContext/index.md 'DefaultDocumentation\.IGeneralContext')\. |
| [GetSetting&lt;T&gt;\(this IGeneralContext, DocItem, Func&lt;IContext,T&gt;\)](GetSetting.md#DefaultDocumentation.IGeneralContextExtensions.GetSetting_T_(thisDefaultDocumentation.IGeneralContext,DefaultDocumentation.Models.DocItem,System.Func_DefaultDocumentation.IContext,T_) 'DefaultDocumentation\.IGeneralContextExtensions\.GetSetting\<T\>\(this DefaultDocumentation\.IGeneralContext, DefaultDocumentation\.Models\.DocItem, System\.Func\<DefaultDocumentation\.IContext,T\>\)') | Gets a data from the specific [IContext](../IContext/index.md 'DefaultDocumentation\.IContext') of the provided [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') if it exists, else from the [IGeneralContext](../IGeneralContext/index.md 'DefaultDocumentation\.IGeneralContext')\. |
| [GetSetting&lt;T&gt;\(this IGeneralContext, Type, Func&lt;IContext,T&gt;\)](GetSetting.md#DefaultDocumentation.IGeneralContextExtensions.GetSetting_T_(thisDefaultDocumentation.IGeneralContext,System.Type,System.Func_DefaultDocumentation.IContext,T_) 'DefaultDocumentation\.IGeneralContextExtensions\.GetSetting\<T\>\(this DefaultDocumentation\.IGeneralContext, System\.Type, System\.Func\<DefaultDocumentation\.IContext,T\>\)') | Gets a data from the specific [IContext](../IContext/index.md 'DefaultDocumentation\.IContext') of the provided [System\.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System\.Type') if it exists, else from the [IGeneralContext](../IGeneralContext/index.md 'DefaultDocumentation\.IGeneralContext')\. |

<a name='DefaultDocumentation.IGeneralContextExtensions.GetSetting_T_(thisDefaultDocumentation.IGeneralContext,DefaultDocumentation.Models.DocItem,System.Func_DefaultDocumentation.IContext,T_)'></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Overloads | |
| :--- | :--- |
| [GetUrl\(this IPageContext, DocItem\)](DefaultDocumentation/IPageContextExtensions/GetUrl.md#DefaultDocumentation.IPageContextExtensions.GetUrl(thisDefaultDocumentation.IPageContext,DefaultDocumentation.Models.DocItem) 'DefaultDocumentation\.IPageContextExtensions\.GetUrl\(this DefaultDocumentation\.IPageContext, DefaultDocumentation\.Models\.DocItem\)') | Gets the url of the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') in a specific page\. |
| [GetUrl\(this IPageContext, string\)](DefaultDocumentation/IPageContextExtensions/GetUrl.md#DefaultDocumentation.IPageContextExtensions.GetUrl(thisDefaultDocumentation.IPageContext,string) 'DefaultDocumentation\.IPageContextExtensions\.GetUrl\(this DefaultDocumentation\.IPageContext, string\)') | Gets the url of the given id in a specific page\. |
| [GetUrl\(this IPageContext, DocItem\)](GetUrl.md#DefaultDocumentation.IPageContextExtensions.GetUrl(thisDefaultDocumentation.IPageContext,DefaultDocumentation.Models.DocItem) 'DefaultDocumentation\.IPageContextExtensions\.GetUrl\(this DefaultDocumentation\.IPageContext, DefaultDocumentation\.Models\.DocItem\)') | Gets the url of the given [DocItem](../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') in a specific page\. |
| [GetUrl\(this IPageContext, string\)](GetUrl.md#DefaultDocumentation.IPageContextExtensions.GetUrl(thisDefaultDocumentation.IPageContext,string) 'DefaultDocumentation\.IPageContextExtensions\.GetUrl\(this DefaultDocumentation\.IPageContext, string\)') | Gets the url of the given id in a specific page\. |

<a name='DefaultDocumentation.IPageContextExtensions.GetUrl(thisDefaultDocumentation.IPageContext,DefaultDocumentation.Models.DocItem)'></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Inheritance [System\.Object](https://docs.microsoft.com/en-us/dotnet/api/System.

| Constructors | |
| :--- | :--- |
| [AssemblyDocItem\(string, string, XElement\)](AssemblyDocItem(string,string,XElement).md 'DefaultDocumentation\.Models\.AssemblyDocItem\.AssemblyDocItem\(string, string, System\.Xml\.Linq\.XElement\)') | Initialize a new instance of the [AssemblyDocItem](DefaultDocumentation/Models/AssemblyDocItem/index.md 'DefaultDocumentation\.Models\.AssemblyDocItem') type\. |
| [AssemblyDocItem\(string, string, XElement\)](AssemblyDocItem(string,string,XElement).md 'DefaultDocumentation\.Models\.AssemblyDocItem\.AssemblyDocItem\(string, string, System\.Xml\.Linq\.XElement\)') | Initialize a new instance of the [AssemblyDocItem](index.md 'DefaultDocumentation\.Models\.AssemblyDocItem') type\. |
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Derived

| Constructors | |
| :--- | :--- |
| [DocItem\(DocItem, string, string, string, XElement\)](DocItem(DocItem,string,string,string,XElement).md 'DefaultDocumentation\.Models\.DocItem\.DocItem\(DefaultDocumentation\.Models\.DocItem, string, string, string, System\.Xml\.Linq\.XElement\)') | Initialize a new instance of the [DocItem](DefaultDocumentation/Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') type\. |
| [DocItem\(DocItem, string, string, string, XElement\)](DocItem(DocItem,string,string,string,XElement).md 'DefaultDocumentation\.Models\.DocItem\.DocItem\(DefaultDocumentation\.Models\.DocItem, string, string, string, System\.Xml\.Linq\.XElement\)') | Initialize a new instance of the [DocItem](index.md 'DefaultDocumentation\.Models\.DocItem') type\. |

| Properties | |
| :--- | :--- |
| [Documentation](Documentation.md 'DefaultDocumentation\.Models\.DocItem\.Documentation') | Gets the xml documentation node of the current instance\. |
| [FullName](FullName.md 'DefaultDocumentation\.Models\.DocItem\.FullName') | Gets the full name of the current instance\. |
| [Id](Id.md 'DefaultDocumentation\.Models\.DocItem\.Id') | Gets the id of the current instance\. |
| [Name](Name.md 'DefaultDocumentation\.Models\.DocItem\.Name') | Gets the name of the current instance\. |
| [Parent](Parent.md 'DefaultDocumentation\.Models\.DocItem\.Parent') | Gets the [DocItem](DefaultDocumentation/Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') parent of the current instance \(for members it is their declaring type, for types it is their namespace, \.\.\.\)\. |
| [Parent](Parent.md 'DefaultDocumentation\.Models\.DocItem\.Parent') | Gets the [DocItem](index.md 'DefaultDocumentation\.Models\.DocItem') parent of the current instance \(for members it is their declaring type, for types it is their namespace, \.\.\.\)\. |
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Inheritance [System\.Object](https://docs.microsoft.com/en-us/dotnet/api/System.

| Constructors | |
| :--- | :--- |
| [ExternDocItem\(string, string, string\)](ExternDocItem(string,string,string).md 'DefaultDocumentation\.Models\.ExternDocItem\.ExternDocItem\(string, string, string\)') | Initialize a new instance of the [ExternDocItem](DefaultDocumentation/Models/ExternDocItem/index.md 'DefaultDocumentation\.Models\.ExternDocItem') type\. |
| [ExternDocItem\(string, string, string\)](ExternDocItem(string,string,string).md 'DefaultDocumentation\.Models\.ExternDocItem\.ExternDocItem\(string, string, string\)') | Initialize a new instance of the [ExternDocItem](index.md 'DefaultDocumentation\.Models\.ExternDocItem') type\. |

| Properties | |
| :--- | :--- |
Expand Down
Loading

0 comments on commit 7a6e6c7

Please sign in to comment.