Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix Playgrounds.NetCoreApp
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Mar 5, 2018
1 parent aeb1235 commit 3fd7011
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;DEBUG;NETCOREAPP2_0</DefineConstants>
<OutputPath>C:\prj\urho\Bin\Desktop\</OutputPath>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\..\Bin\Desktop\Win64\mono-urho.dll" Link="mono-urho.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\..\Urho3D\CoreData.pak" Link="CoreData.pak">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
11 changes: 4 additions & 7 deletions Tests/Playgrounds/Playgrounds.NetCoreApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Urho;
using Urho.Gui;

namespace Playgrounds.NetCoreApp
{
class Program
{
[DllImport("kernel32.dll")]
static extern IntPtr LoadLibrary(string dllToLoad);

static void Main(string[] args)
{
throw new NotImplementedException("Not fully implemented yet, requires changes in Urho3D (FileSystem)");
Console.WriteLine("Dir: " + Environment.CurrentDirectory);
// the current directory is not "bin" ?? https://github.com/dotnet/project-system/issues/589
// workaround:
var coreDataPak = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location), "CoreData.pak");


new HelloWorld(
new ApplicationOptions(@"C:\prj\urho\Urho3D\Source\bin")
{
AutoloadCoreData = false
}).Run();
}
}

Expand Down

0 comments on commit 3fd7011

Please sign in to comment.