-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump H.Resources.Generator from 1.6.0 to 1.6.1 (#182)
* Update csproj * Bump H.Resources.Generator from 1.6.0 to 1.6.1 Bumps [H.Resources.Generator](https://github.com/HavenDV/H.Resources.Generator) from 1.6.0 to 1.6.1. - [Release notes](https://github.com/HavenDV/H.Resources.Generator/releases) - [Commits](https://github.com/HavenDV/H.Resources.Generator/commits) --- updated-dependencies: - dependency-name: H.Resources.Generator dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix DeserializeAppsResponseWorks --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jan Trejbal <jan@trejbal.land> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c7dda92
commit c370693
Showing
3 changed files
with
147 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 49 additions & 49 deletions
98
src/Apple.AppStoreConnect.Tests/Apple.AppStoreConnect.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageLicense>MIT</PackageLicense> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Apple.AppStoreConnect\Apple.AppStoreConnect.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="snapshots\*.json" /> | ||
<AdditionalFiles Include="snapshots\*.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector" Version="6.0.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
|
||
<PackageReference Include="H.Resources.Generator" Version="1.6.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" /> | ||
<PackageReference Include="Moq" Version="4.20.72" /> | ||
<PackageReference Include="xunit" Version="2.9.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> | ||
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.9.1" /> | ||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="AuthKey_TestKeyId.p8" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageLicense>MIT</PackageLicense> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Apple.AppStoreConnect\Apple.AppStoreConnect.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="snapshots\*.json" /> | ||
<AdditionalFiles Include="snapshots\*.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector" Version="6.0.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
|
||
<PackageReference Include="H.Resources.Generator" Version="1.6.1" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" /> | ||
<PackageReference Include="Moq" Version="4.20.72" /> | ||
<PackageReference Include="xunit" Version="2.9.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> | ||
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.9.1" /> | ||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="AuthKey_TestKeyId.p8" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,97 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageLicense>MIT</PackageLicense> | ||
<RepositoryUrl>https://github.com/aviationexam/apple-app-store-connect-api</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<ProjectName>AppStoreConnect</ProjectName> | ||
<PackageId>Aviationexam.Apple.AppStoreConnect</PackageId> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
<CompilerGeneratedFilesOutputPath>..\..\GeneratedFiles\AppStoreConnect</CompilerGeneratedFilesOutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GeneratedCodeTarget>Client</GeneratedCodeTarget> | ||
<AppStoreConnectOpenApiSpecificationUrl>https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip</AppStoreConnectOpenApiSpecificationUrl> | ||
<AppStoreConnectOpenApiSpecificationFile>app-store-connect-openapi-specification.zip</AppStoreConnectOpenApiSpecificationFile> | ||
<AppStoreConnectOpenApiSpecificationExtracted>app-store-connect-openapi-specification</AppStoreConnectOpenApiSpecificationExtracted> | ||
<AppStoreConnectOpenApiSpecificationOriginalJson>openapi.original.json</AppStoreConnectOpenApiSpecificationOriginalJson> | ||
<AppStoreConnectOpenApiSpecificationJson>openapi.json</AppStoreConnectOpenApiSpecificationJson> | ||
<AppStoreConnectVersion>api-version.txt</AppStoreConnectVersion> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\WarningConfiguration.targets" /> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.12.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> | ||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" /> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" /> | ||
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.0.2" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateClient>$(RESTORE_WITH_CLIENT_GENERATION)</GenerateClient> | ||
<GenerateClient Condition=" '$(GenerateClient)' == '' ">true</GenerateClient> | ||
<KiotaCommand>$(KIOTA_BIN)</KiotaCommand> | ||
<KiotaCommand Condition=" '$(KiotaCommand)' == '' ">dotnet kiota</KiotaCommand> | ||
|
||
<KiotaExec>$(KiotaCommand) generate</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --openapi $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --language csharp</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --exclude-backward-compatible</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --disable-validation-rules KnownAndNotSupportedFormats</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --output $(MSBuildProjectDirectory)/$(GeneratedCodeTarget)</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --class-name AppStoreConnectApiClient</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --namespace-name Apple.AppStoreConnect.$(GeneratedCodeTarget)</KiotaExec> | ||
</PropertyGroup> | ||
|
||
<Target Name="DownloadAppStoreConnectOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)')"> | ||
<Message Importance="High" Text="Downloading $(AppStoreConnectOpenApiSpecificationUrl) to the $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" Command="curl -sS $(AppStoreConnectOpenApiSpecificationUrl) --output $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" /> | ||
</Target> | ||
|
||
<Target Name="ExtractAppStoreConnectOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="DownloadAppStoreConnectOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)')"> | ||
<Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile) to the $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)" /> | ||
|
||
<Unzip SourceFiles="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" DestinationFolder="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)" OverwriteReadOnlyFiles="true" /> | ||
|
||
<ItemGroup> | ||
<OriginalOpenApiJsonFile Include="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/*.json" /> | ||
</ItemGroup> | ||
|
||
<Message Importance="High" Text="Renamed File: @(OriginalOpenApiJsonFile) to $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson)" /> | ||
|
||
<Move SourceFiles="@(OriginalOpenApiJsonFile)" DestinationFiles="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson)" /> | ||
</Target> | ||
|
||
<Target Name="PreprocessOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="ExtractAppStoreConnectOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)')"> | ||
<Message Importance="High" Text="Preprocess $(AppStoreConnectOpenApiSpecificationOriginalJson) to the $(AppStoreConnectOpenApiSpecificationJson)" /> | ||
<Message Importance="High" Text="dotnet run --project $(ProjectDir)\..\Apple.AppStoreConnect.PreprocessOpenApi\Apple.AppStoreConnect.PreprocessOpenApi.csproj -c Release $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson) $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet run --project $(ProjectDir)..\Apple.AppStoreConnect.PreprocessOpenApi\Apple.AppStoreConnect.PreprocessOpenApi.csproj -c Release $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson) $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson) $(AppStoreConnectVersion)" /> | ||
</Target> | ||
|
||
<Target Name="GenerateClient" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="PreprocessOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(GeneratedCodeTarget)')"> | ||
<Message Importance="High" Text="Generating client to the $(MSBuildProjectDirectory)/$(GeneratedCodeTarget) using $(KiotaCommand)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" EnvironmentVariables="KIOTA_TUTORIAL_ENABLED=false" Command="$(KiotaExec)" /> | ||
</Target> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageLicense>MIT</PackageLicense> | ||
<RepositoryUrl>https://github.com/aviationexam/apple-app-store-connect-api</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<ProjectName>AppStoreConnect</ProjectName> | ||
<PackageId>Aviationexam.Apple.AppStoreConnect</PackageId> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
<CompilerGeneratedFilesOutputPath>..\..\GeneratedFiles\AppStoreConnect</CompilerGeneratedFilesOutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GeneratedCodeTarget>Client</GeneratedCodeTarget> | ||
<AppStoreConnectOpenApiSpecificationUrl>https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip</AppStoreConnectOpenApiSpecificationUrl> | ||
<AppStoreConnectOpenApiSpecificationFile>app-store-connect-openapi-specification.zip</AppStoreConnectOpenApiSpecificationFile> | ||
<AppStoreConnectOpenApiSpecificationExtracted>app-store-connect-openapi-specification</AppStoreConnectOpenApiSpecificationExtracted> | ||
<AppStoreConnectOpenApiSpecificationOriginalJson>openapi.original.json</AppStoreConnectOpenApiSpecificationOriginalJson> | ||
<AppStoreConnectOpenApiSpecificationJson>openapi.json</AppStoreConnectOpenApiSpecificationJson> | ||
<AppStoreConnectVersion>api-version.txt</AppStoreConnectVersion> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\WarningConfiguration.targets" /> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.12.4" /> | ||
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.12.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> | ||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" /> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" /> | ||
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.0.2" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateClient>$(RESTORE_WITH_CLIENT_GENERATION)</GenerateClient> | ||
<GenerateClient Condition=" '$(GenerateClient)' == '' ">true</GenerateClient> | ||
<KiotaCommand>$(KIOTA_BIN)</KiotaCommand> | ||
<KiotaCommand Condition=" '$(KiotaCommand)' == '' ">dotnet kiota</KiotaCommand> | ||
|
||
<KiotaExec>$(KiotaCommand) generate</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --openapi $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --language csharp</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --exclude-backward-compatible</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --disable-validation-rules KnownAndNotSupportedFormats</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --output $(MSBuildProjectDirectory)/$(GeneratedCodeTarget)</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --class-name AppStoreConnectApiClient</KiotaExec> | ||
<KiotaExec>$(KiotaExec) --namespace-name Apple.AppStoreConnect.$(GeneratedCodeTarget)</KiotaExec> | ||
</PropertyGroup> | ||
|
||
<Target Name="DownloadAppStoreConnectOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)')"> | ||
<Message Importance="High" Text="Downloading $(AppStoreConnectOpenApiSpecificationUrl) to the $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" Command="curl -sS $(AppStoreConnectOpenApiSpecificationUrl) --output $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" /> | ||
</Target> | ||
|
||
<Target Name="ExtractAppStoreConnectOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="DownloadAppStoreConnectOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)')"> | ||
<Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile) to the $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)" /> | ||
|
||
<Unzip SourceFiles="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationFile)" DestinationFolder="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)" OverwriteReadOnlyFiles="true" /> | ||
|
||
<ItemGroup> | ||
<OriginalOpenApiJsonFile Include="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/*.json" /> | ||
</ItemGroup> | ||
|
||
<Message Importance="High" Text="Renamed File: @(OriginalOpenApiJsonFile) to $(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson)" /> | ||
|
||
<Move SourceFiles="@(OriginalOpenApiJsonFile)" DestinationFiles="$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson)" /> | ||
</Target> | ||
|
||
<Target Name="PreprocessOpenApiSpecification" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="ExtractAppStoreConnectOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)')"> | ||
<Message Importance="High" Text="Preprocess $(AppStoreConnectOpenApiSpecificationOriginalJson) to the $(AppStoreConnectOpenApiSpecificationJson)" /> | ||
<Message Importance="High" Text="dotnet run --project $(ProjectDir)\..\Apple.AppStoreConnect.PreprocessOpenApi\Apple.AppStoreConnect.PreprocessOpenApi.csproj -c Release $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson) $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet run --project $(ProjectDir)..\Apple.AppStoreConnect.PreprocessOpenApi\Apple.AppStoreConnect.PreprocessOpenApi.csproj -c Release $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationOriginalJson) $(AppStoreConnectOpenApiSpecificationExtracted)/$(AppStoreConnectOpenApiSpecificationJson) $(AppStoreConnectVersion)" /> | ||
</Target> | ||
|
||
<Target Name="GenerateClient" BeforeTargets="Restore;_GenerateRestoreProjectSpec" AfterTargets="PreprocessOpenApiSpecification" Condition=" $(GenerateClient) == 'true' And !Exists('$(MSBuildProjectDirectory)/$(GeneratedCodeTarget)')"> | ||
<Message Importance="High" Text="Generating client to the $(MSBuildProjectDirectory)/$(GeneratedCodeTarget) using $(KiotaCommand)" /> | ||
|
||
<Exec WorkingDirectory="$(ProjectDir)" EnvironmentVariables="KIOTA_TUTORIAL_ENABLED=false" Command="$(KiotaExec)" /> | ||
</Target> | ||
|
||
</Project> |