SharpDocx 2.4.0

dotnet add package SharpDocx --version 2.4.0
NuGet\Install-Package SharpDocx -Version 2.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpDocx" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpDocx --version 2.4.0
#r "nuget: SharpDocx, 2.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SharpDocx as a Cake Addin
#addin nuget:?package=SharpDocx&version=2.4.0

// Install SharpDocx as a Cake Tool
#tool nuget:?package=SharpDocx&version=2.4.0

SharpDocx enables you to generate Word documents based on a view. The view itself is a Word document and can be as simple or complex as you want.
- Use C# code inside the view for inserting text, images or tables.
- Supports the MVC pattern, so you can use your own C# model in the template.
- Supports .NET Framework 3.5/4.5+, .NET Standard 2.0, .NET Core 3.1, .NET 5.0 and .NET 6.0.
- Based on Microsoft's Open XML SDK.
- Source code, tutorial and examples on GitHub.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on SharpDocx:

Package Downloads
TS.AppFramework

Package Description

Base.TBH

Package Description

Yiyun.Office The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Yiyun.Office

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.0 33,852 1/30/2023
2.3.0 12,967 10/9/2022
2.2.0 33,141 1/20/2022
2.1.0.1 11,233 10/16/2021
2.0.4 58,781 8/17/2020
2.0.3 1,180 7/28/2020
2.0.2 14,982 3/13/2020
2.0.1 1,462 2/7/2020
1.2.1 1,296 12/23/2019
1.2.0 1,655 2/22/2019
1.1.0 4,007 1/4/2018
1.0.0 1,642 1/1/2018

Version 2.4.0 - January 30, 2023
- Added ImageFromBase64, ImageFromUrl and ImageFromStream methods.
- Added ImageFromBase64 and ImageFromUrl examples to the tutorial.
   
   Version 2.3.0 - October 9, 2022
- Added support for EMF files (issue #51).
- The IDs of DocProperties are now always unique (issue #51).
- Changed the default for TargetFrameworks to net48 and net6.0 to better support Visual Studio 2022.
- The NuGet package now also supports .NET Framework 4.0.
   
Version 2.2.0 - January 20, 2022
- Added support for Visual Studio Code and Visual Studio 2022.
- If a view gets updated it will now be recompiled automatically.
- A copy of the view to a temporary file is now only made in Debug builds.
- The SharpDocx IDE now also supports a document viewer in .NET Core 3.1, .NET 5.0 and .NET 6.0. However, you have to specify the location of the viewer.
- Added .NET 6.0 as a target framework for the samples.
- Updated DocumentFormat.OpenXml to 2.15.0.
- Fixed issue #37 (NullReferenceException).
- Fixed large image overflow bug.
   
Version 2.1.0 - October 16, 2021
- Added an overload for the Generate method that returns a stream (issue #8 and #9).
- Added support for Source Link.
- Updated samples to .NET Core 3.1.
- Updated DocumentFormat.OpenXml to 2.13.1.
- Fixed issue #34.
- Fixed issue #36.

Version 2.0.4 - August 8, 2020
- Fixed issue #21.

Version 2.0.3 - July 28, 2020
- Fixed issue #18.

Version 2.0.2 - March 14, 2020
- Fixed issue #4 and #14.

Version 2.0.1 - February 7, 2020
- Supports templates in loops and if-statements.
- Templates can be nested (see tutorial).

Version 1.2.1 - December 23, 2019
- Upgraded to DocumentFormat.OpenXml 2.9.1.
- Fixed issue with NuGet dependencies.

Version 1.2.0 - February 22, 2019
- Added support for .NET Standard 2.0.

Version 1.1.0 - January 4, 2018
- Some performance improvements.
- You can now specify a view model when calling Document.Generate.
- Tidied up API.

Version 1.0.0 - January 1, 2018
- Initial version.