dotnetreport.frontend
6.4.0
dotnet add package dotnetreport.frontend --version 6.4.0
NuGet\Install-Package dotnetreport.frontend -Version 6.4.0
<PackageReference Include="dotnetreport.frontend" Version="6.4.0" />
<PackageVersion Include="dotnetreport.frontend" Version="6.4.0" />
<PackageReference Include="dotnetreport.frontend" />
paket add dotnetreport.frontend --version 6.4.0
#r "nuget: dotnetreport.frontend, 6.4.0"
#:package dotnetreport.frontend@6.4.0
#addin nuget:?package=dotnetreport.frontend&version=6.4.0
#tool nuget:?package=dotnetreport.frontend&version=6.4.0
dotnetreport.frontend
The Dotnet Report user interface on its own: the report builder, dashboards and setup pages.
| Package | What's in it | Install it in |
|---|---|---|
dotnetreport |
Everything | A single web project |
dotnetreport.frontend |
JavaScript, CSS, images, Razor views, the two page controllers, gulpfile and npm package list | The web project that hosts your views |
dotnetreport.backend |
API controller, report model, scheduled job and their NuGet libraries | Your .NET API project |
Install dotnetreport.frontend and dotnetreport.backend at the same version.
What's included
Scripts/dotnetreport.js,Scripts/dotnetreport-helper.js,Scripts/dotnetreport-setup.jsContent/dotnetreport.css,Content/img/report-logo.pngViews/DotNetReport/Index.cshtml,Dashboard.cshtml,ReportPrint.cshtmlViews/DotNetSetup/Index.cshtmlViews/Shared/_Layout.Report.cshtmland the_DotnetReport*Partial.cshtmlpartialsControllers/DotNetReportController.csandControllers/DotNetSetupController.cs, which return the viewsgulpfile.dotnetreport.jsandpackage.dotnetreport.json
DotNetReportController and the print view use DotNetReportApiController and DotNetReportPrintModel from dotnetreport.backend. Your web project needs a reference to the project where the backend package is installed.
Copy the files into your project
Commit your project to source control first, so you can merge any customizations back in after an upgrade.
Add
GeneratePathProperty="true"to the package reference:<ItemGroup> <PackageReference Include="dotnetreport.frontend" Version="x.x.x" GeneratePathProperty="true" /> </ItemGroup>Add this target to the project file and build once:
<PropertyGroup> <ContentFilesPath>$(Pkgdotnetreport_frontend)\contentFiles\any\any\</ContentFilesPath> </PropertyGroup> <Target Name="CopyDotNetReportFrontend" BeforeTargets="PreBuildEvent"> <Copy SourceFiles="$(ContentFilesPath)gulpfile.dotnetreport.js" DestinationFiles="$(ProjectDir)gulpfile.dotnetreport.js" /> <Copy SourceFiles="$(ContentFilesPath)package.dotnetreport.json" DestinationFiles="$(ProjectDir)package.dotnetreport.json" /> <Copy SourceFiles="$(ContentFilesPath)Content/img/report-logo.png" DestinationFiles="$(ProjectDir)Content/img/report-logo.png" /> <Copy SourceFiles="$(ContentFilesPath)Content/dotnetreport.css" DestinationFiles="$(ProjectDir)Content/dotnetreport.css" /> <Copy SourceFiles="$(ContentFilesPath)Scripts/dotnetreport.js" DestinationFiles="$(ProjectDir)Scripts/dotnetreport.js" /> <Copy SourceFiles="$(ContentFilesPath)Scripts/dotnetreport-helper.js" DestinationFiles="$(ProjectDir)Scripts/dotnetreport-helper.js" /> <Copy SourceFiles="$(ContentFilesPath)Scripts/dotnetreport-setup.js" DestinationFiles="$(ProjectDir)Scripts/dotnetreport-setup.js" /> <Copy SourceFiles="$(ContentFilesPath)Controllers/DotNetReportController.cs" DestinationFiles="$(ProjectDir)Controllers/DotNetReportController.cs" /> <Copy SourceFiles="$(ContentFilesPath)Controllers/DotNetSetupController.cs" DestinationFiles="$(ProjectDir)Controllers/DotNetSetupController.cs" /> <Copy SourceFiles="$(ContentFilesPath)Views/DotNetReport/Index.cshtml" DestinationFiles="$(ProjectDir)Views/DotNetReport/Index.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/DotNetReport/Dashboard.cshtml" DestinationFiles="$(ProjectDir)Views/DotNetReport/Dashboard.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/DotNetReport/ReportPrint.cshtml" DestinationFiles="$(ProjectDir)Views/DotNetReport/ReportPrint.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/DotNetSetup/Index.cshtml" DestinationFiles="$(ProjectDir)Views/DotNetSetup/Index.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/shared/_Layout.Report.cshtml" DestinationFiles="$(ProjectDir)Views/Shared/_Layout.Report.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/shared/_DotnetReportHeaderPartial.cshtml" DestinationFiles="$(ProjectDir)Views/Shared/_DotnetReportHeaderPartial.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/shared/_DotnetReportJsLibrariesPartial.cshtml" DestinationFiles="$(ProjectDir)Views/Shared/_DotnetReportJsLibrariesPartial.cshtml" /> <Copy SourceFiles="$(ContentFilesPath)Views/shared/_DotnetReportTemplatesPartial.cshtml" DestinationFiles="$(ProjectDir)Views/Shared/_DotnetReportTemplatesPartial.cshtml" /> </Target>Remove the
CopyDotNetReportFrontendtarget after the build. Otherwise every build overwrites your changes.Merge
package.dotnetreport.jsoninto yourpackage.json(or rename it if you don't have one), restore npm packages, and run the gulp tasks ingulpfile.dotnetreport.jsto copy the client libraries intowwwroot.
See the knowledge base for setup and upgrade guides.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
6.4.0
- New Users & Access page (Views/DotNetSetup/Users.cshtml and Scripts/dotnetreport-users.js): users, roles and tenants from your code, a SQL query or Dotnet Report Managed.
- Permissions without Admin Mode: Manage Access, Manage Headers & Footers, View Report SQL and Manage Users, by role or by user, inside the person's own tenant. View Only role.
- Setup App Settings saves the workspace, its connection and email settings (SMTP or SendGrid, with Send Test Email) to appsettings.dotnetreport.json.
- Gauge (Gauge, Half Circle, Progress Ring, Progress Bar) and Funnel charts.
- Dashboard Live Preview: drag and resize tiles while picking reports.
- Filters button on reports and dashboards, showing whether you see your saved filters or the report's. Editing a report always edits the report's filters and never overwrites personal ones.
- KPI Vertical Alignment, less empty margin around charts in small tiles, cleaner world map colors with an optional color scale.
- Font Awesome 7 (fa fa-* class names keep working), cleaner menus and schedule dialog.
- Fixes: chart Y-axis format, Show Small Values On Label, resizing map tiles, empty space in tiles without a chart, custom date Between filters, switching to or from KPI, map zoom.
- Upgrading: Users & Roles moved out of Setup to the Users action on DotNetSetupController.