diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 000000000..5bddb9480 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,47 @@ +name: Test .NET Framework Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + strategy: + matrix: + configuration: [ Debug ] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution_Name: Examples\GroupDocs.Viewer.Examples.CSharp.sln # Replace with your solution name, i.e. MyWpfApp.sln. + Wap_Project_Path: Examples\GroupDocs.Viewer.Examples.CSharp.Framework\GroupDocs.Viewer.Examples.CSharp.Framework.csproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + + - name: Setup NuGet.exe for use with actions + uses: NuGet/setup-nuget@v1.0.5 + + # Restore Nuget packages + - name: Restore the application + run: nuget restore $env:Solution_Name + + # Build application + - name: Build + run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} \ No newline at end of file diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 000000000..17972a78e --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,23 @@ +name: Test .NET build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + - name: Restore dependencies + run: dotnet restore Examples/GroupDocs.Viewer.Examples.CSharp.NET6 + - name: Test build for .NET project + run: dotnet build --no-restore Examples/GroupDocs.Viewer.Examples.CSharp.NET6 diff --git a/.gitignore b/.gitignore index 57a1574c4..51d62c56f 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ bld/ [Bb]in/ [Oo]bj/ -# Visual Studo 2015 cache/options directory +# Visual Studio 2015 cache/options directory .vs/ # MSTest test Results @@ -38,6 +38,10 @@ TestResult.xml [Rr]eleasePS/ dlldata.c +# DNX +project.lock.json +artifacts/ + *_i.c *_p.c *_i.h @@ -90,7 +94,7 @@ _ReSharper*/ *.[Rr]e[Ss]harper *.DotSettings.user -# JustCode is a .NET coding addin-in +# JustCode is a .NET coding add-in .JustCode # TeamCity is a build add-in @@ -129,9 +133,11 @@ publish/ # Publish Web Output *.[Pp]ublish.xml *.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml +## TODO: Comment the next line if you want to checkin your +## web deploy settings but do note that will include unencrypted +## passwords +#*.pubxml + *.publishproj # NuGet Packages @@ -150,8 +156,13 @@ csx/ # Windows Store app package directory AppPackages/ -# Others +# Visual Studio cache files +# files ending in .cache can be ignored *.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others ClientBin/ [Ss]tyle[Cc]op.* ~$* @@ -161,7 +172,7 @@ ClientBin/ *.pfx *.publishsettings node_modules/ -bower_components/ +orleans.codegen.cs # RIA/Silverlight projects Generated_Code/ @@ -194,3 +205,27 @@ FakesAssemblies/ # Visual Studio 6 workspace options file *.opt + +# LightSwitch generated files +GeneratedArtifacts/ +_Pvt_Extensions/ +ModelManifest.xml + +#VSCode +.vscode/ + +#NuGet +*.nuspec + +#Batch +*.bat + +deploy_key + +#License files +*.lic + +#Cache files +Cache/ +Output/ +Aspose/ diff --git a/Demos/ASP.NET Core CrossPlatform/LICENSE b/Demos/ASP.NET Core CrossPlatform/LICENSE new file mode 100644 index 000000000..af0a3dfc5 --- /dev/null +++ b/Demos/ASP.NET Core CrossPlatform/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2001-2018 Aspose Pty Ltd + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Demos/ASP.NET Core CrossPlatform/README.md b/Demos/ASP.NET Core CrossPlatform/README.md new file mode 100644 index 000000000..938a89322 --- /dev/null +++ b/Demos/ASP.NET Core CrossPlatform/README.md @@ -0,0 +1,70 @@ +# GroupDocs.Viewer for .NET ASP.NET Core Example + +[![GitHub license](https://img.shields.io/github/license/groupdocs-viewer/GroupDocs.Viewer-for-.NET-MVC.svg)](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/blob/master/Demos/ASP.NET%20Core%20CrossPlatform/LICENSE) + +## Requirements + +- [.NET Core 3.1 or later](https://dotnet.microsoft.com/download) + +## Supported file-formats + +GroupDocs.Viewer supports over [170 file-formats](https://docs.groupdocs.com/viewer/net/supported-document-formats/) including DOCX, PPTX, and XLSX. + +## Demo Video + +
+ + + +
+ +## Features +- Responsive design +- Fully customizable navigation panel & thumbnails +- Text searching & highlighting +- Download & upload documents +- Print document as PDF +- Zoom in/out documents without quality loss in HTML mode +- Smooth page navigation & scrolling +- Preload pages for faster document rendering +- Multi-language support + +## How to run + +Download [source code](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/archive/master.zip) from github or clone this repository. + +```bash +git clone https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET +``` + +Navigate to `Demos/ASP.NET Core CrossPlatform/src/` folder and run the application by calling + +```bash +dotnet run +``` + +Or to run this demo in Docker container execute the following commands + +```bash +docker build -t groupdocs-viewer:aspnetcore-demo . +docker run -d -p 8080:80 --name viewer-demo groupdocs-viewer:aspnetcore-demo +``` + +Open the app by navigating to+ + + +
+ +## Features +- Responsive design +- Fully customizable navigation panel & thumbnails +- Text searching & highlighting +- Download & upload documents +- Print document as PDF +- Zoom in/out documents without quality loss in HTML mode +- Smooth page navigation & scrolling +- Preload pages for faster document rendering +- Multi-language support + +## How to run + +Download [source code](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/archive/master.zip) from github or clone this repository. + +```bash +git clone https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET +``` + +Navigate to `Demos/ASP.NET Core/src/` folder and run the application by calling + +Open the app by navigating to+ + + +
+ +## Features +- Responsive design +- Fully customizable navigation panel & thumbnails +- Text searching & highlighting +- Download & upload documents +- Print document as PDF +- Zoom in/out documents without quality loss in HTML mode +- Smooth page navigation & scrolling +- Preload pages for faster document rendering +- Multi-language support + +## How To Run + +Download the [source code](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/archive/master.zip) from github or clone this repository: + +```bash +git clone https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET +``` + +Navigate to `Demos\ASP.NET MVC\src` and open `GroupDocs.Viewer.AspNetMvc.sln` in Visual Studio. Build and run the project. + +Open the app by navigating to