Skip to content

Commit b2d078c

Browse files
Getting Started
1 parent 1651221 commit b2d078c

File tree

356 files changed

+187128
-53728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+187128
-53728
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
55
</startup>
6-
</configuration>
6+
</configuration>

Getting-Started/.NET-Framework/Create-Word-document/Create-Word-document.csproj

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
<OutputType>Exe</OutputType>
99
<RootNamespace>Create_Word_document</RootNamespace>
1010
<AssemblyName>Create-Word-document</AssemblyName>
11-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<Deterministic>true</Deterministic>
15+
<TargetFrameworkProfile />
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -33,17 +34,17 @@
3334
<WarningLevel>4</WarningLevel>
3435
</PropertyGroup>
3536
<ItemGroup>
36-
<Reference Include="Syncfusion.Compression.Base, Version=23.1460.43.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
37-
<HintPath>..\packages\Syncfusion.Compression.Base.23.1.43\lib\net46\Syncfusion.Compression.Base.dll</HintPath>
37+
<Reference Include="Syncfusion.Compression.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
38+
<HintPath>..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll</HintPath>
3839
</Reference>
39-
<Reference Include="Syncfusion.DocIO.Base, Version=23.1460.43.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
40-
<HintPath>..\packages\Syncfusion.DocIO.WinForms.23.1.43\lib\net46\Syncfusion.DocIO.Base.dll</HintPath>
40+
<Reference Include="Syncfusion.DocIO.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
41+
<HintPath>..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll</HintPath>
4142
</Reference>
42-
<Reference Include="Syncfusion.Licensing, Version=23.1460.43.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
43-
<HintPath>..\packages\Syncfusion.Licensing.23.1.43\lib\net46\Syncfusion.Licensing.dll</HintPath>
43+
<Reference Include="Syncfusion.Licensing, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
44+
<HintPath>..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll</HintPath>
4445
</Reference>
45-
<Reference Include="Syncfusion.OfficeChart.Base, Version=23.1460.43.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
46-
<HintPath>..\packages\Syncfusion.OfficeChart.Base.23.1.43\lib\net46\Syncfusion.OfficeChart.Base.dll</HintPath>
46+
<Reference Include="Syncfusion.OfficeChart.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
47+
<HintPath>..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll</HintPath>
4748
</Reference>
4849
<Reference Include="System" />
4950
<Reference Include="System.Core" />
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Syncfusion.Compression.Base" version="23.1.43" targetFramework="net46" />
4-
<package id="Syncfusion.DocIO.WinForms" version="23.1.43" targetFramework="net46" />
5-
<package id="Syncfusion.Licensing" version="23.1.43" targetFramework="net46" />
6-
<package id="Syncfusion.OfficeChart.Base" version="23.1.43" targetFramework="net46" />
3+
<package id="Syncfusion.Compression.Base" version="26.1.42" targetFramework="net462" />
4+
<package id="Syncfusion.DocIO.WinForms" version="26.1.42" targetFramework="net462" />
5+
<package id="Syncfusion.Licensing" version="26.1.42" targetFramework="net462" />
6+
<package id="Syncfusion.OfficeChart.Base" version="26.1.42" targetFramework="net462" />
77
</packages>

Getting-Started/.NET-MAUI/Create-Word-document/Create-Word-document.csproj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
4+
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net8.0-windows10.0.19041</TargetFrameworks>
66
<OutputType>Exe</OutputType>
77
<RootNamespace>Create_Word_document</RootNamespace>
88
<UseMaui>true</UseMaui>
@@ -52,12 +52,6 @@
5252
<EmbeddedResource Include="Resources\DocIO\Mountain-300.jpg" />
5353
<EmbeddedResource Include="Resources\DocIO\Road-550-W.jpg" />
5454
</ItemGroup>
55-
56-
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
57-
<!-- Required - WinUI does not yet have buildTransitive for everything -->
58-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
59-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
60-
</ItemGroup>
6155

6256
<ItemGroup>
6357
<PackageReference Include="Syncfusion.DocIO.NET" Version="*" />

