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">
5 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7 <OutputType>library</OutputType>
8 <AssemblyName>Tizen.Runtime.Coreclr</AssemblyName>
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>
20 <PropertyGroup Condition=" '$(Configuration)' == 'Debug'">
21 <DebugSymbols>true</DebugSymbols>
22 <DebugType>full</DebugType>
23 <OutputPath>bin/</OutputPath>
24 <DefineConstants>DEBUG;TRACE</DefineConstants>
27 <PropertyGroup Condition=" '$(Configuration)' == 'Release'">
28 <DebugType>pdbonly</DebugType>
29 <Optimize>true</Optimize>
30 <OutputPath>bin/</OutputPath>
31 <DefineConstants>TRACE</DefineConstants>
34 <!-- Roslyn Not Support Assembly Signing yet.
36 <SignAssembly>true</SignAssembly>
37 <AssemblyOriginatorKeyFile>Tizen.Runtime.snk</AssemblyOriginatorKeyFile>
42 <DefineConstants Condition=" '$(CLOG)' != '' ">$(DefineConstants);CLOG</DefineConstants>
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" />
52 <Target Name="CheckConfig">
53 <Message Text="MSBuildProjectDirectory = $(MSBuildProjectDirectory)"/>
57 <None Include="Tizen.Runtime.Coreclr.project.json" />
60 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
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
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).
70 <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
71 <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
72 <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
75 <Target Name="BeforeCompile">
77 <AssemblyAttributes Include="DefaultConfigAttribute" Condition=" $(PreloadPath) != '' ">
78 <_Parameter1>PreloadPath=$(PreloadPath)</_Parameter1>
82 <WriteCodeFragment AssemblyAttributes="@(AssemblyAttributes)"
84 OutputDirectory="$(IntermediateOutputPath)"
85 OutputFile="Config.cs">
86 <Output TaskParameter="OutputFile" ItemName="Compile" />