*.exe
*.dll
*.csproj.user
+*.lock.json
.vs/
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Condition=" '$(CoreFxPath)' != '' ">
- <Reference Include="Microsoft.Win32.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/Microsoft.Win32.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.AppContext">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.AppContext.dll</HintPath>
- </Reference>
- <Reference Include="System.Collections.Concurrent">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Collections.Concurrent.dll</HintPath>
- </Reference>
- <Reference Include="System.Collections">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Collections.dll</HintPath>
- </Reference>
- <Reference Include="System.ComponentModel.Annotations">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ComponentModel.Annotations.dll</HintPath>
- </Reference>
- <Reference Include="System.ComponentModel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ComponentModel.dll</HintPath>
- </Reference>
- <Reference Include="System.Console">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Console.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Debug">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Debug.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Process">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Process.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Tools">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Tools.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.TraceSource">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.TraceSource.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Tracing">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Tracing.dll</HintPath>
- </Reference>
- <Reference Include="System.Dynamic.Runtime">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Dynamic.Runtime.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization.Calendars">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.Calendars.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.Compression">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.Compression.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.Compression.ZipFile">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.Compression.ZipFile.dll</HintPath>
- </Reference>
- <Reference Include="System.IO">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem.Watcher">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.Watcher.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.MemoryMappedFiles">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.MemoryMappedFiles.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.UnmanagedMemoryStream">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.UnmanagedMemoryStream.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Expressions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Expressions.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Parallel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Parallel.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Queryable">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Queryable.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Http.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.NameResolution">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.NameResolution.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Requests">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Requests.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Security">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Security.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Sockets">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Sockets.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.WebHeaderCollection">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.WebHeaderCollection.dll</HintPath>
- </Reference>
- <Reference Include="System.Numerics.Vectors">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Numerics.Vectors.dll</HintPath>
- </Reference>
- <Reference Include="System.ObjectModel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ObjectModel.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.DispatchProxy">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.DispatchProxy.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.TypeExtensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.TypeExtensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Resources.ResourceManager">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Resources.ResourceManager.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Handles">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Handles.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.InteropServices">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.InteropServices.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.InteropServices.RuntimeInformation">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Loader">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Loader.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Numerics">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Numerics.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Algorithms">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Algorithms.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Encoding">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Encoding.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.X509Certificates">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.X509Certificates.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.Encoding">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.Encoding.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.Encoding.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.Encoding.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.RegularExpressions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.RegularExpressions.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Tasks">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Tasks.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Tasks.Parallel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Tasks.Parallel.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Thread">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Thread.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.ThreadPool">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.ThreadPool.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Timer">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Timer.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.ReaderWriter">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Xml.ReaderWriter.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.XDocument">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Xml.XDocument.dll</HintPath>
- </Reference>
- </ItemGroup>
-</Project>
\ No newline at end of file
+++ /dev/null
-<Dictionary>
- <Words>
- <Recognized>
- <Word>Tizen</Word>
- </Recognized>
- </Words>
-</Dictionary>
+++ /dev/null
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-
-// Because Tizen.Internals assembly defines friends assembly attribute,
-// Include the Interop class to the Tizen.Internals namespace to avoid conflicts with Interop classes in other assembly.
-namespace Tizen.Internals
-{
- internal static partial class Interop
- {
- internal static partial class Libraries
- {
- public const string Base = "libcapi-base-common.so.0";
- }
-
- internal static partial class CommonError
- {
- [DllImport(Libraries.Base, EntryPoint = "get_last_result")]
- internal static extern int GetLastResult();
-
- [DllImport(Libraries.Base, EntryPoint = "get_error_message")]
- internal static extern IntPtr GetErrorMessage(int errorCode);
- }
- }
-}
+++ /dev/null
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Tizen.Internals")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Samsung Electronics")]
-[assembly: AssemblyProduct("Tizen.Internals")]
-[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-[assembly: ComVisible(false)]
-
-[assembly: Guid("b9aa1cb2-f72d-4a30-a33b-a20c850a38a0")]
-
-[assembly:
- InternalsVisibleTo("Tizen.Applications, PublicKey=" +
- "00240000048000009400000006020000002400005253413100040000010001001b03324ad629ad" +
- "45d9a2cad9b530a5cdb5c9ac4392b427c8fb2dc3a5d389f031956c1a8f506c9db2acfc6197afe3" +
- "978205eaccd7bb9630f40c445bb459b6363d4478a21c529b9889b767523ebbbf2f6c620e0c4f19" +
- "1417fa94c132fcb889263ce072580a6681c6bcedc285b369f41a69d66e266a9526779dee1cbcb8" +
- "f0b790bd"),
-
- InternalsVisibleTo("Tizen.Network, PublicKey=" +
- "002400000480000094000000060200000024000052534131000400000100010031252807b5ef81" +
- "fea7d37b8b8a345df35db5c6820577b598057738cdeee8eafa2efd5dbd8393215d61090091e05e" +
- "8475cbc2d9b7bdb7442cff8079942de9c2dbc5e621ce54b63a2a11d9a4ae961117b0a1ac55cf10" +
- "4e66c3f64edc2aed09eae9af46e70803f1cafbb3f132ea39b0f97e8679374b54d5a7529797e48a" +
- "093e54ae")
-]
-
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
-%{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly}
+%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
%{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref}
%if 0%{?tizen_build_devel_mode}
BuildRequires: corefx-managed-32b-ref
%endif
+BuildRequires: dotnet-build-tools
+
%description
Tizen API for C#
%setup -q
cp %{SOURCE1} .
-%define Assemblies Tizen Tizen.Internals
+%define Assemblies Tizen
%build
+# Build for Net45
for ASM in %{Assemblies}; do
-xbuild $ASM/$ASM.csproj \
+if [ -e $ASM/$ASM.Net45.csproj ]; then
+ xbuild $ASM/$ASM.Net45.csproj \
+ /p:Configuration=%{BUILDCONF} \
+ /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/net45 \
+ /p:OutputPath=bin/net45
+fi
+
+# Build for Dotnet
%if 0%{?_with_corefx}
- /p:NoStdLib=True \
- /p:TargetFrameworkVersion=v5.0 \
- /p:AddAdditionalExplicitAssemblyReferences=False \
- /p:CoreFxPath=%{dotnet_core_path} \
+if [ -e $ASM/$ASM.csproj ]; then
+ xbuild $ASM/$ASM.csproj \
+ /p:Configuration=%{BUILDCONF} \
+ /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/netstandard1.6 \
+ /p:CoreFxPath=%{dotnet_core_path} \
+ /p:OutputPath=bin/netstandard1.6
+fi
%endif
- /p:Configuration=%{BUILDCONF} \
- /p:ReferencePath=%{dotnet_assembly_path}
+
+# Make NuGet package
+dotnet-gbs pack $ASM/$ASM.nuspec --PackageVersion=%{version} --PackageFiles=$ASM/bin
+
done
%install
-mkdir -p %{buildroot}%{dotnet_assembly_path}
+mkdir -p %{buildroot}%{dotnet_assembly_path}/devel
for ASM in %{Assemblies}; do
-install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
+ cp -fr $ASM/bin/* %{buildroot}%{dotnet_assembly_path}/devel
+%if 0%{?_with_corefx}
+ install -p -m 644 $ASM/bin/netstandard1.6/$ASM.dll %{buildroot}%{dotnet_assembly_path}
+%else
+ install -p -m 644 $ASM/bin/net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
+%endif
done
+mkdir -p %{buildroot}/nuget
+install -p -m 644 *.nupkg %{buildroot}/nuget
+
%files
%manifest %{name}.manifest
%license LICENSE
%attr(644,root,root) %{dotnet_assembly_path}/*.dll
+
+%package devel
+Summary: Development package for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+AutoReqProv: no
+
+%description devel
+Development package for %{name}
+
+%files devel
+%{dotnet_assembly_path}/devel/*
+
+%package nuget
+Summary: NuGet package for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description nuget
+NuGet package for %{name}
+
+%files nuget
+/nuget/*.nupkg
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Condition=" '$(CoreFxPath)' != '' ">
- <Reference Include="Microsoft.Win32.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/Microsoft.Win32.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.AppContext">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.AppContext.dll</HintPath>
- </Reference>
- <Reference Include="System.Collections.Concurrent">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Collections.Concurrent.dll</HintPath>
- </Reference>
- <Reference Include="System.Collections">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Collections.dll</HintPath>
- </Reference>
- <Reference Include="System.ComponentModel.Annotations">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ComponentModel.Annotations.dll</HintPath>
- </Reference>
- <Reference Include="System.ComponentModel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ComponentModel.dll</HintPath>
- </Reference>
- <Reference Include="System.Console">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Console.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Debug">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Debug.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Process">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Process.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Tools">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Tools.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.TraceSource">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.TraceSource.dll</HintPath>
- </Reference>
- <Reference Include="System.Diagnostics.Tracing">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Diagnostics.Tracing.dll</HintPath>
- </Reference>
- <Reference Include="System.Dynamic.Runtime">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Dynamic.Runtime.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization.Calendars">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.Calendars.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.dll</HintPath>
- </Reference>
- <Reference Include="System.Globalization.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Globalization.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.Compression">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.Compression.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.Compression.ZipFile">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.Compression.ZipFile.dll</HintPath>
- </Reference>
- <Reference Include="System.IO">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.FileSystem.Watcher">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.FileSystem.Watcher.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.MemoryMappedFiles">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.MemoryMappedFiles.dll</HintPath>
- </Reference>
- <Reference Include="System.IO.UnmanagedMemoryStream">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.IO.UnmanagedMemoryStream.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Expressions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Expressions.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Parallel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Parallel.dll</HintPath>
- </Reference>
- <Reference Include="System.Linq.Queryable">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Linq.Queryable.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Http.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.NameResolution">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.NameResolution.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Requests">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Requests.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Security">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Security.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Sockets">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.Sockets.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.WebHeaderCollection">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Net.WebHeaderCollection.dll</HintPath>
- </Reference>
- <Reference Include="System.Numerics.Vectors">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Numerics.Vectors.dll</HintPath>
- </Reference>
- <Reference Include="System.ObjectModel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.ObjectModel.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.DispatchProxy">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.DispatchProxy.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Reflection.TypeExtensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Reflection.TypeExtensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Resources.ResourceManager">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Resources.ResourceManager.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Handles">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Handles.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.InteropServices">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.InteropServices.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.InteropServices.RuntimeInformation">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Loader">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Loader.dll</HintPath>
- </Reference>
- <Reference Include="System.Runtime.Numerics">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Runtime.Numerics.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Algorithms">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Algorithms.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Encoding">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Encoding.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.Primitives">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Security.Cryptography.X509Certificates">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Security.Cryptography.X509Certificates.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.Encoding">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.Encoding.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.Encoding.Extensions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.Encoding.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Text.RegularExpressions">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Text.RegularExpressions.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Tasks">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Tasks.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Tasks.Parallel">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Tasks.Parallel.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Thread">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Thread.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.ThreadPool">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.ThreadPool.dll</HintPath>
- </Reference>
- <Reference Include="System.Threading.Timer">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Threading.Timer.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.ReaderWriter">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Xml.ReaderWriter.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.XDocument">
- <Private>False</Private>
- <HintPath>$(CoreFxPath)/System.Xml.XDocument.dll</HintPath>
- </Reference>
- </ItemGroup>
-</Project>
\ No newline at end of file
+++ /dev/null
-<Dictionary>
- <Words>
- <Recognized>
- <Word>Tizen</Word>
- </Recognized>
- </Words>
-</Dictionary>
--- /dev/null
+// Copyright 2016 by Samsung Electronics, Inc.,
+//
+// This software is the confidential and proprietary information
+// of Samsung Electronics, Inc. ("Confidential Information"). You
+// shall not disclose such Confidential Information and shall use
+// it only in accordance with the terms of the license agreement
+// you entered into with Samsung.
+
+using System;
+using System.Runtime.InteropServices;
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Base = "libcapi-base-common.so.0";
+ }
+
+ internal static partial class CommonError
+ {
+ [DllImport(Libraries.Base, EntryPoint = "get_last_result")]
+ internal static extern int GetLastResult();
+
+ [DllImport(Libraries.Base, EntryPoint = "get_error_message")]
+ internal static extern IntPtr GetErrorMessage(int errorCode);
+ }
+}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{B9AA1CB2-F72D-4A30-A33B-A20C850A38A0}</ProjectGuid>
+ <ProjectGuid>{3A809808-3797-40DE-A1C0-5E9ED922F7D6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Tizen.Internals</RootNamespace>
- <AssemblyName>Tizen.Internals</AssemblyName>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <RootNamespace>Tizen</RootNamespace>
+ <AssemblyName>Tizen</AssemblyName>
<FileAlignment>512</FileAlignment>
- <TargetFrameworkProfile />
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>bin\Debug\Tizen.Internals.XML</DocumentationFile>
- <CodeAnalysisRuleSet>ExtendedDesignGuidelineRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <OutputPath>bin\Release\Net45\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
- <AssemblyOriginatorKeyFile>Tizen.Internals.snk</AssemblyOriginatorKeyFile>
+ <AssemblyOriginatorKeyFile>Tizen.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
- <Import Project="CoreFx.References.targets" />
- <ItemGroup Condition=" '$(CoreFxPath)' == '' ">
- <Reference Include="System"/>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Interop\Interop.CommonError.cs" />
- <Compile Include="Tizen.Internals.Errors\ErrorFacts.cs" />
+ <Compile Include="Interop\Interop.Dlog.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Common\Color.cs" />
<Compile Include="Tizen.Internals.Errors\ErrorCode.cs" />
+ <Compile Include="Tizen.Internals.Errors\ErrorFacts.cs" />
+ <Compile Include="Tizen\Log.cs" />
</ItemGroup>
<ItemGroup>
- <None Include="Tizen.Internals.snk" />
- </ItemGroup>
- <ItemGroup>
- <CodeAnalysisDictionary Include="CustomDictionary.xml" />
+ <None Include="Tizen.snk" />
</ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets" Condition="Exists('$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
--- /dev/null
+{
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Tizen</RootNamespace>
<AssemblyName>Tizen</AssemblyName>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
- <TargetFrameworkProfile />
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>bin\Debug\Tizen.XML</DocumentationFile>
- <CodeAnalysisRuleSet>ExtendedDesignGuidelineRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<PropertyGroup>
<AssemblyOriginatorKeyFile>Tizen.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
- <Import Project="CoreFx.References.targets" />
- <ItemGroup Condition=" '$(CoreFxPath)' == '' ">
- <Reference Include="System" />
- </ItemGroup>
<ItemGroup>
+ <Compile Include="Interop\Interop.CommonError.cs" />
<Compile Include="Interop\Interop.Dlog.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Tizen.Common\Color.cs" />
+ <Compile Include="Tizen.Internals.Errors\ErrorCode.cs" />
+ <Compile Include="Tizen.Internals.Errors\ErrorFacts.cs" />
<Compile Include="Tizen\Log.cs" />
- <Compile Include="GlobalSuppressions.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="Tizen.nuspec" />
+ <None Include="Tizen.project.json" />
<None Include="Tizen.snk" />
</ItemGroup>
- <ItemGroup>
- <CodeAnalysisDictionary Include="CustomDictionary.xml" />
- </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets" Condition="Exists('$(MSBuildExtensionsPath)\Tizen\Tizen.CSharp.GBS.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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="AfterBuild">
</Target>
-->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two
+ properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and
+ to prevent it from outputting a warning (MSB3644).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen</id>
+ <version>$version$</version>
+ <authors>Tizen Developers</authors>
+ <description>Common modules of the Device API for Tizen.Net</description>
+ </metadata>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0"
+ },
+ "frameworks": {
+ "netstandard1.6": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}