Getting-Started/.NET/Create-Word-document/Create-Word-document.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace>Create_Word_document</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27703.2035
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.10.34928.147
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Create-Word-Document", "Create-Word-Document\Create-Word-Document.csproj", "{2AC623B9-E2D8-4E17-9F00-2670DCA28E35}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Create-Word-Document", "Create-Word-Document\Create-Word-Document.csproj", "{B3AD0EF0-D6F4-4C49-91AE-D40CE2AD11FC}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{2AC623B9-E2D8-4E17-9F00-2670DCA28E35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{2AC623B9-E2D8-4E17-9F00-2670DCA28E35}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{2AC623B9-E2D8-4E17-9F00-2670DCA28E35}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{2AC623B9-E2D8-4E17-9F00-2670DCA28E35}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{B3AD0EF0-D6F4-4C49-91AE-D40CE2AD11FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B3AD0EF0-D6F4-4C49-91AE-D40CE2AD11FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B3AD0EF0-D6F4-4C49-91AE-D40CE2AD11FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B3AD0EF0-D6F4-4C49-91AE-D40CE2AD11FC}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {F79B52BE-F45F-455C-A3EB-3BDD805152CA}
23+
SolutionGuid = {91C5A620-CEAE-4A8C-9516-47A4964C4EC0}
2424
EndGlobalSection
2525
EndGlobal

Getting-Started/ASP.NET-Core/Create-Word-Document/Controllers/HomeController.cs

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using Create_Word_Document.Models;
62
using Microsoft.AspNetCore.Mvc;
7-
using Create_Word_document.Models;
3+
using System.Diagnostics;
84
using Syncfusion.DocIO.DLS;
9-
using System.IO;
105
using Syncfusion.DocIO;
116

12-
namespace Create_Word_document.Controllers
7+
namespace Create_Word_Document.Controllers
138
{
149
public class HomeController : Controller
1510
{
11+
private readonly ILogger<HomeController> _logger;
12+
13+
public HomeController(ILogger<HomeController> logger)
14+
{
15+
_logger = logger;
16+
}
17+
1618
public IActionResult Index()
1719
{
1820
return View();
@@ -244,20 +246,12 @@ public ActionResult CreateDocument()
244246
}
245247
}
246248

247-
public IActionResult About()
249+
public IActionResult Privacy()
248250
{
249-
ViewData["Message"] = "Your application description page.";
250-
251-
return View();
252-
}
253-
254-
public IActionResult Contact()
255-
{
256-
ViewData["Message"] = "Your contact page.";
257-
258251
return View();
259252
}
260253

254+
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
261255
public IActionResult Error()
262256
{
263257
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<RootNamespace>Create_Word_Document</RootNamespace>
58
</PropertyGroup>
69

710
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
911
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="*" />
1012
</ItemGroup>
1113

12-
<ItemGroup>
13-
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.4" />
14-
</ItemGroup>
15-
1614
</Project>
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
using System;
2-
3-
namespace Create_Word_document.Models
1+
namespace Create_Word_Document.Models
42
{
53
public class ErrorViewModel
64
{
7-
public string RequestId { get; set; }
5+
public string? RequestId { get; set; }
86

97
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
108
}
11-
}
9+
}
Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
6-
using Microsoft.AspNetCore;
7-
using Microsoft.AspNetCore.Hosting;
8-
using Microsoft.Extensions.Configuration;
9-
using Microsoft.Extensions.Logging;
10-
11-
namespace Create_Word_document
1+
var builder = WebApplication.CreateBuilder(args);
2+
3+
// Add services to the container.
4+
builder.Services.AddControllersWithViews();
5+
6+
var app = builder.Build();
7+
8+
// Configure the HTTP request pipeline.
9+
if (!app.Environment.IsDevelopment())
1210
{
13-
public class Program
14-
{
15-
public static void Main(string[] args)
16-
{
17-
BuildWebHost(args).Run();
18-
}
19-
20-
public static IWebHost BuildWebHost(string[] args) =>
21-
WebHost.CreateDefaultBuilder(args)
22-
.UseStartup<Startup>()
23-
.Build();
24-
}
11+
app.UseExceptionHandler("/Home/Error");
12+
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
13+
app.UseHsts();
2514
}
15+
16+
app.UseHttpsRedirection();
17+
app.UseStaticFiles();
18+
19+
app.UseRouting();
20+
21+
app.UseAuthorization();
22+
23+
app.MapControllerRoute(
24+
name: "default",
25+
pattern: "{controller=Home}/{action=Index}/{id?}");
26+
27+
app.Run();
Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1-
{
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
23
"iisSettings": {
34
"windowsAuthentication": false,
45
"anonymousAuthentication": true,
56
"iisExpress": {
6-
"applicationUrl": "http://localhost:63439/",
7-
"sslPort": 0
7+
"applicationUrl": "http://localhost:9727",
8+
"sslPort": 44358
89
}
910
},
1011
"profiles": {
11-
"IIS Express": {
12-
"commandName": "IISExpress",
12+
"http": {
13+
"commandName": "Project",
14+
"dotnetRunMessages": true,
1315
"launchBrowser": true,
16+
"applicationUrl": "http://localhost:5083",
1417
"environmentVariables": {
1518
"ASPNETCORE_ENVIRONMENT": "Development"
1619
}
1720
},
18-
"Create_Word_document": {
21+
"https": {
1922
"commandName": "Project",
23+
"dotnetRunMessages": true,
2024
"launchBrowser": true,
25+
"applicationUrl": "https://localhost:7264;http://localhost:5083",
2126
"environmentVariables": {
2227
"ASPNETCORE_ENVIRONMENT": "Development"
23-
},
24-
"applicationUrl": "http://localhost:63440/"
28+
}
29+
},
30+
"IIS Express": {
31+
"commandName": "IISExpress",
32+
"launchBrowser": true,
33+
"environmentVariables": {
34+
"ASPNETCORE_ENVIRONMENT": "Development"
35+
}
2536
}
2637
}
2738
}

Getting-Started/ASP.NET-Core/Create-Word-Document/Startup.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

Getting-Started/ASP.NET-Core/Create-Word-Document/Views/Home/About.cshtml

Lines changed: 0 additions & 7 deletions
This file was deleted.

Getting-Started/ASP.NET-Core/Create-Word-Document/Views/Home/Contact.cshtml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)