Basename bug fixed
[platform/core/dotnet/launcher.git] / Tizen.Runtime / Tizen.Runtime.Coreclr.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.Coreclr</AssemblyName>
9     </PropertyGroup>
10
11   <PropertyGroup>
12     <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
13     <TargetFrameworkVersion>v1.5</TargetFrameworkVersion>
14     <NuGetTargetMoniker>.NETStandard,Version=v1.5</NuGetTargetMoniker>
15     <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
16     <NoStdLib>true</NoStdLib>
17     <NoWarn>$(NoWarn);1701;1702</NoWarn>
18   </PropertyGroup>
19
20     <PropertyGroup Condition=" '$(Configuration)' == 'Debug'">
21         <DebugSymbols>true</DebugSymbols>
22         <DebugType>full</DebugType>
23         <OutputPath>bin/</OutputPath>
24         <DefineConstants>DEBUG;TRACE</DefineConstants>
25     </PropertyGroup>
26
27     <PropertyGroup Condition=" '$(Configuration)' == 'Release'">
28         <DebugType>pdbonly</DebugType>
29         <Optimize>true</Optimize>
30         <OutputPath>bin/</OutputPath>
31     <DefineConstants>TRACE</DefineConstants>
32     </PropertyGroup>
33
34 <!-- Roslyn Not Support Assembly Signing yet.
35     <PropertyGroup>
36         <SignAssembly>true</SignAssembly>
37         <AssemblyOriginatorKeyFile>Tizen.Runtime.snk</AssemblyOriginatorKeyFile>
38     </PropertyGroup>
39 -->
40
41     <PropertyGroup>
42         <DefineConstants Condition=" '$(CLOG)' != '' ">$(DefineConstants);CLOG</DefineConstants>
43     </PropertyGroup>
44
45     <ItemGroup>
46         <Compile Include="Tizen.Runtime.Coreclr/AssemblyManager.cs" />
47         <Compile Include="Tizen.Runtime.Coreclr/AssemblyLoader.cs" />
48         <Compile Include="Tizen.Runtime/Log.cs" />
49         <Compile Include="Tizen.Runtime/DefaultConfigAttribute.cs" />
50     </ItemGroup>
51
52     <Target Name="CheckConfig">
53         <Message Text="MSBuildProjectDirectory = $(MSBuildProjectDirectory)"/>
54     </Target>
55
56   <ItemGroup>
57     <None Include="Tizen.Runtime.Coreclr.project.json" />
58   </ItemGroup>
59
60     <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
61
62   <PropertyGroup>
63     <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
64        https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
65     -->
66     <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two
67        properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and
68        to prevent it from outputting a warning (MSB3644).
69     -->
70     <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
71     <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
72     <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
73   </PropertyGroup>
74
75     <Target Name="BeforeCompile">
76         <ItemGroup>
77             <AssemblyAttributes Include="DefaultConfigAttribute" Condition=" $(PreloadPath) != '' ">
78                 <_Parameter1>PreloadPath=$(PreloadPath)</_Parameter1>
79             </AssemblyAttributes>
80         </ItemGroup>
81
82         <WriteCodeFragment AssemblyAttributes="@(AssemblyAttributes)"
83             Language="C#"
84             OutputDirectory="$(IntermediateOutputPath)"
85             OutputFile="Config.cs">
86             <Output TaskParameter="OutputFile" ItemName="Compile" />
87         </WriteCodeFragment>
88
89     </Target>
90 </Project>