Skip to content

Commit b5edc6a

Browse files
authored
Merge pull request #16 from DeeJayTC/vnext
Next Version 0.1.2
2 parents 877e826 + 2dd1062 commit b5edc6a

File tree

78 files changed

+3782
-1153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3782
-1153
lines changed

.editorconfig

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,80 @@
22

33
# CS1591: Fehledes XML-Kommentar für öffentlich sichtbaren Typ oder Element
44
dotnet_diagnostic.CS1591.severity = none
5+
csharp_indent_labels = one_less_than_current
6+
csharp_using_directive_placement = outside_namespace:silent
7+
csharp_prefer_simple_using_statement = true:suggestion
8+
csharp_prefer_braces = true:silent
9+
csharp_style_namespace_declarations = block_scoped:silent
10+
csharp_style_expression_bodied_methods = false:silent
11+
csharp_style_expression_bodied_constructors = false:silent
12+
csharp_style_expression_bodied_operators = false:silent
13+
csharp_style_expression_bodied_properties = true:silent
14+
csharp_style_expression_bodied_indexers = true:silent
15+
csharp_style_expression_bodied_accessors = true:silent
16+
csharp_style_expression_bodied_lambdas = true:silent
17+
csharp_style_expression_bodied_local_functions = false:silent
18+
csharp_space_around_binary_operators = before_and_after
19+
20+
[*.{cs,vb}]
21+
#### Naming styles ####
22+
23+
# Naming rules
24+
25+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
26+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
27+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
28+
29+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
30+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
31+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
32+
33+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
34+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
35+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
36+
37+
# Symbol specifications
38+
39+
dotnet_naming_symbols.interface.applicable_kinds = interface
40+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
41+
dotnet_naming_symbols.interface.required_modifiers =
42+
43+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
44+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
45+
dotnet_naming_symbols.types.required_modifiers =
46+
47+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
48+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
49+
dotnet_naming_symbols.non_field_members.required_modifiers =
50+
51+
# Naming styles
52+
53+
dotnet_naming_style.begins_with_i.required_prefix = I
54+
dotnet_naming_style.begins_with_i.required_suffix =
55+
dotnet_naming_style.begins_with_i.word_separator =
56+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
57+
58+
dotnet_naming_style.pascal_case.required_prefix =
59+
dotnet_naming_style.pascal_case.required_suffix =
60+
dotnet_naming_style.pascal_case.word_separator =
61+
dotnet_naming_style.pascal_case.capitalization = pascal_case
62+
63+
dotnet_naming_style.pascal_case.required_prefix =
64+
dotnet_naming_style.pascal_case.required_suffix =
65+
dotnet_naming_style.pascal_case.word_separator =
66+
dotnet_naming_style.pascal_case.capitalization = pascal_case
67+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
68+
tab_width = 4
69+
indent_size = 4
70+
end_of_line = crlf
71+
dotnet_style_coalesce_expression = true:suggestion
72+
dotnet_style_null_propagation = true:suggestion
73+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
74+
dotnet_style_prefer_auto_properties = true:silent
75+
dotnet_style_object_initializer = true:suggestion
76+
dotnet_style_collection_initializer = true:suggestion
77+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
78+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
79+
dotnet_style_prefer_conditional_expression_over_return = true:silent
80+
dotnet_style_explicit_tuple_names = true:suggestion
81+
dotnet_style_prefer_inferred_tuple_names = true:suggestion

