Fix build props and targets of Tizen.NET nuget package 92/152492/1 preview1-00252
authorWonyoung Choi <wy80.choi@samsung.com>
Tue, 26 Sep 2017 08:13:12 +0000 (17:13 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Tue, 26 Sep 2017 08:14:06 +0000 (17:14 +0900)
Change-Id: I84ed8446baef99997d13e10a7547e3b7c6341907

pkg/build/Tizen.NET.props [deleted file]
pkg/build/Tizen.NET.targets [deleted file]
pkg/build/tizen40/Tizen.NET.props
pkg/build/tizen40/Tizen.NET.targets

diff --git a/pkg/build/Tizen.NET.props b/pkg/build/Tizen.NET.props
deleted file mode 100644 (file)
index 5f2f172..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-
-  <PropertyGroup>
-    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
-  </PropertyGroup>
-
-  <PropertyGroup>
-    <TizenNETPackageName>Tizen.NET</TizenNETPackageName>
-    <TizenNETPackageVersion>4.0.0</TizenNETPackageVersion>
-  </PropertyGroup>
-
-</Project>
diff --git a/pkg/build/Tizen.NET.targets b/pkg/build/Tizen.NET.targets
deleted file mode 100644 (file)
index 6afc032..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-
-  <PropertyGroup>
-    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
-  </PropertyGroup>
-
-  <!-- TBD -->
-
-</Project>
\ No newline at end of file
index e75cfc972b9a7088b6316d6c49c09f14e1ef87a9..14225f637c7e5a21b4824a26fd22f1ebfe39b1c6 100644 (file)
@@ -4,16 +4,9 @@
     <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 e745ed842f2d69f9338770c57b84488ffa124fba..76995dcebcc3e1aa679eb6ff716ba322b5c3f7b0 100644 (file)
@@ -4,23 +4,39 @@
     <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
   </PropertyGroup>
 
+  <PropertyGroup>
+    <BundledNETStandardPackageVersion Condition="'$(BundledNETStandardPackageVersion)' == ''">2.0.0</BundledNETStandardPackageVersion>
+    <BundledNETCoreAppPackageVersion Condition="'$(BundledNETCoreAppPackageVersion)' == ''">2.0.0</BundledNETCoreAppPackageVersion>
+  </PropertyGroup>
+
+  <PropertyGroup>
+    <DisableStandardFrameworkResolution>true</DisableStandardFrameworkResolution>
+    <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+    <TargetExt Condition="'$(TargetExt)' == ''">.dll</TargetExt>
+    <GenerateDependencyFile Condition=" '$(GenerateDependencyFile)' == '' ">true</GenerateDependencyFile>
+    <CopyLocalLockFileAssemblies Condition="'$(CopyLocalLockFileAssemblies)' == ''">false</CopyLocalLockFileAssemblies>
+  </PropertyGroup>
+
   <!--
     Tizen4.0 TFM supports NETStandard2.0. However NETStandard.Library does not
     provide reference assemblies when referenced by other TFMs.
     So, the same reference assemblies are provided directly from Tizen.NET.
     These reference assemblies came from NETStandard.Library 2.0.0.
   -->
-
-  <ItemGroup>
+  <ItemGroup  Condition="'$(OutputType)' != 'Exe'">
     <Reference Include="$(MSBuildThisFileDirectory)\ref\*.dll">
       <Private>false</Private>
       <Visible>false</Visible>
       <Facade Condition="'%(FileName)' != 'netstandard'">true</Facade>
-      <NuGetPackageId>$(TizenNETPackageName)</NuGetPackageId>
-      <NuGetPackageVersion>$(TizenNETPackageVersion)</NuGetPackageVersion>
+      <NuGetPackageId>NETStandard.Library</NuGetPackageId>
+      <NuGetPackageVersion>$(BundledNETStandardPackageVersion)</NuGetPackageVersion>
     </Reference>
   </ItemGroup>
 
+  <ItemGroup Condition="'$(OutputType)' != 'Exe'">
+    <PackageReference Include="NETStandard.Library" Version="$(BundledNETStandardPackageVersion)" IsImplicitlyDefined="true" />
+  </ItemGroup>
+
   <!--
     Tizen platform supports .NETCore 2.0 runtime.
     In application, NETCoreApp2.0 APIs are also available.
   </PropertyGroup>
 
   <ItemGroup Condition="'$(OutputType)' == 'Exe'">
-    <PackageReference Include="Microsoft.NETCore.App" Version="2.0.0" IsImplicitlyDefined="true" />
+    <PackageReference Include="Microsoft.NETCore.App" Version="$(BundledNETCoreAppPackageVersion)" IsImplicitlyDefined="true" />
   </ItemGroup>
 
-  <!-- Import common targets -->
-  <Import Project="$(MSBuildThisFileDirectory)..\Tizen.NET.targets" />
-
 </Project>
\ No newline at end of file