Don't generate documentation file in debug builds

internals
Eric Mellino 8 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> <PackageProjectUrl>https://github.com/mellinoe/imgui.net</PackageProjectUrl>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DocumentationFile>bin\Debug\ImGui.NET.xml</DocumentationFile> <DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\Release\ImGui.NET.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" /> <PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />

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

Loading…
Cancel
Save