Add netcoreapp2.0 supports in tizen40 TFM if OutputType is Exe 39/146939/1
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 31 Aug 2017 08:14:55 +0000 (17:14 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 31 Aug 2017 08:14:55 +0000 (17:14 +0900)
Change-Id: I7686a6f9e1c126c35fae341b2807a232e63fc112

pkg/Tizen.NET.Private.nuspec
pkg/Tizen.NET.nuspec
pkg/build/tizen40/Tizen.NET.props
pkg/build/tizen40/Tizen.NET.targets

index 662e29e..08e8ef9 100644 (file)
@@ -13,7 +13,6 @@
     <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
   </metadata>
   <files>
-    <file src="pkg\PlatformFileList.txt" />
     <file src="pkg\build\**" target="build" />
     <file src="Artifacts\bin\*.dll" target="lib\netstandard1.6" />
     <file src="Artifacts\bin\*.pdb" target="lib\netstandard1.6" />
index a00f3a2..8511a4b 100644 (file)
@@ -13,7 +13,6 @@
     <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
   </metadata>
   <files>
-    <file src="pkg\PlatformFileList.txt" />
     <file src="pkg\build\**" target="build" />
     <file src="Artifacts\bin\ElmSharp.dll" target="lib\netstandard1.6" />
     <file src="Artifacts\bin\ElmSharp.pdb" target="lib\netstandard1.6" />
index b47da45..e75cfc9 100644 (file)
@@ -4,12 +4,16 @@
     <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
   </PropertyGroup>
 
+  <!--
+    Properties required to use Microsoft.NET.Sdk as is.
+  -->
   <PropertyGroup>
     <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     <_IsNETCoreOrNETStandard>true</_IsNETCoreOrNETStandard>
   </PropertyGroup>
 
+  <!-- Import common props -->
   <Import Project="$(MSBuildThisFileDirectory)..\Tizen.NET.props" />
 
 </Project>
index e323041..e745ed8 100644 (file)
     </Reference>
   </ItemGroup>
 
+  <!--
+    Tizen platform supports .NETCore 2.0 runtime.
+    In application, NETCoreApp2.0 APIs are also available.
+  -->
+  <PropertyGroup Condition="'$(OutputType)' == 'Exe'">
+    <NoWarn>$(NoWarn);NU1701</NoWarn>
+    <AssetTargetFallback>netcoreapp2.0</AssetTargetFallback>
+  </PropertyGroup>
+
+  <ItemGroup Condition="'$(OutputType)' == 'Exe'">
+    <PackageReference Include="Microsoft.NETCore.App" Version="2.0.0" IsImplicitlyDefined="true" />
+  </ItemGroup>
+
+  <!-- Import common targets -->
   <Import Project="$(MSBuildThisFileDirectory)..\Tizen.NET.targets" />
 
 </Project>
\ No newline at end of file