Fix project files to support netstandard 1.6
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.WidgetApplication / Tizen.Applications.WidgetApplication.csproj
index 6fda119..ba98e70 100755 (executable)
@@ -1,29 +1,37 @@
 <?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
   <PropertyGroup>\r
+    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
-    <ProjectGuid>{663C5A3D-E631-4987-AEE7-F498C56A40FC}</ProjectGuid>\r
+    <ProductVersion>8.0.30703</ProductVersion>\r
+    <SchemaVersion>2.0</SchemaVersion>\r
+    <ProjectGuid>{B96DCE41-7A6D-45A5-8BB8-E035186B5092}</ProjectGuid>\r
     <OutputType>Library</OutputType>\r
     <AppDesignerFolder>Properties</AppDesignerFolder>\r
-    <RootNamespace>\r
-    </RootNamespace>\r
+    <RootNamespace>Tizen.Applications.WidgetApplication</RootNamespace>\r
     <AssemblyName>Tizen.Applications.WidgetApplication</AssemblyName>\r
-    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>\r
     <FileAlignment>512</FileAlignment>\r
+    <DefaultLanguage>en-US</DefaultLanguage>\r
+  </PropertyGroup>\r
+  <PropertyGroup>\r
+    <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>\r
+    <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>\r
+    <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>\r
+    <TargetFrameworkMoniker>.NETStandard,Version=v1.6</TargetFrameworkMoniker>\r
+    <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
+    <NoStdLib>true</NoStdLib>\r
+    <NoWarn>$(NoWarn);1701</NoWarn>\r
+    <UseVSHostingProcess>false</UseVSHostingProcess>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
     <DebugSymbols>true</DebugSymbols>\r
     <DebugType>full</DebugType>\r
-    <Optimize>true</Optimize>\r
+    <Optimize>false</Optimize>\r
     <OutputPath>bin\Debug\</OutputPath>\r
     <DefineConstants>DEBUG;TRACE</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>\r
-    <DocumentationFile>bin\Debug\Tizen.Applications.WidgetApplication.XML</DocumentationFile>\r
-    <CodeAnalysisRuleSet>ExtendedDesignGuidelineRules.ruleset</CodeAnalysisRuleSet>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
     <DebugType>pdbonly</DebugType>\r
     <DefineConstants>TRACE</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>\r
-  </PropertyGroup>\r
-  <PropertyGroup>\r
-    <SignAssembly>true</SignAssembly>\r
-  </PropertyGroup>\r
-  <PropertyGroup>\r
-    <AssemblyOriginatorKeyFile>Tizen.Applications.WidgetApplication.snk</AssemblyOriginatorKeyFile>\r
   </PropertyGroup>\r
-  <Import Project="CoreFx.References.targets" />\r
-  <ItemGroup Condition=" '$(CoreFxPath)' == '' ">\r
-    <Reference Include="System" />\r
-    <Reference Include="System.Core" />\r
-    <Reference Include="System.Xml.Linq" />\r
-    <Reference Include="System.Data.DataSetExtensions" />\r
-    <Reference Include="Microsoft.CSharp" />\r
-    <Reference Include="System.Data" />\r
-    <Reference Include="System.Net.Http" />\r
-    <Reference Include="System.Xml" />\r
-    <Reference Include="Tizen.Applications" />\r
+  <ItemGroup>\r
+    <None Include="Tizen.Applications.WidgetApplication.project.json" />\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <Compile Include="GlobalSuppressions.cs" />\r
     <Compile Include="Interop\Interop.Libraries.cs" />\r
     <Compile Include="Interop\Interop.Widget.cs" />\r
     <Compile Include="Properties\AssemblyInfo.cs" />\r
-    <Compile Include="Tizen.Applications.CoreBackend\WidgetCoreBackend.cs" />\r
     <Compile Include="Tizen.Applications\WidgetApplication.cs" />\r
-    <Compile Include="Tizen.Applications\WidgetType.cs" />\r
     <Compile Include="Tizen.Applications\WidgetBase.cs" />\r
+    <Compile Include="Tizen.Applications.CoreBackend\WidgetCoreBackend.cs" />\r
+    <Compile Include="Tizen.Applications\WidgetType.cs" />\r
   </ItemGroup>\r
