summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2016-10-04 23:04:07 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2016-10-05 18:36:30 +0900
commit73aca49f218841b3e02e64dda4a71e46333ec07b (patch)
tree2e336de6167ebff5b13c68a850ae335d9f9310df
parent172fa60b314bd934234938bbdede1cfe2caee950 (diff)
downloadsecurity-73aca49f218841b3e02e64dda4a71e46333ec07b.tar.gz
security-73aca49f218841b3e02e64dda4a71e46333ec07b.tar.bz2
security-73aca49f218841b3e02e64dda4a71e46333ec07b.zip
Use nuget restore to solve dependencies
Change-Id: I8d0dbd933654328ca7b08392978ac36e504d7534 Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
-rw-r--r--Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.csproj13
-rw-r--r--Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.project.json2
-rw-r--r--Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.csproj27
-rw-r--r--Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.nuspec6
-rw-r--r--Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.project.json7
-rw-r--r--Tizen.Security/Tizen.Security.Net45.csproj13
-rw-r--r--Tizen.Security/Tizen.Security.Net45.project.json2
-rw-r--r--Tizen.Security/Tizen.Security.csproj27
-rw-r--r--Tizen.Security/Tizen.Security.nuspec4
-rw-r--r--Tizen.Security/Tizen.Security.project.json7
-rw-r--r--packaging/csapi-security.spec67
11 files changed, 69 insertions, 106 deletions
diff --git a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.csproj b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.csproj
index 06e14e0..ee444b0 100644
--- a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.csproj
+++ b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.csproj
@@ -85,13 +85,12 @@
<None Include="Tizen.Security.SecureRepository.Net45.project.json" />
<None Include="Tizen.Security.SecureRepository.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.
- <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.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
</Project> \ No newline at end of file
diff --git a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.project.json b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.project.json
index d9af4f0..ab1a0ee 100644
--- a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.project.json
+++ b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.Net45.project.json
@@ -1,6 +1,6 @@
{
"dependencies": {
- "Tizen": "1.0.0"
+ "Tizen": "1.0.1"
},
"frameworks": {
"net45": {}
diff --git a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.csproj b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.csproj
index 83bf05e..e8a466a 100644
--- a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.csproj
+++ b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.csproj
@@ -11,8 +11,8 @@
</PropertyGroup>
<PropertyGroup>
<TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
- <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>
- <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<NoStdLib>true</NoStdLib>
<NoWarn>$(NoWarn);1701;1702</NoWarn>
@@ -92,22 +92,21 @@
<None Include="Tizen.Security.SecureRepository.project.json" />
<None Include="Tizen.Security.SecureRepository.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.
- <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.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <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
+ <!-- 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).
+ <!-- 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>
diff --git a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.nuspec b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.nuspec
index ab14369..2440667 100644
--- a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.nuspec
+++ b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.nuspec
@@ -6,7 +6,11 @@
<authors>Tizen Developers</authors>
<description>SecureRepository API for Tizen.Net</description>
<dependencies>
- <dependency id="Tizen" version="1.0.0" />
+ <dependency id="Tizen" version="1.0.1" />
</dependencies>
</metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Security.SecureRepository.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Security.SecureRepository.dll" target="lib/net45" />
+ </files>
</package>
diff --git a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.project.json b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.project.json
index beb9e15..db7436c 100644
--- a/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.project.json
+++ b/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository.project.json
@@ -1,12 +1,9 @@
{
"dependencies": {
"NETStandard.Library": "1.6.0",
- "Tizen": "1.0.0"
+ "Tizen": "1.0.1"
},
"frameworks": {
- "netstandard1.6": {}
- },
- "runtimes": {
- "win": {}
+ "netstandard1.3": {}
}
}
diff --git a/Tizen.Security/Tizen.Security.Net45.csproj b/Tizen.Security/Tizen.Security.Net45.csproj
index 26c8ca3..25fae7c 100644
--- a/Tizen.Security/Tizen.Security.Net45.csproj
+++ b/Tizen.Security/Tizen.Security.Net45.csproj
@@ -57,13 +57,12 @@
<None Include="Tizen.Security.Net45.project.json" />
<None Include="Tizen.Security.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.
- <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.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
</Project> \ No newline at end of file
diff --git a/Tizen.Security/Tizen.Security.Net45.project.json b/Tizen.Security/Tizen.Security.Net45.project.json
index 02716e2..3910e25 100644
--- a/Tizen.Security/Tizen.Security.Net45.project.json
+++ b/Tizen.Security/Tizen.Security.Net45.project.json
@@ -1,6 +1,6 @@
{
"dependencies": {
- "Tizen.Applications": "1.0.0"
+ "Tizen.Applications": "1.0.1"
},
"frameworks": {
"net45": {}
diff --git a/Tizen.Security/Tizen.Security.csproj b/Tizen.Security/Tizen.Security.csproj
index 0361e31..44e7abc 100644
--- a/Tizen.Security/Tizen.Security.csproj
+++ b/Tizen.Security/Tizen.Security.csproj
@@ -11,8 +11,8 @@
</PropertyGroup>
<PropertyGroup>
<TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
- <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>
- <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<NoStdLib>true</NoStdLib>
<NoWarn>$(NoWarn);1701;1702</NoWarn>
@@ -54,22 +54,21 @@
<None Include="Tizen.Security.project.json" />
<None Include="Tizen.Security.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.
- <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.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <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
+ <!-- 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).
+ <!-- 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>
diff --git a/Tizen.Security/Tizen.Security.nuspec b/Tizen.Security/Tizen.Security.nuspec
index dedaa93..93b542a 100644
--- a/Tizen.Security/Tizen.Security.nuspec
+++ b/Tizen.Security/Tizen.Security.nuspec
@@ -9,4 +9,8 @@
<dependency id="Tizen.Applications" version="1.0.0" />
</dependencies>
</metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Security.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Security.dll" target="lib/net45" />
+ </files>
</package>
diff --git a/Tizen.Security/Tizen.Security.project.json b/Tizen.Security/Tizen.Security.project.json
index 2b4b410..dabc334 100644
--- a/Tizen.Security/Tizen.Security.project.json
+++ b/Tizen.Security/Tizen.Security.project.json
@@ -1,12 +1,9 @@
{
"dependencies": {
"NETStandard.Library": "1.6.0",
- "Tizen.Applications": "1.0.0"
+ "Tizen.Applications": "1.0.1"
},
"frameworks": {
- "netstandard1.6": {}
- },
- "runtimes": {
- "win": {}
+ "netstandard1.3": {}
}
}
diff --git a/packaging/csapi-security.spec b/packaging/csapi-security.spec
index 7bc947b..54cdb67 100644
--- a/packaging/csapi-security.spec
+++ b/packaging/csapi-security.spec
@@ -1,5 +1,4 @@
%{!?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}
%define BUILDCONF Debug
@@ -9,7 +8,7 @@
Name: csapi-security
Summary: Tizen Security API for C#
-Version: 1.0.0
+Version: 1.0.1
Release: 1
Group: Development/Libraries
License: Apache-2.0
@@ -17,21 +16,16 @@ 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-devel
-BuildRequires: csapi-application-devel
+BuildRequires: csapi-tizen-nuget
+BuildRequires: csapi-application-nuget
%description
Tizen Security API for C#
@@ -43,42 +37,26 @@ cp %{SOURCE1} .
%define Assemblies Tizen.Security Tizen.Security.SecureRepository
%build
-# Build for Net45
for ASM in %{Assemblies}; do
-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}
-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
-
-# Make NuGet package
-dotnet-gbs pack $ASM/$ASM.nuspec --PackageVersion=%{version} --PackageFiles=$ASM/bin
-
+# 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
-mkdir -p %{buildroot}%{dotnet_assembly_path}/devel
+# Runtime Binary
+mkdir -p %{buildroot}%{dotnet_assembly_path}
for ASM in %{Assemblies}; do
- 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}
+ install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
%else
- install -p -m 644 $ASM/bin/net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
+ 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
@@ -87,22 +65,9 @@ install -p -m 644 *.nupkg %{buildroot}/nuget
%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}