Permalink
Browse files

Remove NSwag.AspNetCore.Launcher dependency from NSwag.ConsoleCore

Fixes #1157
  • Loading branch information...
pranavkm committed Feb 6, 2018
1 parent a34636b commit ec3a18ac2347312770a83a81e3ec96faf21b22d6
Showing with 16 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 src/NSwag.AspNetCore.Launcher/Program.cs
  3. +13 −2 src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj
View
@@ -59,3 +59,5 @@ src/packages/**
/src/dist
build/*.nupkg
/src/NSwagStudio.Installer/Generated.wxs
NSwag.MSBuild.*.nupkg
NSwagStudio*.nupkg
@@ -5,7 +5,7 @@
namespace NSwag.AspNetCore.Launcher
{
public class Program
internal class Program
{
private const string EntryPointType = "NSwag.SwaggerGeneration.AspNetCore.AspNetCoreToSwaggerGeneratorCommandEntryPoint";
private static readonly AssemblyName AspNetCoreSwaggerGenerationAssembly = new AssemblyName("NSwag.SwaggerGeneration.AspNetCore");
@@ -16,12 +16,23 @@
<PackageId>NSwag.ConsoleCore</PackageId>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NSwag.AspNetCore.Launcher\NSwag.AspNetCore.Launcher.csproj" />
<ProjectReference Include="..\NSwag.AspNetCore.Launcher\NSwag.AspNetCore.Launcher.csproj" PrivateAssets="All" />
<ProjectReference Include="..\NSwag.Commands\NSwag.Commands.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NConsole" Version="3.9.6519.30868" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.Net.Http" Version="4.3.2" />
</ItemGroup>
</Project>
<!-- Workaround for https://github.com/NuGet/Home/issues/3891 -->
<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeP2POutput</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="IncludeP2POutput">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)NSwag.AspNetCore.Launcher.dll" />
</ItemGroup>
</Target>
</Project>

0 comments on commit ec3a18a

Please sign in to comment.