forked from loafle/openapi-generator-original
Aligns C# project outputs more with community accepted standards and leverges Nuget for package management. This also moves the generated C# sample code out of the test project's Lib folder. The output structure here was causing some issues with maintainability (e.g. had to update test project with generated code). (see: https://gist.github.com/davidfowl/ed7564297c61fe9ab814) Output for a project, IO.Swagger will now look like: . ├── IO.Swagger.sln ├── README.md ├── bin ├── build.bat ├── build.sh ├── docs ├── packages └── src ├── IO.Swagger │ └── packages.config └── IO.Swagger.Test └── packages.config This is a change from the Java-like src/main/csharp/IO/Swagger/etc structure and will be a breaking change for some.
70 lines
2.8 KiB
XML
70 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ProjectGuid>{1011E844-3414-4D65-BF1F-7C8CE0167174}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<RootNamespace>SwaggerClientTest</RootNamespace>
|
|
<AssemblyName>SwaggerClientTest</AssemblyName>
|
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug</OutputPath>
|
|
<DefineConstants>DEBUG;</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<ConsolePause>false</ConsolePause>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<DebugType>full</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\Release</OutputPath>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<ConsolePause>false</ConsolePause>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System" />
|
|
<Reference Include="Newtonsoft.Json">
|
|
<HintPath>packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="RestSharp">
|
|
<HintPath>packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="System.Runtime.Serialization" />
|
|
<Reference Include="Microsoft.CSharp" />
|
|
<Reference Include="nunit.framework">
|
|
<HintPath>packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="System.Web" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="TestPet.cs" />
|
|
<Compile Include="TestApiClient.cs" />
|
|
<Compile Include="TestConfiguration.cs" />
|
|
<Compile Include="TestOrder.cs" />
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
<ItemGroup>
|
|
<None Include="..\SwaggerClient\build.bat" />
|
|
<None Include="..\SwaggerClient\build.sh" />
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="..\SwaggerClient\" />
|
|
<EmbeddedResource Include="swagger-logo.png" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\SwaggerClient\src\IO.Swagger\IO.Swagger.csproj">
|
|
<Project>{0862164F-97E9-4226-B458-E09905B21F2F}</Project>
|
|
<Name>IO.Swagger</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
</Project> |