Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kiota Dotnet Mono repo migration #262

Merged
merged 18 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build-and-test:
runs-on: windows-latest
env:
solutionName: Microsoft.Kiota.Abstractions.sln
solutionName: Microsoft.Kiota.sln
steps:
- uses: actions/checkout@v4
- name: Setup .NET
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/Microsoft.Kiota.Abstractions.sln",
"${workspaceFolder}/Microsoft.Kiota.sln",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
Expand All @@ -24,7 +24,7 @@
"type": "process",
"args": [
"test",
"${workspaceFolder}/Microsoft.Kiota.Abstractions.sln",
"${workspaceFolder}/Microsoft.Kiota.sln",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
Expand Down
62 changes: 0 additions & 62 deletions Microsoft.Kiota.Abstractions.sln

This file was deleted.

120 changes: 120 additions & 0 deletions Microsoft.Kiota.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.34706.255
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{812D9C21-411D-4987-AB8E-C96185F01AD0}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
CHANGELOG.md = CHANGELOG.md
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
LICENSE = LICENSE
README.md = README.md
SECURITY.md = SECURITY.md
SUPPORT.md = SUPPORT.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Abstractions.Tests", "tests\abstractions\Microsoft.Kiota.Abstractions.Tests.csproj", "{B112E9CF-055E-45FB-A32F-25CAB57936DB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Abstractions", "src\abstractions\Microsoft.Kiota.Abstractions.csproj", "{61B7F639-6456-41CA-B53E-492115888F84}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Authentication.Azure", "src\authentication\azure\Microsoft.Kiota.Authentication.Azure.csproj", "{ED943ED1-CC3E-41B9-BE79-C3C301D2267B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Authentication.Azure.Tests", "tests\authentication\azure\Microsoft.Kiota.Authentication.Azure.Tests.csproj", "{71161CE4-C748-4CD3-A5ED-A2B806B24360}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Http.HttpClientLibrary", "src\http\httpClient\Microsoft.Kiota.Http.HttpClientLibrary.csproj", "{B0D5E430-0A53-4A2A-B9B2-5CC83CC27652}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KiotaGenerated", "src\generated\KiotaGenerated.csproj", "{A3771749-0661-4A8D-AC16-FF338AB71FC4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Http.HttpClientLibrary.Tests", "tests\http\httpClient\Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj", "{644AA85A-6AA8-4DCC-AD97-13DC9660ED3A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Json.Tests", "tests\serialization\json\Microsoft.Kiota.Serialization.Json.Tests.csproj", "{841CFE44-B635-4BDC-A138-AF7510B795E9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Json", "src\serialization\json\Microsoft.Kiota.Serialization.Json.csproj", "{87168872-0B10-4BBB-9017-2501E76FE50A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Form", "src\serialization\form\Microsoft.Kiota.Serialization.Form.csproj", "{08C40934-39AB-4BD6-8306-7EF84122BF70}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Form.Tests", "tests\serialization\form\Microsoft.Kiota.Serialization.Form.Tests.csproj", "{E0C5DCE4-2CF5-4EA3-B351-3DD97081A9F4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Multipart.Tests", "tests\serialization\multipart\Microsoft.Kiota.Serialization.Multipart.Tests.csproj", "{E05E81CC-6C2F-4924-9E96-295447E923D4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Multipart", "src\serialization\multipart\Microsoft.Kiota.Serialization.Multipart.csproj", "{FB8B9F1D-213A-42EA-B9B8-981FA03847B0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Text", "src\serialization\text\Microsoft.Kiota.Serialization.Text.csproj", "{063737B2-4889-4789-A8EE-1727964510A1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Serialization.Text.Tests", "tests\serialization\text\Microsoft.Kiota.Serialization.Text.Tests.csproj", "{5F6AC278-C4A4-4EED-A7D3-1750A4D6FD15}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B112E9CF-055E-45FB-A32F-25CAB57936DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B112E9CF-055E-45FB-A32F-25CAB57936DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B112E9CF-055E-45FB-A32F-25CAB57936DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B112E9CF-055E-45FB-A32F-25CAB57936DB}.Release|Any CPU.Build.0 = Release|Any CPU
{61B7F639-6456-41CA-B53E-492115888F84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{61B7F639-6456-41CA-B53E-492115888F84}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61B7F639-6456-41CA-B53E-492115888F84}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61B7F639-6456-41CA-B53E-492115888F84}.Release|Any CPU.Build.0 = Release|Any CPU
{ED943ED1-CC3E-41B9-BE79-C3C301D2267B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ED943ED1-CC3E-41B9-BE79-C3C301D2267B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED943ED1-CC3E-41B9-BE79-C3C301D2267B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED943ED1-CC3E-41B9-BE79-C3C301D2267B}.Release|Any CPU.Build.0 = Release|Any CPU
{71161CE4-C748-4CD3-A5ED-A2B806B24360}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71161CE4-C748-4CD3-A5ED-A2B806B24360}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71161CE4-C748-4CD3-A5ED-A2B806B24360}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71161CE4-C748-4CD3-A5ED-A2B806B24360}.Release|Any CPU.Build.0 = Release|Any CPU
{B0D5E430-0A53-4A2A-B9B2-5CC83CC27652}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B0D5E430-0A53-4A2A-B9B2-5CC83CC27652}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0D5E430-0A53-4A2A-B9B2-5CC83CC27652}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0D5E430-0A53-4A2A-B9B2-5CC83CC27652}.Release|Any CPU.Build.0 = Release|Any CPU
{A3771749-0661-4A8D-AC16-FF338AB71FC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3771749-0661-4A8D-AC16-FF338AB71FC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3771749-0661-4A8D-AC16-FF338AB71FC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3771749-0661-4A8D-AC16-FF338AB71FC4}.Release|Any CPU.Build.0 = Release|Any CPU
{644AA85A-6AA8-4DCC-AD97-13DC9660ED3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{644AA85A-6AA8-4DCC-AD97-13DC9660ED3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{644AA85A-6AA8-4DCC-AD97-13DC9660ED3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{644AA85A-6AA8-4DCC-AD97-13DC9660ED3A}.Release|Any CPU.Build.0 = Release|Any CPU
{841CFE44-B635-4BDC-A138-AF7510B795E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{841CFE44-B635-4BDC-A138-AF7510B795E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{841CFE44-B635-4BDC-A138-AF7510B795E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{841CFE44-B635-4BDC-A138-AF7510B795E9}.Release|Any CPU.Build.0 = Release|Any CPU
{87168872-0B10-4BBB-9017-2501E76FE50A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{87168872-0B10-4BBB-9017-2501E76FE50A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{87168872-0B10-4BBB-9017-2501E76FE50A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{87168872-0B10-4BBB-9017-2501E76FE50A}.Release|Any CPU.Build.0 = Release|Any CPU
{08C40934-39AB-4BD6-8306-7EF84122BF70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08C40934-39AB-4BD6-8306-7EF84122BF70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08C40934-39AB-4BD6-8306-7EF84122BF70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08C40934-39AB-4BD6-8306-7EF84122BF70}.Release|Any CPU.Build.0 = Release|Any CPU
{E0C5DCE4-2CF5-4EA3-B351-3DD97081A9F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E0C5DCE4-2CF5-4EA3-B351-3DD97081A9F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E0C5DCE4-2CF5-4EA3-B351-3DD97081A9F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E0C5DCE4-2CF5-4EA3-B351-3DD97081A9F4}.Release|Any CPU.Build.0 = Release|Any CPU
{E05E81CC-6C2F-4924-9E96-295447E923D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E05E81CC-6C2F-4924-9E96-295447E923D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E05E81CC-6C2F-4924-9E96-295447E923D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E05E81CC-6C2F-4924-9E96-295447E923D4}.Release|Any CPU.Build.0 = Release|Any CPU
{FB8B9F1D-213A-42EA-B9B8-981FA03847B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FB8B9F1D-213A-42EA-B9B8-981FA03847B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB8B9F1D-213A-42EA-B9B8-981FA03847B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB8B9F1D-213A-42EA-B9B8-981FA03847B0}.Release|Any CPU.Build.0 = Release|Any CPU
{063737B2-4889-4789-A8EE-1727964510A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{063737B2-4889-4789-A8EE-1727964510A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{063737B2-4889-4789-A8EE-1727964510A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{063737B2-4889-4789-A8EE-1727964510A1}.Release|Any CPU.Build.0 = Release|Any CPU
{5F6AC278-C4A4-4EED-A7D3-1750A4D6FD15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F6AC278-C4A4-4EED-A7D3-1750A4D6FD15}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F6AC278-C4A4-4EED-A7D3-1750A4D6FD15}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F6AC278-C4A4-4EED-A7D3-1750A4D6FD15}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B0E38E50-7BC8-4E28-BDAC-BF38F7AF2CD2}
EndGlobalSection
EndGlobal
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Kiota Abstractions Library for dotnet

[![Build, Test, CodeQl](https://github.com/microsoft/kiota-abstractions-dotnet/actions/workflows/build-and-test.yml/badge.svg?branch=main)](https://github.com/microsoft/kiota-abstractions-dotnet/actions/workflows/build-and-test.yml) [![NuGet Version](https://buildstats.info/nuget/Microsoft.Kiota.Abstractions?includePreReleases=true)](https://www.nuget.org/packages/Microsoft.Kiota.Abstractions/)
# Kiota Libraries for dotnet

The Kiota abstractions Library for dotnet is the dotnet library defining the basic constructs Kiota projects need once an SDK has been generated from an OpenAPI definition.

A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to the abstraction package to build and run.

Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README.md).

## Using the Abstractions Library
## Libraries

```shell
dotnet add package Microsoft.Kiota.Abstractions --prerelease
```
1. [Abstractions](./src/abstractions/README.md)
1. [Authentication - Azure](./src/authentication/azure/README.md)
1. [Http - HttpClient](./src/http/httpClient/README.md)
1. [Serialization - JSON](./src/serialization/json/README.md)
1. [Serialization - FORM](./src/serialization/form/README.md)
1. [Serialization - TEXT](./src/serialization/text/README.md)
1. [Serialization - MULTIPART](./src/serialization/multipart/README.md)

## Debugging

Expand All @@ -38,4 +40,4 @@ This project may contain trademarks or logos for projects, products, or services
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
Any use of third-party trademarks or logos are subject to those third-party's policies.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md">
<None Include="README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions src/abstractions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Kiota Abstractions Library for dotnet

[![Build, Test, CodeQl](https://github.com/microsoft/kiota-abstractions-dotnet/actions/workflows/build-and-test.yml/badge.svg?branch=main)](https://github.com/microsoft/kiota-abstractions-dotnet/actions/workflows/build-and-test.yml) [![NuGet Version](https://buildstats.info/nuget/Microsoft.Kiota.Abstractions?includePreReleases=true)](https://www.nuget.org/packages/Microsoft.Kiota.Abstractions/)
andrueastman marked this conversation as resolved.
Show resolved Hide resolved

The Kiota abstractions Library for dotnet is the dotnet library defining the basic constructs Kiota projects need once an SDK has been generated from an OpenAPI definition.

A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to the abstraction package to build and run.

Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README.md).

## Using the Abstractions Library

```shell
dotnet add package Microsoft.Kiota.Abstractions
```

## Debugging

If you are using Visual Studio Code as your IDE, the **launch.json** file already contains the configuration to build and test the library. Otherwise, you can open the **Microsoft.Kiota.Abstractions.sln** with Visual Studio.

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit [https://cla.opensource.microsoft.com](https://cla.opensource.microsoft.com).

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added src/authentication/azure/35MSSharedLib1024.snk
Binary file not shown.
Loading
Loading