Replace the unmanaged name of native module with the library path
[platform/core/dotnet/launcher.git] / Tizen.Runtime / Tizen.Runtime.Mono.csproj
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="14.0" InitialTargets="CheckConfig" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3         
4         <PropertyGroup>
5                 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6                 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7                 <OutputType>library</OutputType>
8                 <AssemblyName>Tizen.Runtime.Mono</AssemblyName>
9     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
10         </PropertyGroup>
11
12         <PropertyGroup Condition=" '$(Configuration)' == 'Debug'">
13                 <DebugSymbols>true</DebugSymbols>
14                 <DebugType>full</DebugType>
15                 <OutputPath>bin/</OutputPath>
16                 <DefineConstants>DEBUG;TRACE</DefineConstants>
17         </PropertyGroup>
18
19         <PropertyGroup Condition=" '$(Configuration)' == 'Release'">
20                 <DebugType>pdbonly</DebugType>
21                 <Optimize>true</Optimize>
22                 <OutputPath>bin/</OutputPath>
23     <DefineConstants>TRACE</DefineConstants>
24         </PropertyGroup>
25
26 <!-- Roslyn Not Support Assembly Signing yet.
27         <PropertyGroup>
28                 <SignAssembly>true</SignAssembly>
29                 <AssemblyOriginatorKeyFile>Tizen.Runtime.snk</AssemblyOriginatorKeyFile>
30         </PropertyGroup>
31 -->
32
33         <PropertyGroup>
34                 <DefineConstants Condition=" '$(CLOG)' != '' ">$(DefineConstants);CLOG</DefineConstants>
35         </PropertyGroup>
36
37   <ItemGroup>
38     <Reference Include="System" />
39     <Reference Include="System.Core" />
40     <Reference Include="System.Xml.Linq" />
41     <Reference Include="System.Data.DataSetExtensions" />
42     <Reference Include="Microsoft.CSharp" />
43     <Reference Include="System.Data" />
44     <Reference Include="System.Net.Http" />
45     <Reference Include="System.Xml" />
46   </ItemGroup>
47
48         <ItemGroup>
49                 <Compile Include="Tizen.Runtime.Mono/AssemblyManager.cs" />
50                 <Compile Include="Tizen.Runtime/Log.cs" />
51                 <Compile Include="Tizen.Runtime/DefaultConfigAttribute.cs" />
52         </ItemGroup>
53
54         <Target Name="CheckConfig">
55                 <Message Text="MSBuildProjectDirectory = $(MSBuildProjectDirectory)"/>
56         </Target>
57
58         <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
59
60         <Target Name="BeforeCompile">
61                 <ItemGroup>
62                         <AssemblyAttributes Include="DefaultConfigAttribute" Condition=" $(PreloadPath) != '' ">
63                                 <_Parameter1>PreloadPath=$(PreloadPath)</_Parameter1>
64                         </AssemblyAttributes>
65                 </ItemGroup>
66
67                 <WriteCodeFragment AssemblyAttributes="@(AssemblyAttributes)"
68                         Language="C#"
69                         OutputDirectory="$(IntermediateOutputPath)"
70                         OutputFile="Config.cs">
71                         <Output TaskParameter="OutputFile" ItemName="Compile" />
72                 </WriteCodeFragment>
73
74         </Target>
75 </Project>