|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 | <PropertyGroup>
|
3 |
| - <AssemblyName>Plugin.Core.SamplePlugin</AssemblyName> |
| 3 | + <AssemblyName>Plugin.Core.SamplePlugin.Net</AssemblyName> |
4 | 4 | <OutputType>Library</OutputType>
|
5 | 5 | <LangVersion>9.0</LangVersion>
|
6 | 6 | </PropertyGroup>
|
7 |
| - <PropertyGroup> |
8 |
| - <GeneratedCodePath>$(RBFX_BINARY_DIR)Source/Urho3D/</GeneratedCodePath> |
9 |
| - </PropertyGroup> |
10 | 7 | <ItemGroup>
|
11 |
| - <BindingsSourceCodeUrho3D Include="$(GeneratedCodePath)Urho3DCSharp/*.cs" /> |
12 |
| - <BindingsSourceCodeImGui Include="$(GeneratedCodePath)ImGuiCSharp/*.cs" /> |
13 |
| - <Compile Include="Managed/**/*.cs" /> |
14 |
| - <Compile Include="$(RBFX_BINARY_DIR)Source/Urho3D/Urho3DCSharp/Managed/*.cs" /> |
| 8 | + <BindingsSourceCode Include="$(CMAKE_BINARY_DIR)Plugin.Core.SamplePluginCSharp/*.cs" /> |
15 | 9 | </ItemGroup>
|
16 |
| - <Choose> |
17 |
| - <When Condition="$(TargetFramework) == 'netstandard2.0'"> |
18 |
| - <ItemGroup> |
19 |
| - <PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" /> |
20 |
| - </ItemGroup> |
21 |
| - </When> |
22 |
| - </Choose> |
23 |
| - <Target Name="GatherBuildFilesUrho3D" BeforeTargets="BeforeCompile"> |
24 |
| - <CreateItem Include="$([System.IO.Directory]::GetFiles("$(GeneratedCodePath)Urho3DCSharp", "*.cs"))"> |
25 |
| - <Output TaskParameter="Include" ItemName="Compile" /> |
26 |
| - </CreateItem> |
27 |
| - </Target> |
28 |
| - <Target Name="GatherBuildFilesImGui" BeforeTargets="BeforeCompile" Condition="Exists('$(GeneratedCodePath)ImGuiCSharp')"> |
29 |
| - <CreateItem Include="$([System.IO.Directory]::GetFiles("$(GeneratedCodePath)ImGuiCSharp", "*.cs"))"> |
| 10 | + <Target Name="GatherBuildFiles" BeforeTargets="BeforeCompile"> |
| 11 | + <CreateItem Include="$([System.IO.Directory]::GetFiles("$(CMAKE_BINARY_DIR)Plugin.Core.SamplePluginCSharp", "*.cs"))"> |
30 | 12 | <Output TaskParameter="Include" ItemName="Compile" />
|
31 | 13 | </CreateItem>
|
32 | 14 | </Target>
|
| 15 | + <ItemGroup> |
| 16 | + <Reference Include="Urho3DNet"> |
| 17 | + <HintPath>$(URHO3D_SDK_PATH)/bin/Debug/Urho3DNet.dll</HintPath> |
| 18 | + </Reference> |
| 19 | + </ItemGroup> |
33 | 20 | </Project>
|
0 commit comments