Skip to content

Instantly share code, notes, and snippets.

@spboyer
Created March 28, 2017 17:06
Show Gist options
  • Save spboyer/a763dcf01cdb176be182ffff0a6d6d58 to your computer and use it in GitHub Desktop.
Save spboyer/a763dcf01cdb176be182ffff0a6d6d58 to your computer and use it in GitHub Desktop.
Documentation File snippet for ASP.NET Core Swagger file include
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<ItemGroup>
<DocFile Include="bin\$(Configuration)\$(TargetFramework)\*.xml" />
</ItemGroup>
<Copy SourceFiles="@(DocFile)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="false" />
</Target>
<!-- Added by Visual Studio, Visual Studio for Mac, or hand code in other IDE -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DocumentationFile>bin\Debug\netcoreapp1.1\copydocfile-example.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DocumentationFile>bin\Release\netcoreapp1.1\copydocfile-example.xml</DocumentationFile>
</PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment