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

@ -1,16 +1,32 @@
{ {
"dependencies": { "compilationOptions": {
"Microsoft.NETCore.Console": "1.0.0-beta-23504", "allowUnsafe": true,
"System.Console": "4.0.0-beta-23504", "emitEntryPoint": true
"System.Reflection.Metadata": "1.1.1-beta-23504", },
"System.Threading.Thread": "4.0.0-beta-23504" "dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-rc2-3002520"
}, },
"runtimes": { "ImGui.NET": { "target": "project" },
"win10-x64": { }, "OpenTK.NETCore": "1.1.2287.6424",
"ubuntu.14.04-x64": { }, "Microsoft.NETCore.ConsoleHost": "1.0.0-rc3-24019-00",
"osx.10.10-x64": { } "Microsoft.NETCore.Runtime": "1.0.2-rc3-24019-00",
}, "System.ComponentModel": "4.0.1-rc3-24019-00",
"frameworks": { "System.Threading.Thread": "4.0.0-rc3-24019-00",
"dnxcore50": { } "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