Skip to content

Commit

Permalink
Include build output in csproj
Browse files Browse the repository at this point in the history
teociaps committed Aug 19, 2024
1 parent 3926763 commit 0b30598
Showing 4 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@

<ItemGroup>
<ProjectReference Include="..\..\src\AspNetCore.NSwag.Themes\AspNetCore.NSwag.Themes.csproj" />
<ProjectReference Include="..\..\src\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@

<ItemGroup>
<ProjectReference Include="..\..\src\AspNetCore.SwaggerUI.Themes\AspNetCore.SwaggerUI.Themes.csproj" />
<ProjectReference Include="..\..\src\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" />
</ItemGroup>

</Project>
12 changes: 11 additions & 1 deletion src/AspNetCore.NSwag.Themes/AspNetCore.NSwag.Themes.csproj
Original file line number Diff line number Diff line change
@@ -20,14 +20,24 @@
<PackageTags>
extension;aspnetcore;swagger;swagger-ui;nswag;themes;dark-theme;modern
</PackageTags>
<IncludeBuildOutput>true</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NSwag.AspNetCore" Version="14.1.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" />
<ProjectReference Include="..\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)AspNetCore.Swagger.Themes.Common.dll" />
</ItemGroup>
</Target>

</Project>
Original file line number Diff line number Diff line change
@@ -20,14 +20,24 @@
<PackageTags>
extension;aspnetcore;swagger;swagger-ui;themes;dark-theme;modern
</PackageTags>
<IncludeBuildOutput>true</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.7.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" />
<ProjectReference Include="..\AspNetCore.Swagger.Themes.Common\AspNetCore.Swagger.Themes.Common.csproj" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)AspNetCore.Swagger.Themes.Common.dll" />
</ItemGroup>
</Target>

</Project>

0 comments on commit 0b30598

Please sign in to comment.