Skip to content

Commit

Permalink
Reworked Project Files
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Oct 8, 2023
1 parent 4f45cf1 commit 1e8ed54
Show file tree
Hide file tree
Showing 7 changed files with 2,177 additions and 109 deletions.
10 changes: 10 additions & 0 deletions src/HotChocolate/OpenApi/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\'))" />

<PropertyGroup>
<TargetFrameworks>$(Library3TargetFrameworks)</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

</Project>
4 changes: 4 additions & 0 deletions src/HotChocolate/OpenApi/src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\'))" />
<Import Project="$([MSBuild]::GetPathOfFileAbove('Nullable.props', '$(MSBuildThisFileDirectory)..\'))" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,12 @@
<PropertyGroup>
<AssemblyName>HotChocolate.OpenApi</AssemblyName>
<RootNamespace>HotChocolate.OpenApi</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="HotChocolate.OpenApi.Tests"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0-rc.1.23419.4" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.6" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.6" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Core\src\Abstractions\HotChocolate.Abstractions.csproj" />
<ProjectReference Include="..\..\..\Core\src\Core\HotChocolate.Core.csproj" />
Expand All @@ -28,6 +17,18 @@
<ProjectReference Include="..\..\..\Skimmed\src\Skimmed\Skimmed.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.6" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.6" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0-rc.1.23419.4" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.6" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.6" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\OpenApiResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand Down
Loading

0 comments on commit 1e8ed54

Please sign in to comment.