.github/workflows/apigenerator.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build and deploy .NET Core application to windows webapp apigenerator with API Management Service ApiGeneratorSampleApIapi
2+
on:
3+
push:
4+
branches:
5+
- vnext
6+
env:
7+
AZURE_WEBAPP_NAME: apigenerator
8+
DOTNET_CORE_VERSION: 6.0.x
9+
WORKING_DIRECTORY: sample\ApiGeneratorSampleApp
10+
CONFIGURATION: Release
11+
AZURE_WEBAPP_PACKAGE_PATH: sample\ApiGeneratorSampleApp/publish
12+
AZURE_APIM_RESOURCE_PATH: /generated
13+
AZURE_APIM_RESOURCEGROUP: apigenerator_group
14+
AZURE_APIM_SERVICENAME: ApiGeneratorSampleApIapi
15+
AZURE_APIM_API_ID: ApiGeneratorSampleApI
16+
AZURE_APIM_APPSERVICEURL: https://apigenerator.azurewebsites.net:80/
17+
SWASHBUCLE_ASPNET_CORE_CLI_PACKAGE_VERSION: 5.6.3
18+
SWASHBUCKLE_DOTNET_CORE_VERSION: 3.1.x
19+
API_IMPORT_SPECIFICATION_PATH: sample\ApiGeneratorSampleApp/publish/swagger.json
20+
API_IMPORT_DLL: sample\ApiGeneratorSampleApp/publish/ApiGeneratorSampleApI.dll
21+
API_IMPORT_VERSION: v1
22+
jobs:
23+
build:
24+
runs-on: windows-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup .NET Core
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
31+
- name: Setup SwashBuckle .NET Core
32+
uses: actions/setup-dotnet@v1
33+
with:
34+
dotnet-version: ${{ env.SWASHBUCKLE_DOTNET_CORE_VERSION }}
35+
- name: Restore
36+
run: dotnet restore ${{ env.WORKING_DIRECTORY }}
37+
- name: Build
38+
run: dotnet build ${{ env.WORKING_DIRECTORY }} --configuration ${{ env.CONFIGURATION }} --no-restore
39+
- name: Test
40+
run: dotnet test ${{ env.WORKING_DIRECTORY }} --no-build
41+
- name: Publish
42+
run: dotnet publish ${{ env.WORKING_DIRECTORY }} --configuration ${{ env.CONFIGURATION }} --no-build --output ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
43+
- name: Install Swashbuckle CLI .NET Global Tool
44+
run: dotnet tool install --global Swashbuckle.AspNetCore.Cli --version ${{ env.SWASHBUCLE_ASPNET_CORE_CLI_PACKAGE_VERSION }}
45+
working-directory: ${{ env.WORKING_DIRECTORY }}
46+
- name: Publish Artifacts
47+
uses: actions/upload-artifact@v1.0.0
48+
with:
49+
name: webapp
50+
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
51+
deploy:
52+
runs-on: windows-latest
53+
needs: build
54+
steps:
55+
- name: Download artifact from build job
56+
uses: actions/download-artifact@v2
57+
with:
58+
name: webapp
59+
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
60+
- name: Deploy to Azure WebApp
61+
uses: azure/webapps-deploy@v2
62+
with:
63+
app-name: ${{ env.AZURE_WEBAPP_NAME }}
64+
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
65+
publish-profile: ${{ secrets.apigenerator_c1d7 }}
66+
- name: Azure Login
67+
uses: azure/login@v1
68+
with:
69+
creds: ${{ secrets.ApiGeneratorSampleApIapi_spn }}
70+
- name: Import API into Azure API Management
71+
run: az apim api import --path "${{ env.AZURE_APIM_RESOURCE_PATH }}" --resource-group "${{ env.AZURE_APIM_RESOURCEGROUP }}" --service-name "${{ env.AZURE_APIM_SERVICENAME }}" --api-id "${{ env.AZURE_APIM_API_ID }}" --service-url "${{ env.AZURE_APIM_APPSERVICEURL }}" --specification-path "${{ env.API_IMPORT_SPECIFICATION_PATH }}" --specification-format OpenApi --subscription-required false
72+
- name: logout
73+
run: >
74+
az logout

