Allow sample program to run under 'dotnet run'

internals
Eric Mellino 9 years ago
parent 63808c6115
commit 903cce6204
  1. 3
      global.json
  2. 14
      src/ImGui.NET.SampleProgram/ImGui.NET.SampleProgram.csproj
  3. BIN
      src/ImGui.NET.SampleProgram/cimgui.dll
  4. BIN
      src/ImGui.NET.SampleProgram/cimgui.so
  5. 40
      src/ImGui.NET.SampleProgram/project.json

@ -0,0 +1,3 @@
{
"projects": [ "src" ]
}

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == '' And '$(OS)' != 'Windows_NT'">Ubuntu_Debug</Configuration>
<Configuration Condition="'$(Configuration)' == ''">Windows_Debug</Configuration>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
@ -8,7 +12,8 @@
<RootNamespace>ImGuiNET</RootNamespace>
<AssemblyName>SampleGUIProgram</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>
<BaseNuGetRuntimeIdentifier Condition="'$(OSTarget)' == 'Windows_NT'">win7</BaseNuGetRuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<Compile Include="Program.cs" />
@ -24,9 +29,6 @@
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Reference Include="$(DepsDir)OpenTK\OpenTK.dll">
<Private>True</Private>
</Reference>
<ProjectReference Include="../ImGui.NET/ImGui.NET.csproj">
<Name>ImGUI.NET</Name>
</ProjectReference>
@ -36,10 +38,6 @@
<Link>cimgui.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\..\deps\cimgui\win7-x64\cimgui.pdb">
<Link>cimgui.pdb</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>

@ -1,16 +1,32 @@
{
"dependencies": {
"Microsoft.NETCore.Console": "1.0.0-beta-23504",
"System.Console": "4.0.0-beta-23504",
"System.Reflection.Metadata": "1.1.1-beta-23504",
"System.Threading.Thread": "4.0.0-beta-23504"
"compilationOptions": {
"allowUnsafe": true,
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-rc2-3002520"
},
"runtimes": {
"win10-x64": { },
"ubuntu.14.04-x64": { },
"osx.10.10-x64": { }
},
"frameworks": {
"dnxcore50": { }
"ImGui.NET": { "target": "project" },
"OpenTK.NETCore": "1.1.2287.6424",
"Microsoft.NETCore.ConsoleHost": "1.0.0-rc3-24019-00",
"Microsoft.NETCore.Runtime": "1.0.2-rc3-24019-00",
"System.ComponentModel": "4.0.1-rc3-24019-00",
"System.Threading.Thread": "4.0.0-rc3-24019-00",
"System.Reflection.TypeExtensions": "4.1.0-rc3-24019-00",
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
},
"runtimes": {
"win7-x64": { },
"ubuntu.14.04-x64": { },
},
"content": [
"cimgui.dll",
"cimgui.so"
]
}
Loading…
Cancel
Save