Skip to content

Commit

Permalink
Remove windows only flags and migrate to nested Directory.Build.props
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-edmondson committed Feb 13, 2024
1 parent b5b7af4 commit 278490d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
13 changes: 0 additions & 13 deletions .project.props

This file was deleted.

6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<Project>

<Import Project=".project.props" />

<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand All @@ -10,6 +8,7 @@
<AssemblyName>$(RootNamespace)</AssemblyName>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<AnalysisLevel>latest-all</AnalysisLevel>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<WarningLevel>9999</WarningLevel>
Expand All @@ -18,8 +17,9 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\.project.props" />
<None Include="Directory.Build.props" />
<None Include="..\$(PackageLicenseFile)" Pack="True" PackagePath="" Visible="False" />
<InternalsVisibleTo Include="$(RootNamespace).Test" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions ImGuiApp/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha.7</VersionSuffix>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageDescription>A library for custom widgets using ImGui.NET.</PackageDescription>
<PackageDescription>A bootstrap library to give you an environment to build an ImGUI.NET application with.</PackageDescription>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion ImGuiApp/ImGuiApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void Start(string windowTitle, ImGuiAppWindowState initialWindowSt

// This is where you'll do any rendering beneath the ImGui context
// Here, we just have a blank screen.
gl?.ClearColor(Color.FromArgb(255, (int)(.45f * 255), (int)(.55f * 255), (int)(.60f * 255)));
gl?.ClearColor(System.Drawing.Color.FromArgb(255, (int)(.45f * 255), (int)(.55f * 255), (int)(.60f * 255)));
gl?.Clear((uint)ClearBufferMask.ColorBufferBit);

RenderMenu(menuDelegate);
Expand Down

0 comments on commit 278490d

Please sign in to comment.