TCDev.APIGenerator.sln

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
EndProject
1515
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TCDev.APIGenerator.Caching", "src\TCDev.APIGenerator.Caching\TCDev.APIGenerator.Caching.csproj", "{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}"
1616
EndProject
17-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TCDev.APIGenerator.GraphQL", "src\TCDev.APIGenerator.GraphQL\TCDev.APIGenerator.GraphQL.csproj", "{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D}"
18-
EndProject
1917
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TCDev.APIGenerator.Schema", "src\TCDev.APIGenerator.Schema\TCDev.APIGenerator.Schema.csproj", "{94E59385-D259-40A1-A373-1FBD0A42CD63}"
2018
EndProject
2119
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApiGenerator", "ApiGenerator", "{4189D7E0-F171-4267-AC64-C9A83BB1B559}"
@@ -24,11 +22,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample App", "Sample App",
2422
EndProject
2523
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleAppNuget", "sample\SampleAppNuget\SampleAppNuget.csproj", "{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}"
2624
EndProject
25+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TCDev.APIGenerator.Json", "src\TCDev.APIGenerator.DbFirst\TCDev.APIGenerator.Json.csproj", "{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}"
26+
EndProject
27+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleAppJson", "sample\SampleAppJson\SampleAppJson.csproj", "{25AE6B2A-822D-411B-AB65-068E9E0E41D5}"
28+
EndProject
2729
Global
2830
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2931
Debug|Any CPU = Debug|Any CPU
3032
DebugWithSampleApp|Any CPU = DebugWithSampleApp|Any CPU
3133
Release|Any CPU = Release|Any CPU
34+
SampleAppJson|Any CPU = SampleAppJson|Any CPU
3235
SampleAppNuget|Any CPU = SampleAppNuget|Any CPU
3336
EndGlobalSection
3437
GlobalSection(ProjectConfigurationPlatforms) = postSolution
@@ -38,33 +41,56 @@ Global
3841
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.DebugWithSampleApp|Any CPU.Build.0 = DebugWithSampleApp|Any CPU
3942
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.Release|Any CPU.ActiveCfg = Release|Any CPU
4043
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
45+
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.SampleAppJson|Any CPU.Build.0 = SampleAppJson|Any CPU
4146
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
4247
{303BF897-594C-4911-91CF-3887A8B8E839}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{303BF897-594C-4911-91CF-3887A8B8E839}.Debug|Any CPU.Build.0 = Debug|Any CPU
4349
{303BF897-594C-4911-91CF-3887A8B8E839}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
4450
{303BF897-594C-4911-91CF-3887A8B8E839}.DebugWithSampleApp|Any CPU.Build.0 = DebugWithSampleApp|Any CPU
4551
{303BF897-594C-4911-91CF-3887A8B8E839}.Release|Any CPU.ActiveCfg = Release|Any CPU
4652
{303BF897-594C-4911-91CF-3887A8B8E839}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{303BF897-594C-4911-91CF-3887A8B8E839}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
4754
{303BF897-594C-4911-91CF-3887A8B8E839}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
4855
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4956
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
5057
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
58+
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
5159
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
52-
{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53-
{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
54-
{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
55-
{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
5660
{94E59385-D259-40A1-A373-1FBD0A42CD63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5761
{94E59385-D259-40A1-A373-1FBD0A42CD63}.Debug|Any CPU.Build.0 = Debug|Any CPU
5862
{94E59385-D259-40A1-A373-1FBD0A42CD63}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
5963
{94E59385-D259-40A1-A373-1FBD0A42CD63}.DebugWithSampleApp|Any CPU.Build.0 = DebugWithSampleApp|Any CPU
6064
{94E59385-D259-40A1-A373-1FBD0A42CD63}.Release|Any CPU.ActiveCfg = Release|Any CPU
6165
{94E59385-D259-40A1-A373-1FBD0A42CD63}.Release|Any CPU.Build.0 = Release|Any CPU
66+
{94E59385-D259-40A1-A373-1FBD0A42CD63}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
67+
{94E59385-D259-40A1-A373-1FBD0A42CD63}.SampleAppJson|Any CPU.Build.0 = SampleAppJson|Any CPU
6268
{94E59385-D259-40A1-A373-1FBD0A42CD63}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
6369
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6470
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
6571
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.Release|Any CPU.ActiveCfg = Release|Any CPU
72+
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
6673
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
6774
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851}.SampleAppNuget|Any CPU.Build.0 = SampleAppNuget|Any CPU
75+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
76+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
77+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
78+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.DebugWithSampleApp|Any CPU.Build.0 = DebugWithSampleApp|Any CPU
79+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
80+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.Release|Any CPU.Build.0 = Release|Any CPU
81+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
82+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
83+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4}.SampleAppNuget|Any CPU.Build.0 = SampleAppNuget|Any CPU
84+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
85+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
86+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.DebugWithSampleApp|Any CPU.ActiveCfg = DebugWithSampleApp|Any CPU
87+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.DebugWithSampleApp|Any CPU.Build.0 = DebugWithSampleApp|Any CPU
88+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
89+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.Release|Any CPU.Build.0 = Release|Any CPU
90+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.SampleAppJson|Any CPU.ActiveCfg = SampleAppJson|Any CPU
91+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.SampleAppJson|Any CPU.Build.0 = SampleAppJson|Any CPU
92+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.SampleAppNuget|Any CPU.ActiveCfg = SampleAppNuget|Any CPU
93+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5}.SampleAppNuget|Any CPU.Build.0 = SampleAppNuget|Any CPU
6894
EndGlobalSection
6995
GlobalSection(SolutionProperties) = preSolution
7096
HideSolutionNode = FALSE
@@ -73,9 +99,10 @@ Global
7399
{FE869C02-6C9A-4D9B-BBE2-56F1B21B2A55} = {4189D7E0-F171-4267-AC64-C9A83BB1B559}
74100
{303BF897-594C-4911-91CF-3887A8B8E839} = {8CC9B68F-E1C2-45B3-8814-B9FF4E1B2AB8}
75101
{0C8E23AD-AC5D-41D4-9F67-0ECF3D1C4BE1} = {4189D7E0-F171-4267-AC64-C9A83BB1B559}
76-
{EDEA4DF4-49DF-4205-9B8E-61D76F26BA8D} = {4189D7E0-F171-4267-AC64-C9A83BB1B559}
77102
{94E59385-D259-40A1-A373-1FBD0A42CD63} = {4189D7E0-F171-4267-AC64-C9A83BB1B559}
78103
{BA9E04E6-4B66-4369-9B2F-C6CEC9499851} = {8CC9B68F-E1C2-45B3-8814-B9FF4E1B2AB8}
104+
{7F3574D1-7421-4824-A0BB-522F3BC9BAC4} = {4189D7E0-F171-4267-AC64-C9A83BB1B559}
105+
{25AE6B2A-822D-411B-AB65-068E9E0E41D5} = {8CC9B68F-E1C2-45B3-8814-B9FF4E1B2AB8}
79106
EndGlobalSection
80107
GlobalSection(ExtensibilityGlobals) = postSolution
81108
SolutionGuid = {315BF454-8B91-42C5-A113-B59C72AE69C8}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[
2+
3+
{
4+
"name": "MakeJSON",
5+
"route": "/MakeJSON",
6+
"idType": "int",
7+
"authorize": true,
8+
"scopesRead": [ "all.read" ],
9+
"scopesWrite": [ "all.write" ],
10+
"Fields": [
11+
{
12+
"name": "Name",
13+
"type": "string"
14+
},
15+
{
16+
"name": "Description",
17+
"Type": "string"
18+
19+
}
20+
]
21+
},
22+
{
23+
"name": "CarJSON",
24+
"route": "/CarJSON",
25+
"idType": "int",
26+
"Fields": [
27+
{
28+
"name": "Name",
29+
"type": "string"
30+
},
31+
{
32+
"name": "Description",
33+
"Type": "string"
34+
},
35+
{
36+
"name": "Make",
37+
"type": "virtual MakeJSON"
38+
},
39+
{
40+
"name": "MakeId",
41+
"type": "int"
42+
}
43+
]
44+
}
45+
]

sample/ApiGeneratorSampleApp/ApiGeneratorSampleApI.csproj

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<UserSecretsId>aspnet-ApiGeneratorSampleApp-56AA10DB-26A2-414F-AFD8-1D3546BD678D</UserSecretsId>
6-
<Configurations>Debug;Release;DebugWithSampleApp;SampleAppNuget</Configurations>
6+
<Configurations>Debug;Release;DebugWithSampleApp;SampleAppNuget;SampleAppJson</Configurations>
77
</PropertyGroup>
88

99
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -14,24 +14,36 @@
1414
<DocumentationFile>ApiGeneratorSampleApI.xml</DocumentationFile>
1515
</PropertyGroup>
1616

17+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='SampleAppJson|AnyCPU'">
18+
<DocumentationFile>ApiGeneratorSampleApI.xml</DocumentationFile>
19+
</PropertyGroup>
20+
1721
<ItemGroup>
1822
<PackageReference Include="GraphQL" Version="4.6.1" />
19-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.2" />
20-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.2" />
21-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.2" />
22-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.2">
23+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.3" />
24+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.3" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.3" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.3">
2327
<PrivateAssets>all</PrivateAssets>
2428
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2529
</PackageReference>
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.2" />
30+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.3" />
2731
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Design" Version="1.1.6" />
2832
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6" />
2933
<PackageReference Include="Microsoft.Identity.Web" Version="1.23.0" />
3034
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
35+
<PackageReference Include="TCDev.ApiGenerator" Version="0.1.0-alpha" />
36+
</ItemGroup>
37+
38+
<ItemGroup>
39+
<ProjectReference Include="..\..\src\TCDev.APIGenerator\TCDev.APIGenerator.csproj" />
40+
<ProjectReference Include="..\..\src\TCDev.ApiGenerator.Json\TCDev.ApiGenerator.Json.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
3141
</ItemGroup>
3242

3343
<ItemGroup>
34-
<ProjectReference Include="..\..\src\TCDev.ApiGenerator\TCDev.ApiGenerator.csproj" />
44+
<None Include="wwwroot\SwaggerDarkTheme.css">
45+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
46+
</None>
3547
</ItemGroup>
3648

3749
</Project>

sample/ApiGeneratorSampleApp/ApiGeneratorSampleApI.xml

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)