From: WonYoung Choi Date: Tue, 4 Oct 2016 11:46:06 +0000 (+0900) Subject: Merge devel to devel.release X-Git-Tag: submit/trunk/20170823.075128~105^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68e6d3da493e7e8f64b2b8e8147c70a2853777c6;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Merge devel to devel.release Change-Id: I61628ec860389720847a4b232ac110448bdfbdb9 Signed-off-by: WonYoung Choi --- diff --git a/.gitignore b/.gitignore index 17dd954..46619d5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ obj/ *.exe *.dll *.csproj.user +*.lock.json .vs/ diff --git a/packaging/csapi-network-iotconnectivity.spec b/packaging/csapi-network-iotconnectivity.spec index 1d8a412..bf5a64c 100644 --- a/packaging/csapi-network-iotconnectivity.spec +++ b/packaging/csapi-network-iotconnectivity.spec @@ -1,5 +1,4 @@ -%{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly} -%{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref} +%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework} %if 0%{?tizen_build_devel_mode} %define BUILDCONF Debug @@ -9,7 +8,7 @@ Name: csapi-network-iotconnectivity Summary: Tizen IoT Connectivity API for C# -Version: 1.0.0 +Version: 1.0.1 Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -17,18 +16,15 @@ URL: https://www.tizen.org Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest -# Mono +AutoReqProv: no + BuildRequires: mono-compiler BuildRequires: mono-devel -# .NETCore -%if 0%{?_with_corefx} -AutoReqProv: no -BuildRequires: corefx-managed-32b-ref -%endif +BuildRequires: dotnet-build-tools # C# API Requires -BuildRequires: csapi-tizen +BuildRequires: csapi-tizen-nuget %description Tizen IoTConnectivity API for C# @@ -41,24 +37,39 @@ cp %{SOURCE1} . %build for ASM in %{Assemblies}; do -xbuild $ASM/$ASM.csproj \ -%if 0%{?_with_corefx} - /p:NoStdLib=True \ - /p:TargetFrameworkVersion=v5.0 \ - /p:AddAdditionalExplicitAssemblyReferences=False \ - /p:CoreFxPath=%{dotnet_core_path} \ -%endif - /p:Configuration=%{BUILDCONF} \ - /p:ReferencePath=%{dotnet_assembly_path} +# NuGet Restore +find $ASM/*.project.json -exec nuget restore {} \; +# Build +find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \; +# NuGet Pack +nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF} done %install +# Runtime Binary mkdir -p %{buildroot}%{dotnet_assembly_path} for ASM in %{Assemblies}; do -install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path} +%if 0%{?_with_corefx} + install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path} +%else + install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path} +%endif done +# NuGet +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 nuget +Summary: NuGet package for %{name} +Group: Development/Libraries + +%description nuget +NuGet package for %{name} + +%files nuget +/nuget/*.nupkg diff --git a/src/Tizen.Network.IoTConnectivity/CoreFx.References.targets b/src/Tizen.Network.IoTConnectivity/CoreFx.References.targets deleted file mode 100644 index dab29ec..0000000 --- a/src/Tizen.Network.IoTConnectivity/CoreFx.References.targets +++ /dev/null @@ -1,265 +0,0 @@ - - - - - False - $(CoreFxPath)/Microsoft.Win32.Primitives.dll - - - False - $(CoreFxPath)/System.AppContext.dll - - - False - $(CoreFxPath)/System.Collections.Concurrent.dll - - - False - $(CoreFxPath)/System.Collections.dll - - - False - $(CoreFxPath)/System.ComponentModel.Annotations.dll - - - False - $(CoreFxPath)/System.ComponentModel.dll - - - False - $(CoreFxPath)/System.Console.dll - - - False - $(CoreFxPath)/System.Diagnostics.Debug.dll - - - False - $(CoreFxPath)/System.Diagnostics.Process.dll - - - False - $(CoreFxPath)/System.Diagnostics.Tools.dll - - - False - $(CoreFxPath)/System.Diagnostics.TraceSource.dll - - - False - $(CoreFxPath)/System.Diagnostics.Tracing.dll - - - False - $(CoreFxPath)/System.Dynamic.Runtime.dll - - - False - $(CoreFxPath)/System.Globalization.Calendars.dll - - - False - $(CoreFxPath)/System.Globalization.dll - - - False - $(CoreFxPath)/System.Globalization.Extensions.dll - - - False - $(CoreFxPath)/System.IO.Compression.dll - - - False - $(CoreFxPath)/System.IO.Compression.ZipFile.dll - - - False - $(CoreFxPath)/System.IO.dll - - - False - $(CoreFxPath)/System.IO.FileSystem.dll - - - False - $(CoreFxPath)/System.IO.FileSystem.Primitives.dll - - - False - $(CoreFxPath)/System.IO.FileSystem.Watcher.dll - - - False - $(CoreFxPath)/System.IO.MemoryMappedFiles.dll - - - False - $(CoreFxPath)/System.IO.UnmanagedMemoryStream.dll - - - False - $(CoreFxPath)/System.Linq.dll - - - False - $(CoreFxPath)/System.Linq.Expressions.dll - - - False - $(CoreFxPath)/System.Linq.Parallel.dll - - - False - $(CoreFxPath)/System.Linq.Queryable.dll - - - False - $(CoreFxPath)/System.Net.Http.dll - - - False - $(CoreFxPath)/System.Net.NameResolution.dll - - - False - $(CoreFxPath)/System.Net.Primitives.dll - - - False - $(CoreFxPath)/System.Net.Requests.dll - - - False - $(CoreFxPath)/System.Net.Security.dll - - - False - $(CoreFxPath)/System.Net.Sockets.dll - - - False - $(CoreFxPath)/System.Net.WebHeaderCollection.dll - - - False - $(CoreFxPath)/System.Numerics.Vectors.dll - - - False - $(CoreFxPath)/System.ObjectModel.dll - - - False - $(CoreFxPath)/System.Reflection.DispatchProxy.dll - - - False - $(CoreFxPath)/System.Reflection.dll - - - False - $(CoreFxPath)/System.Reflection.Extensions.dll - - - False - $(CoreFxPath)/System.Reflection.Primitives.dll - - - False - $(CoreFxPath)/System.Reflection.TypeExtensions.dll - - - False - $(CoreFxPath)/System.Resources.ResourceManager.dll - - - False - $(CoreFxPath)/System.Runtime.dll - - - False - $(CoreFxPath)/System.Runtime.Extensions.dll - - - False - $(CoreFxPath)/System.Runtime.Handles.dll - - - False - $(CoreFxPath)/System.Runtime.InteropServices.dll - - - False - $(CoreFxPath)/System.Runtime.InteropServices.RuntimeInformation.dll - - - False - $(CoreFxPath)/System.Runtime.Loader.dll - - - False - $(CoreFxPath)/System.Runtime.Numerics.dll - - - False - $(CoreFxPath)/System.Security.Cryptography.Algorithms.dll - - - False - $(CoreFxPath)/System.Security.Cryptography.Encoding.dll - - - False - $(CoreFxPath)/System.Security.Cryptography.Primitives.dll - - - False - $(CoreFxPath)/System.Security.Cryptography.X509Certificates.dll - - - False - $(CoreFxPath)/System.Text.Encoding.dll - - - False - $(CoreFxPath)/System.Text.Encoding.Extensions.dll - - - False - $(CoreFxPath)/System.Text.RegularExpressions.dll - - - False - $(CoreFxPath)/System.Threading.dll - - - False - $(CoreFxPath)/System.Threading.Tasks.dll - - - False - $(CoreFxPath)/System.Threading.Tasks.Parallel.dll - - - False - $(CoreFxPath)/System.Threading.Thread.dll - - - False - $(CoreFxPath)/System.Threading.ThreadPool.dll - - - False - $(CoreFxPath)/System.Threading.Timer.dll - - - False - $(CoreFxPath)/System.Xml.ReaderWriter.dll - - - False - $(CoreFxPath)/System.Xml.XDocument.dll - - - \ No newline at end of file diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.csproj b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.csproj new file mode 100644 index 0000000..6a0e558 --- /dev/null +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.csproj @@ -0,0 +1,99 @@ + + + + Debug + AnyCPU + {3A809808-3797-40DE-A1C0-5E9ED922F7D6} + Library + Properties + Tizen.Network.IoTConnectivity + Tizen.Network.IoTConnectivity + 512 + v4.5 + + + true + full + true + bin\Debug\Net45\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\Net45\ + TRACE + prompt + 4 + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.project.json b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.project.json new file mode 100644 index 0000000..ab1a0ee --- /dev/null +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.Net45.project.json @@ -0,0 +1,11 @@ +{ + "dependencies": { + "Tizen": "1.0.1" + }, + "frameworks": { + "net45": {} + }, + "runtimes": { + "win": {} + } +} diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.csproj b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.csproj index 0eb151d..b54878e 100644 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.csproj +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.csproj @@ -1,125 +1,107 @@ - - - - - Debug - AnyCPU - {3577EAE8-B409-4BAE-A5DA-C6340BE1DBC2} - Library - Properties - Tizen.Network.IoTConnectivity - Tizen.Network.IoTConnectivity - v4.5 - 512 - - 8.0.30703 - 2.0 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - true - - - Tizen.Network.IoTConnectivity.snk - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - csapi-tizen - ..\..\tizen\Tizen\obj\Debug\Tizen.dll - - - csapi-tizen - ..\..\tizen\Tizen.Internals\bin\Debug\Tizen.Internals.dll - - - - - {B9AA1CB2-F72D-4A30-A33B-A20C850A38A0} - Tizen.Internals - True - - - {7659CA59-410D-41A1-9841-586E88BC78C9} - Tizen - True - - - - - + + + + Debug + AnyCPU + {3577EAE8-B409-4BAE-A5DA-C6340BE1DBC2} + Library + Properties + Tizen.Network.IoTConnectivity + Tizen.Network.IoTConnectivity + 512 + + + .NETStandard + v1.3 + .NETStandard,Version=v1.3 + false + true + $(NoWarn);1701;1702 + + + true + full + true + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + + + Tizen.Network.IoTConnectivity.snk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory) + <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory) + true + + \ No newline at end of file diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.nuspec b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.nuspec new file mode 100644 index 0000000..8d14d43 --- /dev/null +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.nuspec @@ -0,0 +1,16 @@ + + + + Tizen.Network.IoTConnectivity + $version$ + Tizen Developers + Tizen IoTConnectivity API for Tizen.Net + + + + + + + + + diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.project.json b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.project.json new file mode 100644 index 0000000..db7436c --- /dev/null +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity.project.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "NETStandard.Library": "1.6.0", + "Tizen": "1.0.1" + }, + "frameworks": { + "netstandard1.3": {} + } +}