Multi-targeting: net40, net461, netstandard2.0 (#315)
* Convert to Visual Studio 2017 format.

* Force VS2017 appveyor image

* Add MyGet source before CI build

* Update artifacts

* Implement .NET standard as far as possible.
System.Drawing.Bitmap is still missing - hence the XLPicture API is incomplete

* Change to VS 2017 Preview image to support .NET Standard 2

* Add APPVEYOR environment variable support

* Improve color support and more

* Add a basic test for OpenXml - which currently breaks in .NET Standard 2.0

* Use OpenXML 2.7.2 for all targets

* Replace net452 with net40 build

* Try netstandard where possible

* Update NuGet on appveyor before building

* Implement MetadataExtractor to get image dimensions and format

* When setting culture, do it for every time a test is run.

* Fix dependency issue

* fix support for TIFF files

* Default the image position to top left if position hasn't been set.

* Test all targets

* Update test framework

* Add .editorconfig files back in projects

* Disable OpenXML test on AppVeyor until bug is fixed

* Better approximation of font sizes on netstandard2

* Workaround for OpenXML bug as per https://github.com/OfficeDev/Open-XML-SDK/issues/235

* Fix for DeflateStream not being seekable. Copy to MemoryStream

* Exclude Excel temporary files when building

* Use CoreCompat for measuring fonts on netstandard - remove lots of conditional code

* Reindent file

* Upgrade NUnit

* Add support for .NET 3.5

* Fix for NET35

* Remove explicit test targets. Should work on appveyor now.

* Add Microsoft.CSharp where necessary.
Remove net40 from tests, for now.

* Skip OpenXML document properties test

* Use System.Drawing.Common instead of MetadataExtractor and CoreCompat

* Sign projects

* Specify test assemblies in appveyor.yml

* Comment out platform in order to get CI to correctly detect test assembly path. as per https://github.com/appveyor/ci/issues/1746\#issuecomment-339187046

* Remove .NET3.5 build from artifacts

* Add net40 to tests

* Add reference to Microsoft.CSharp for net40

* Switch net461 to net46
Remove NU1605 warnings
Clean up dependencies

* Generate documentation file

* Ignore warning CS1591: Missing XML comment for publicly visible type or member

* Reenable some System.Drawing features for netstandard2

* Upgrade FastMember.Signed to v1.3.0

* Upgrade NUnit to 3.10

* Upgrade test framework

* Remove framework distinction for netcore

* Collapse empty XML elements for comparison - netcore and netframework versions of OpenXML save the internals differently.

* Copy text.xlsx to output directory

* Enable test for netstandard too.

* Refactor TestHelper.StripColumnWidths

* Align conditional compiler constants for netcore/netstandard to _NETSTANDARD2_0_

* Change documentation file declaration to enable build on Linux
1 parent bb3fdc1 commit 015d7d03651417fdb866eb846e189c962e3d1522
@Francois Botha Francois Botha authored on 10 Apr 2018
GitHub committed on 10 Apr 2018
Showing 72 changed files
View
ClosedXML.sln
View
ClosedXML/Attributes/XLColumnAttribute.cs
View
ClosedXML/ClosedXML.csproj
View
ClosedXML/Excel/CalcEngine/XLCalcEngine.cs
View
ClosedXML/Excel/Cells/XLCell.cs
View
ClosedXML/Excel/Columns/XLColumn.cs
View
ClosedXML/Excel/ConditionalFormats/Save/XLCFColorScaleConverter.cs
View
ClosedXML/Excel/ConditionalFormats/Save/XLCFDataBarConverter.cs
View
ClosedXML/Excel/DataValidation/XLDataValidation.cs
View
ClosedXML/Excel/Drawings/PictureEnums.cs
View
ClosedXML/Excel/Drawings/XLPictures.cs
View
ClosedXML/Excel/IXLTheme.cs
View
ClosedXML/Excel/Misc/XLFormula.cs
View
ClosedXML/Excel/PageSetup/XLHFText.cs
View
ClosedXML/Excel/Ranges/XLRangeBase.cs
View
ClosedXML/Excel/Rows/XLRow.cs
View
ClosedXML/Excel/SaveOptions.cs
View
ClosedXML/Excel/Style/Colors/XLColor_Internal.cs
View
ClosedXML/Excel/Style/Colors/XLColor_Public.cs
View
ClosedXML/Excel/Style/Colors/XLColor_Static.cs
View
ClosedXML/Excel/Style/IXLFontBase.cs
View
ClosedXML/Excel/Tables/XLTable.cs
View
ClosedXML/Excel/XLWorkbook.cs
View
ClosedXML/Excel/XLWorkbook_Load.cs
View
ClosedXML/Excel/XLWorkbook_Save.cs
View
ClosedXML/Excel/XLWorksheet.cs
View
ClosedXML/Excel/XLWorksheets.cs
View
ClosedXML/Extensions.cs
View
ClosedXML/Properties/AssemblyInfo.cs
View
ClosedXML/Properties/AssemblyVersionInfo.cs 100644 → 0
View
ClosedXML/Utils/GraphicsUtils.cs
View
ClosedXML/XLHelper.cs
View
ClosedXML/packages.config 100644 → 0
View
ClosedXML_Examples/ClosedXML_Examples.csproj
View
ClosedXML_Examples/Creating/CreateFiles.cs
View
ClosedXML_Examples/Properties/AssemblyInfo.cs 100644 → 0
View
ClosedXML_Examples/Styles/UsingColors.cs
View
ClosedXML_Examples/app.config
View
ClosedXML_Examples/packages.config 100644 → 0
View
ClosedXML_Sandbox/ClosedXML_Sandbox.csproj
View
ClosedXML_Sandbox/Properties/AssemblyInfo.cs 100644 → 0
View
ClosedXML_Sandbox/ReflectionExtensions.cs 0 → 100644
View
ClosedXML_Sandbox/app.config
View
ClosedXML_Sandbox/packages.config 100644 → 0
View
ClosedXML_Tests/ClosedXML_Tests.csproj
View
ClosedXML_Tests/Excel/CalcEngine/DateAndTimeTests.cs
View
ClosedXML_Tests/Excel/CalcEngine/FunctionsTests.cs
View
ClosedXML_Tests/Excel/CalcEngine/InformationTests.cs
View
ClosedXML_Tests/Excel/CalcEngine/LookupTests.cs
View
ClosedXML_Tests/Excel/CalcEngine/StatisticalTests.cs
View
ClosedXML_Tests/Excel/CalcEngine/TextTests.cs
View
ClosedXML_Tests/Excel/Columns/ColumnTests.cs
View
ClosedXML_Tests/Excel/Comments/CommentsTests.cs
View
ClosedXML_Tests/Excel/ImageHandling/PictureTests.cs
View
ClosedXML_Tests/Excel/Ranges/CopyingRangesTests.cs
View
ClosedXML_Tests/Excel/Ranges/UsedAndUnusedCellsTests.cs
View
ClosedXML_Tests/Excel/Saving/SavingTests.cs
View
ClosedXML_Tests/Excel/Styles/NumberFormatTests.cs
View
ClosedXML_Tests/Excel/Tables/TablesTests.cs
View
ClosedXML_Tests/ExcelDocsComparerTests.cs
View
ClosedXML_Tests/OleDb/OleDbTests.cs
View
ClosedXML_Tests/OpenXMLTests.cs 0 → 100644
View
ClosedXML_Tests/Properties/AssemblyInfo.cs 100644 → 0
View
ClosedXML_Tests/Resource/Examples/Styles/UsingColors.xlsx
Not supported
View
ClosedXML_Tests/Resource/StyleReferenceFiles/ConditionalFormattingOrder/ConditionalFormattingOrder.xlsx
Not supported
View
ClosedXML_Tests/Resource/StyleReferenceFiles/TransparentBackgroundFill/TransparentBackgroundFill.xlsx
Not supported
View
ClosedXML_Tests/TestHelper.cs
View
ClosedXML_Tests/Utils/ExcelDocsComparer.cs
View
ClosedXML_Tests/Utils/PackageHelper.cs
View
ClosedXML_Tests/Utils/StreamHelper.cs
View
ClosedXML_Tests/packages.config 100644 → 0
View
appveyor.yml