Skip to content

Commit

Permalink
Add CLI dependency to all CLI test projects and fix paths to dotnet-s…
Browse files Browse the repository at this point in the history
…wagger.dll
  • Loading branch information
rmorris committed Sep 14, 2020
1 parent 0f577b2 commit 1445f05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/WebSites/CliExample/CliExample.csproj
Expand Up @@ -8,6 +8,7 @@
<ProjectReference Include="..\..\..\src\Swashbuckle.AspNetCore.SwaggerGen\Swashbuckle.AspNetCore.SwaggerGen.csproj" />
<ProjectReference Include="..\..\..\src\Swashbuckle.AspNetCore.SwaggerUI\Swashbuckle.AspNetCore.SwaggerUI.csproj" />
<ProjectReference Include="..\..\..\src\Swashbuckle.AspNetCore.Swagger\Swashbuckle.AspNetCore.Swagger.csproj" />
<ProjectReference Include="..\..\..\src\Swashbuckle.AspNetCore.Cli\Swashbuckle.AspNetCore.Cli.csproj" />
</ItemGroup>

<!--
Expand All @@ -26,7 +27,7 @@
-->

<Target Name="SwaggerToFile" AfterTargets="AfterBuild">
<Exec Command="dotnet $(SolutionDir)/src/Swashbuckle.AspNetCore.Cli/bin/$(Configuration)/$(TargetFramework)/dotnet-swagger.dll tofile --host http://example.com --output wwwroot/api-docs/v1/swagger.json $(OutputPath)$(AssemblyName).dll v1" />
<Exec Command="dotnet $(SolutionDir)src\Swashbuckle.AspNetCore.Cli\bin\$(Configuration)\$(TargetFramework)\dotnet-swagger.dll tofile --host http://example.com --output wwwroot/api-docs/v1/swagger.json $(OutputPath)$(AssemblyName).dll v1" />
</Target>

</Project>
Expand Up @@ -31,7 +31,7 @@
-->

<Target Name="SwaggerToFile" AfterTargets="AfterBuild">
<Exec Command="dotnet $(SolutionDir)/src/Swashbuckle.AspNetCore.Cli/bin/$(Configuration)/$(TargetFramework)/dotnet-swagger.dll tofile --host http://example.com --output wwwroot/api-docs/v1/swagger.json $(OutputPath)$(AssemblyName).dll v1" />
<Exec Command="dotnet $(SolutionDir)src\Swashbuckle.AspNetCore.Cli\bin\$(Configuration)\$(TargetFramework)\dotnet-swagger.dll tofile --host http://example.com --output wwwroot/api-docs/v1/swagger.json $(OutputPath)$(AssemblyName).dll v1" />
</Target>

</Project>
2 changes: 1 addition & 1 deletion test/WebSites/NswagClientExample/NswagClientExample.csproj
Expand Up @@ -24,7 +24,7 @@
</ItemGroup>

<Target Name="SwaggerToFile" AfterTargets="AfterBuild">
<Exec Command="dotnet $(SolutionDir)/src/Swashbuckle.AspNetCore.Cli/bin/$(Configuration)/$(TargetFramework)/dotnet-swagger.dll tofile --host http://example.com --output swagger.json $(OutputPath)$(AssemblyName).dll v1" />
<Exec Command="dotnet $(SolutionDir)src\Swashbuckle.AspNetCore.Cli\bin\$(Configuration)\$(TargetFramework)\dotnet-swagger.dll tofile --host http://example.com --output swagger.json $(OutputPath)$(AssemblyName).dll v1" />
</Target>

<Target Name="NSwag" AfterTargets="SwaggerToFile">
Expand Down

0 comments on commit 1445f05

Please sign in to comment.