Don't generate documentation file in debug builds

internals
Eric Mellino 7 years ago
parent f1a76b7787
commit 191632ad56
  1. 2
      src/ImGui.NET/ImGui.NET.csproj
  2. 2
      src/ImGui.NET/TextInputBuffer.cs

@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/mellinoe/imgui.net</PackageProjectUrl>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DocumentationFile>bin\Debug\ImGui.NET.xml</DocumentationFile>
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\Release\ImGui.NET.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />

@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@ -91,6 +92,7 @@ namespace ImGuiNET
}
set
{
Debug.Assert(value != null);
if (value.Length > Length) // Doesn't fit into current buffer
{
FreeNativeBuffer();

Loading…
Cancel
Save