-  <ItemGroup>\r
-    <None Include="Tizen.Applications.WidgetApplication.snk" />\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <CodeAnalysisDictionary Include="CustomDictionary.xml" />\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <Reference Include="Tizen">\r
-      <HintPath>..\..\tizen\Tizen\bin\Debug\Tizen.dll</HintPath>\r
-    </Reference>\r
-    <Reference Include="Tizen.Internals">\r
-      <HintPath>..\..\tizen\Tizen.Internals\bin\Debug\Tizen.Internals.dll</HintPath>\r
-    </Reference>\r
-    <Reference Include="Tizen.UI">\r
-      <HintPath>..\..\uifw\Tizen.UI\bin\Debug\Tizen.UI.dll</HintPath>\r
-    </Reference>\r
-    <Reference Include="Tizen.Applications">\r
-      <HintPath>..\..\task\application\Tizen.Applications\obj\Debug\Tizen.Applications.dll</HintPath>\r
-    </Reference>\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <ProjectReference Include="..\..\tizen\Tizen.Internals\Tizen.Internals.csproj">\r
-      <Project>{b9aa1cb2-f72d-4a30-a33b-a20c850a38a0}</Project>\r
-      <Name>Tizen.Internals</Name>\r
-    </ProjectReference>\r
-    <ProjectReference Include="..\..\tizen\Tizen\Tizen.csproj">\r
-      <Project>{7659ca59-410d-41a1-9841-586e88bc78c9}</Project>\r
-      <Name>Tizen</Name>\r
-    </ProjectReference>\r
-    <ProjectReference Include="..\..\uifw\Tizen.UI\Tizen.UI.csproj">\r
-      <Project>{d34841f9-046b-4dbf-9698-143386c24f78}</Project>\r
-      <Name>Tizen.UI</Name>\r
-    </ProjectReference>\r
-    <ProjectReference Include="..\..\application\Tizen.Applications\Tizen.Applications.csproj">\r
-      <Project>{d2d1a3ce-000e-4ab3-81c4-a8a44a008989}</Project>\r
-      <Name>Tizen.Applications</Name>\r
-    </ProjectReference>\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <WCFMetadata Include="Service References\" />\r
-  </ItemGroup>\r
+  <Import Project="$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets" Condition="Exists('$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets')" />\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
+       Other similar extension points exist, see Microsoft.Common.targets.\r
+  <Target Name="BeforeBuild">\r
+  </Target>\r
+  <Target Name="AfterBuild">\r
+  </Target>\r
   -->\r
+  <PropertyGroup>\r
+    <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and\r
+                        https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild\r
+               -->\r
+    <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two\r
+                        properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and\r
+                        to prevent it from outputting a warning (MSB3644).\r
+               -->\r
+    <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
+    <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
+    <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
+  </PropertyGroup>\r
+  <!-- Include tasks for Tizen -->\r
+  <PropertyGroup>\r
+    <TizenBuildPath>$(MSBuildExtensionsPath)\Tizen</TizenBuildPath>\r
+    <TizenToolsPath>$(TizenBuildPath)\bin</TizenToolsPath>\r
+  </PropertyGroup>\r
+  <UsingTask TaskName="Tizen.Tasks.SignPackage.TizenCleanPackageSource" AssemblyFile="$(TizenToolsPath)\Tizen.Tasks.SignPackage.dll" />\r
+  <UsingTask TaskName="Tizen.Tasks.SignPackage.TizenPreparePackageManifest" AssemblyFile="$(TizenToolsPath)\Tizen.Tasks.SignPackage.dll" />\r
+  <UsingTask TaskName="Tizen.Tasks.SignPackage.TizenPreparePackageSource" AssemblyFile="$(TizenToolsPath)\Tizen.Tasks.SignPackage.dll" />\r
+  <UsingTask TaskName="Tizen.Tasks.SignPackage.TizenSignPackage" AssemblyFile="$(TizenToolsPath)\Tizen.Tasks.SignPackage.dll" />\r
+  <!-- Task to clean package source -->\r
+  <Target Name="_TizenCleanPkgSrc">\r
+    <TizenCleanPackageSource SolutionPath="$(SolutionPath)" ProjectPath="$(MSBuildProjectFullPath)" />\r
+  </Target>\r
+  <!-- Task to prepare tizen-manifest.xml file -->\r
+  <Target Name="_TizenPrepManifest">\r
+    <TizenPreparePackageManifest SolutionPath="$(SolutionPath)" ProjectPath="$(MSBuildProjectFullPath)" />\r
+  </Target>\r
+  <!-- Task to prepare package sources(executable, dlls, resource files) -->\r
+  <Target Name="_TizenPrepPkgSrc">\r
+    <TizenPreparePackageSource SolutionPath="$(SolutionPath)" ProjectPath="$(MSBuildProjectFullPath)" AssemblyName="$(AssemblyName)" TargetPath="$(TargetPath)" />\r
+  </Target>\r
+  <!-- Task to signing and packaging -->\r
+  <Target Name="_TizenSignPackge">\r
+    <TizenSignPackage SolutionPath="$(SolutionPath)" ProjectPath="$(MSBuildProjectFullPath)" SolutionName="$(SolutionName)" AuthorCertificate="$(AuthorCertificate)" AuthorPasswd="$(AuthorPasswd)" DistribCertificate="$(DistribCertificate)" DistribPasswd="$(DistribPasswd)" />\r
+  </Target>\r
 </Project>
\ No newline at end of file