Author: fmui
Date: Mon Jul 10 11:08:37 2017
New Revision: 1801446
URL: http://svn.apache.org/viewvc?rev=1801446&view=rev
Log:
CMIS-1024: moved PortCMIS to .NET Standard 1.1
Added:
chemistry/portcmis/trunk/PortCMIS/project.json
Modified:
chemistry/portcmis/trunk/PortCMIS/PortCMIS.csproj
chemistry/portcmis/trunk/PortCMIS/PortCMIS.nuspec
chemistry/portcmis/trunk/PortCMIS/PortCMIS.shfbproj
chemistry/portcmis/trunk/PortCMIS/build.bat
chemistry/portcmis/trunk/PortCMIS/client/ClientUtils.cs
chemistry/portcmis/trunk/PortCMIS/utils/Cache.cs
chemistry/portcmis/trunk/PortCMISTests/PortCMISTests.csproj
chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.csproj
chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.nuspec
chemistry/portcmis/trunk/PortCMISWin/build.bat
chemistry/portcmis/trunk/README
chemistry/portcmis/trunk/release.bat
Modified: chemistry/portcmis/trunk/PortCMIS/PortCMIS.csproj
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/PortCMIS.csproj?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/PortCMIS.csproj (original)
+++ chemistry/portcmis/trunk/PortCMIS/PortCMIS.csproj Mon Jul 10 11:08:37 2017
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="14.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>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
+ <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A3AB61BE-057D-4DD4-824C-AC174322C5D2}</ProjectGuid>
@@ -13,8 +13,9 @@
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>
+ <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'
">
<DebugSymbols>true</DebugSymbols>
@@ -90,6 +91,7 @@
</ItemGroup>
<ItemGroup>
<None Include="portcmis.snk" />
+ <None Include="project.json" />
</ItemGroup>
<Import
Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets
below and uncomment it.
Modified: chemistry/portcmis/trunk/PortCMIS/PortCMIS.nuspec
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/PortCMIS.nuspec?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/PortCMIS.nuspec (original)
+++ chemistry/portcmis/trunk/PortCMIS/PortCMIS.nuspec Mon Jul 10 11:08:37 2017
@@ -1,16 +1,20 @@
<?xml version="1.0"?>
<package >
<metadata>
- <id>$id$</id>
- <version>$version$</version>
- <title>$title$</title>
- <authors>$author$</authors>
- <owners>$author$</owners>
+ <id>PortCMIS</id>
+ <version>0.3.0</version>
+ <title>PortCMIS</title>
+ <authors>Apache Software Foundation</authors>
+ <owners>Apache Software Foundation</owners>
+ <projectUrl>https://chemistry.apache.org/dotnet/portcmis.html</projectUrl>
<licenseUrl>https://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
- <description>$description$</description>
+ <description>CMIS Client Library for .Net</description>
<releaseNotes>See
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12340229&projectId=12310936</releaseNotes>
<copyright>Copyright 2015-2017</copyright>
<tags>CMIS</tags>
</metadata>
-</package>
\ No newline at end of file
+ <files>
+ <file src="bin\Release\PortCMIS.dll" target="lib\netstandard1.1" />
+ </files>
+ </package>
\ No newline at end of file
Modified: chemistry/portcmis/trunk/PortCMIS/PortCMIS.shfbproj
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/PortCMIS.shfbproj?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/PortCMIS.shfbproj (original)
+++ chemistry/portcmis/trunk/PortCMIS/PortCMIS.shfbproj Mon Jul 10 11:08:37 2017
@@ -7,13 +7,13 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{619c0f41-be9f-46ae-a497-b8cc9d998ad6}</ProjectGuid>
- <SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion>
+ <SHFBSchemaVersion>2015.6.5.0</SHFBSchemaVersion>
<!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual
Studio adds them anyway -->
<AssemblyName>Documentation</AssemblyName>
<RootNamespace>Documentation</RootNamespace>
<Name>Documentation</Name>
<!-- SHFB properties -->
- <FrameworkVersion>.NET Portable Library 4.5</FrameworkVersion>
+ <FrameworkVersion>Cross-platform (.NET Core/.NET
Standard)</FrameworkVersion>
<OutputPath>doc\</OutputPath>
<HtmlHelpName>PortCMIS</HtmlHelpName>
<Language>en-US</Language>
@@ -36,7 +36,7 @@
<FeedbackEMailLinkText>Apache Chemistry developer mailing
list</FeedbackEMailLinkText>
<FeedbackEMailAddress>dev%40chemistry.apache.org</FeedbackEMailAddress>
<CopyrightText>Apache Software Foundation</CopyrightText>
- <CopyrightHref>http://www.apache.org</CopyrightHref>
+ <CopyrightHref>https://www.apache.org</CopyrightHref>
<ContentPlacement>AboveNamespaces</ContentPlacement>
<ComponentConfigurations>
<ComponentConfig id="API Token Resolution" enabled="True">
@@ -89,8 +89,8 @@
</ComponentConfig>
</ComponentConfigurations>
<DocumentationSources>
- <DocumentationSource sourceFile="PortCMIS.csproj" xmlns="" />
- </DocumentationSources>
+ <DocumentationSource sourceFile="bin\Release\PortCMIS.dll" />
+<DocumentationSource sourceFile="bin\Release\PortCMIS.xml"
/></DocumentationSources>
<MissingTags>AutoDocumentCtors, AutoDocumentDispose</MissingTags>
<ApiFilter>
<Filter entryType="Namespace" fullName="PortCMIS.Binding"
isExposed="False" xmlns="">
@@ -100,8 +100,8 @@
<Filter entryType="Class"
fullName="PortCMIS.Binding.StandardAuthenticationProvider"
filterName="StandardAuthenticationProvider" isExposed="True" />
<Filter entryType="Interface"
fullName="PortCMIS.Binding.IBindingSession" filterName="IBindingSession"
isExposed="True" />
<Filter entryType="Interface" fullName="PortCMIS.Binding.ICmisBinding"
filterName="ICmisBinding" isExposed="True" />
- <Filter entryType="Class"
fullName="PortCMIS.Binding.UrlBuilder" filterName="UrlBuilder" isExposed="True"
/>
- </Filter>
+ <Filter entryType="Class" fullName="PortCMIS.Binding.UrlBuilder"
filterName="UrlBuilder" isExposed="True" />
+ </Filter>
<Filter entryType="Namespace" fullName="PortCMIS.Binding.Http"
isExposed="True" xmlns="" />
<Filter entryType="Namespace" fullName="PortCMIS.Binding.Browser"
isExposed="False" xmlns="" />
<Filter entryType="Namespace" fullName="PortCMIS.Binding.Browser.Json"
isExposed="False" xmlns="" />
@@ -167,6 +167,8 @@
</Filter>
</ApiFilter>
<VisibleItems>InheritedMembers, InheritedFrameworkMembers, Protected,
ProtectedInternalAsProtected</VisibleItems>
+ <SaveComponentCacheCapacity>100</SaveComponentCacheCapacity>
+ <HelpFileVersion>1.0.0.0</HelpFileVersion>
</PropertyGroup>
<!-- There are no properties for these groups. AnyCPU needs to appear in
order for Visual Studio to perform
the build. The others are optional common platform
types that may appear. -->
Modified: chemistry/portcmis/trunk/PortCMIS/build.bat
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/build.bat?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/build.bat (original)
+++ chemistry/portcmis/trunk/PortCMIS/build.bat Mon Jul 10 11:08:37 2017
@@ -24,13 +24,13 @@ rmdir /Q /S obj
rmdir /Q /S nupkg
echo Building Debug DLL...
-msbuild PortCMIS.csproj /ToolsVersion:4.0 /p:Configuration=Debug
+msbuild PortCMIS.csproj /p:Configuration=Debug
echo Building Release DLL...
-msbuild PortCMIS.csproj /ToolsVersion:4.0 /p:Configuration=Release
+msbuild PortCMIS.csproj /p:Configuration=Release
mkdir nupkg
-nuget pack -o nupkg
+nuget pack PortCMIS.nuspec -o nupkg
echo Building documentation...
-msbuild PortCMIS.shfbproj /ToolsVersion:4.0 /p:Configuration=Release
\ No newline at end of file
+msbuild PortCMIS.shfbproj /p:Configuration=Release
\ No newline at end of file
Modified: chemistry/portcmis/trunk/PortCMIS/client/ClientUtils.cs
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/client/ClientUtils.cs?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/client/ClientUtils.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/client/ClientUtils.cs Mon Jul 10 11:08:37
2017
@@ -590,19 +590,21 @@ namespace PortCMIS.Client
Id = id;
}
- /// <inheritdoc/>
+ /// <summary>
+ /// Returns the ID as string.
+ /// </summary>
public override string ToString()
{
return Id;
}
- /// <inheritdoc/>
+ /// <inheritdoc cref="Object.GetHashCode"/>
public override int GetHashCode()
{
return Id.GetHashCode();
}
- /// <inheritdoc/>
+ /// <inheritdoc cref="Object.Equals(object)"/>
public override bool Equals(object obj)
{
return this.Equals(obj as ObjectId);
Added: chemistry/portcmis/trunk/PortCMIS/project.json
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/project.json?rev=1801446&view=auto
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/project.json (added)
+++ chemistry/portcmis/trunk/PortCMIS/project.json Mon Jul 10 11:08:37 2017
@@ -0,0 +1,10 @@
+{
+ "supports": {},
+ "dependencies": {
+ "Microsoft.NETCore.Portable.Compatibility": "1.0.1",
+ "NETStandard.Library": "1.6.0"
+ },
+ "frameworks": {
+ "netstandard1.1": {}
+ }
+}
\ No newline at end of file
Modified: chemistry/portcmis/trunk/PortCMIS/utils/Cache.cs
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/utils/Cache.cs?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/utils/Cache.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/utils/Cache.cs Mon Jul 10 11:08:37 2017
@@ -124,6 +124,12 @@ namespace PortCMIS.Utils
public DateTime Expiration { get; private set; }
- public bool IsExpired => Value == null || DateTime.UtcNow > Expiration;
+ public bool IsExpired
+ {
+ get
+ {
+ return Value == null || DateTime.UtcNow > Expiration;
+ }
+ }
}
}
Modified: chemistry/portcmis/trunk/PortCMISTests/PortCMISTests.csproj
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISTests/PortCMISTests.csproj?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMISTests/PortCMISTests.csproj (original)
+++ chemistry/portcmis/trunk/PortCMISTests/PortCMISTests.csproj Mon Jul 10
11:08:37 2017
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="14.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -66,14 +66,14 @@
<Compile Include="ContentStreamTest.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="portcmis.snk" />
+ </ItemGroup>
+ <ItemGroup>
<ProjectReference Include="..\PortCMIS\PortCMIS.csproj">
<Project>{a3ab61be-057d-4dd4-824c-ac174322c5d2}</Project>
<Name>PortCMIS</Name>
</ProjectReference>
</ItemGroup>
- <ItemGroup>
- <None Include="portcmis.snk" />
- </ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)'
== 'True'">
<ItemGroup>
Modified: chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.csproj
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.csproj?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.csproj (original)
+++ chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.csproj Mon Jul 10 11:08:37
2017
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="14.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>
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
@@ -34,13 +34,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <!-- A reference to the entire .NET Framework is automatically included -->
- <ProjectReference Include="..\PortCMIS\PortCMIS.csproj">
- <Project>{a3ab61be-057d-4dd4-824c-ac174322c5d2}</Project>
- <Name>PortCMIS</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
<TargetPlatform Include="WindowsPhoneApp, Version=8.1" />
<TargetPlatform Include="Windows, Version=8.1" />
</ItemGroup>
@@ -50,6 +43,12 @@
<Compile Include="client\ClientImpl.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\PortCMIS\PortCMIS.csproj">
+ <Project>{a3ab61be-057d-4dd4-824c-ac174322c5d2}</Project>
+ <Name>PortCMIS</Name>
+ </ProjectReference>
+ </ItemGroup>
<Import
Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.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.
Modified: chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.nuspec
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.nuspec?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.nuspec (original)
+++ chemistry/portcmis/trunk/PortCMISWin/PortCMISWin.nuspec Mon Jul 10 11:08:37
2017
@@ -1,11 +1,12 @@
<?xml version="1.0"?>
<package >
<metadata>
- <id>$id$</id>
- <version>0.3.0.0</version>
+ <id>PortCMISWin</id>
+ <version>0.3.0</version>
<title>PortCMIS for Store Apps</title>
<authors>Apache Software Foundation</authors>
<owners>Apache Software Foundation</owners>
+ <projectUrl>https://chemistry.apache.org/dotnet/portcmis.html</projectUrl>
<licenseUrl>https://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>CMIS Client Library for .Net</description>
@@ -13,4 +14,7 @@
<copyright>Copyright 2015-2017</copyright>
<tags>CMIS</tags>
</metadata>
+ <files>
+ <file src="bin\Release\PortCMISWin.dll" target="lib\win81" />
+ </files>
</package>
\ No newline at end of file
Modified: chemistry/portcmis/trunk/PortCMISWin/build.bat
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISWin/build.bat?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMISWin/build.bat (original)
+++ chemistry/portcmis/trunk/PortCMISWin/build.bat Mon Jul 10 11:08:37 2017
@@ -24,13 +24,13 @@ rmdir /Q /S obj
rmdir /Q /S nupkg
echo Building Debug DLL...
-msbuild PortCMISWin.csproj /ToolsVersion:4.0 /p:Configuration=Debug
+msbuild PortCMISWin.csproj /p:Configuration=Debug
echo Building Release DLL...
-msbuild PortCMISWin.csproj /ToolsVersion:4.0 /p:Configuration=Release
+msbuild PortCMISWin.csproj /p:Configuration=Release
mkdir nupkg
-nuget pack -o nupkg
+nuget pack PortCMISWin.nuspec -o nupkg
rem echo Building documentation...
rem msbuild PortCMISWin.shfbproj /ToolsVersion:4.0 /p:Configuration=Release
\ No newline at end of file
Modified: chemistry/portcmis/trunk/README
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/README?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/README (original)
+++ chemistry/portcmis/trunk/README Mon Jul 10 11:08:37 2017
@@ -2,7 +2,7 @@ Apache Chemistry PortCMIS 0.3
=============================
Apache Chemistry PortCMIS is a Content Management Interoperability Services
(CMIS)
-client library for the .NET framework 4.5 or higher.
+client library for the .NET Standard 1.1 or higher.
See https://chemistry.apache.org/dotnet/portcmis.html for more information.
See https://chemistry.apache.org/docs/cmis-samples/ for code samples.
@@ -15,7 +15,7 @@ Libraries
PortCMIS consists of two libraries: PortCMIS and PortCMISWin.
-The PortCMIS library is a Portable Class Library and contains the main code.
+The PortCMIS library is a .NET Standard 1.1 library and contains the main code.
The PortCMISWin library adds support for Windows Runtime APIs, especially the
Windows.Web.Http.HttpClient. Use it only if you need a specific feature that is
not available with the System.Net.Http.HttpClient.
@@ -59,7 +59,8 @@ Change log
PortCMIS 0.3:
-- ???
+- Switched from a Portable Class Library to a .NET Standard Library
+- Bug fixes and small improvments
- See
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12340229&projectId=12310936
Modified: chemistry/portcmis/trunk/release.bat
URL:
http://svn.apache.org/viewvc/chemistry/portcmis/trunk/release.bat?rev=1801446&r1=1801445&r2=1801446&view=diff
==============================================================================
--- chemistry/portcmis/trunk/release.bat (original)
+++ chemistry/portcmis/trunk/release.bat Mon Jul 10 11:08:37 2017
@@ -22,7 +22,7 @@ rem
rem This batch file creates a release.
rem It requires Cygwin.
-set PORTCMISVERSION=0.2
+set PORTCMISVERSION=0.3
set PORTCMISZIPSRC=chemistry-portcmis-%PORTCMISVERSION%-src.zip
set PORTCMISZIPBIN=chemistry-portcmis-%PORTCMISVERSION%-bin.zip
set PORTCMISZIPNUPKG=chemistry-portcmis-%PORTCMISVERSION%-nupkg.zip