-
Notifications
You must be signed in to change notification settings - Fork 720
close #2636: added json schemas for Aspire.Hosting.AppHost and Aspire.Hosting.Azure #4912
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
Changes from 2 commits
b32b679
9c0cb89
8d8e1e4
2873b02
ca5ec7e
2fb9228
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "Parameters": { | ||
| "type": "object" | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,11 +19,15 @@ | |
| <Compile Include="..\Aspire.Hosting\Dcp\Process\ProcessUtil.cs" Link="Provisioning\Utils\ProcessUtil.cs" /> | ||
| <Compile Include="..\Shared\Cosmos\CosmosConstants.cs" Link="Shared\CosmosConstants.cs" /> | ||
| </ItemGroup> | ||
|
|
||
|
||
| <ItemGroup> | ||
| <EmbeddedResource Include="Bicep\*.bicep" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <None Include="**/*.targets;AspireAzureConfigurationSchema.json" Pack="true" PackagePath="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\Aspire.Hosting\Aspire.Hosting.csproj" /> | ||
| <PackageReference Include="System.IO.Hashing" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "Azure": { | ||
| "type": "object", | ||
| "properties": { | ||
| "SubscriptionId": { | ||
| "description": "Azure Subscription Id that will be used to host aspire app", | ||
| "type": "string" | ||
| }, | ||
| "ResourceGroup": { | ||
| "description": "Azure Resource Group name where to create resources", | ||
| "type": "string" | ||
| }, | ||
| "ResourceGroupPrefix": { | ||
| "description": "Azure Resource Group prefix used in resource groups names created", | ||
| "type": "string" | ||
| }, | ||
| "AllowResourceGroupCreation": { | ||
| "description": "Flag that shows if it is allowed to create a resource group if not exists", | ||
| "type": "boolean" | ||
| }, | ||
| "Location": { | ||
| "description": "Azure Location that will be used to create resources", | ||
| "type": "string" | ||
| }, | ||
| "CredentialSource": { | ||
| "description": "Shows where to look for Azure credentials", | ||
| "enum": [ | ||
| "AzureCli", | ||
| "AzurePowerShell", | ||
| "VisualStudio", | ||
| "VisualStudioCode", | ||
| "AzureDeveloperCli", | ||
| "InteractiveBrowser", | ||
| "Default" | ||
| ], | ||
| "default": "Default" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||
| <Project> | ||||||
|
||||||
| <ItemGroup> | ||||||
| <JsonSchemaSegment Include="$(MSBuildThisFileDirectory)..\AspireAzureConfigurationSchema.json" | ||||||
| FilePathPattern="appsettings\..*json" /> | ||||||
|
||||||
| FilePathPattern="appsettings\..*json" /> | |
| FilePathPattern="appsettings\..*json|secrets.json" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to add it, but it didn't work for me. So I skipped for now
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <Project> | ||
| <Import Project="..\build\Aspire.Hosting.Azure.targets" /> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <Project> | ||
| <Import Project="..\build\Aspire.Hosting.Azure.targets" /> | ||
| </Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should just pack the one file we want, that way we don't accidently start including other .json files we don't intend to put in the nupkg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, fixed it