Skip to content

Commit 86bbf24

Browse files
committed
upgrade to .net8
1 parent 3425f96 commit 86bbf24

File tree

5 files changed

+26
-116
lines changed

5 files changed

+26
-116
lines changed
+11-59
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,18 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{8B53A8C7-230A-433B-94E3-C1B6AFC6A976}</ProjectGuid>
3+
<TargetFramework>net8.0</TargetFramework>
84
<OutputType>Exe</OutputType>
9-
<RootNamespace>EncryptionExample</RootNamespace>
10-
<AssemblyName>EncryptionExample</AssemblyName>
11-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
<Deterministic>true</Deterministic>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
156
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<PlatformTarget>AnyCPU</PlatformTarget>
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="DevExpress.Charts.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
37-
<Reference Include="DevExpress.Data.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
38-
<Reference Include="DevExpress.DataAccess.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
39-
<Reference Include="DevExpress.Docs.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
40-
<Reference Include="DevExpress.Office.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
41-
<Reference Include="DevExpress.Pdf.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
42-
<Reference Include="DevExpress.Printing.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
43-
<Reference Include="DevExpress.Sparkline.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
44-
<Reference Include="DevExpress.Spreadsheet.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
45-
<Reference Include="DevExpress.XtraCharts.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
46-
<Reference Include="System" />
47-
<Reference Include="System.Core" />
48-
<Reference Include="System.Xml.Linq" />
49-
<Reference Include="System.Data.DataSetExtensions" />
50-
<Reference Include="Microsoft.CSharp" />
51-
<Reference Include="System.Data" />
52-
<Reference Include="System.Net.Http" />
53-
<Reference Include="System.Xml" />
54-
</ItemGroup>
557
<ItemGroup>
56-
<Compile Include="Program.cs" />
57-
<Compile Include="Properties\AssemblyInfo.cs" />
8+
<None Update="Documents\encrypted.xlsx">
9+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
10+
</None>
5811
</ItemGroup>
5912
<ItemGroup>
60-
<None Include="App.config" />
61-
<None Include="Documents\encrypted.xlsx">
62-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
63-
</None>
13+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
14+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
15+
<PackageReference Include="DevExpress.Document.Processor" Version="24.2.3" />
16+
<PackageReference Include="DevExpress.Drawing.Skia" Version="24.2.3" />
6417
</ItemGroup>
65-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
66-
</Project>
18+
</Project>

CS/EncryptionExample/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static void Main(string[] args)
1616
{
1717
Workbook workbook = new Workbook();
1818
workbook.Options.Import.Password = "123";
19-
workbook.LoadDocument("Documents\\encrypted.xlsx");
19+
workbook.LoadDocument("..\\..\\..\\Documents\\encrypted.xlsx");
2020

2121
workbook.EncryptedFilePasswordRequest += Workbook_EncryptedFilePasswordRequest;
2222
workbook.EncryptedFilePasswordCheckFailed += Workbook_EncryptedFilePasswordCheckFailed;
+12-54
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,26 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<OptionInfer>On</OptionInfer>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8-
<ProjectGuid>{8B53A8C7-230A-433B-94E3-C1B6AFC6A976}</ProjectGuid>
3+
<TargetFramework>net8.0</TargetFramework>
94
<OutputType>Exe</OutputType>
10-
<RootNamespace>
11-
</RootNamespace>
12-
<AssemblyName>EncryptionExample</AssemblyName>
13-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16-
<Deterministic>true</Deterministic>
5+
<RootNamespace></RootNamespace>
6+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
177
</PropertyGroup>
188
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19-
<PlatformTarget>AnyCPU</PlatformTarget>
20-
<DebugSymbols>true</DebugSymbols>
21-
<DebugType>full</DebugType>
22-
<Optimize>false</Optimize>
23-
<OutputPath>bin\Debug\</OutputPath>
249
<DefineConstants>DEBUG,TRACE</DefineConstants>
25-
<ErrorReport>prompt</ErrorReport>
2610
<WarningLevel>4</WarningLevel>
2711
</PropertyGroup>
2812
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29-
<PlatformTarget>AnyCPU</PlatformTarget>
30-
<DebugType>pdbonly</DebugType>
31-
<Optimize>true</Optimize>
32-
<OutputPath>bin\Release\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
34-
<ErrorReport>prompt</ErrorReport>
3513
<WarningLevel>4</WarningLevel>
3614
</PropertyGroup>
3715
<ItemGroup>
38-
<Reference Include="DevExpress.Charts.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
39-
<Reference Include="DevExpress.Data.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
40-
<Reference Include="DevExpress.DataAccess.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
41-
<Reference Include="DevExpress.Docs.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
42-
<Reference Include="DevExpress.Office.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
43-
<Reference Include="DevExpress.Pdf.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
44-
<Reference Include="DevExpress.Printing.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
45-
<Reference Include="DevExpress.Sparkline.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
46-
<Reference Include="DevExpress.Spreadsheet.v19.2.Core, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
47-
<Reference Include="DevExpress.XtraCharts.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
48-
<Reference Include="System" />
49-
<Reference Include="System.Core" />
50-
<Reference Include="System.Xml.Linq" />
51-
<Reference Include="System.Data.DataSetExtensions" />
52-
<Reference Include="Microsoft.CSharp" />
53-
<Reference Include="System.Data" />
54-
<Reference Include="System.Net.Http" />
55-
<Reference Include="System.Xml" />
56-
</ItemGroup>
57-
<ItemGroup>
58-
<Compile Include="Program.vb" />
59-
<Compile Include="Properties\AssemblyInfo.vb" />
16+
<None Update="Documents\encrypted.xlsx">
17+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
18+
</None>
6019
</ItemGroup>
6120
<ItemGroup>
62-
<None Include="App.config" />
63-
<None Include="Documents\encrypted.xlsx">
64-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
65-
</None>
21+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
22+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
23+
<PackageReference Include="DevExpress.Document.Processor" Version="24.2.3" />
24+
<PackageReference Include="DevExpress.Drawing.Skia" Version="24.2.3" />
6625
</ItemGroup>
67-
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
68-
</Project>
26+
</Project>

VB/EncryptionExample/Program.vb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Namespace EncryptionExample
1212
Shared Sub Main(ByVal args As String())
1313
Dim workbook As Workbook = New Workbook()
1414
workbook.Options.Import.Password = "123"
15-
workbook.LoadDocument("Documents\encrypted.xlsx")
15+
workbook.LoadDocument("..\..\..\Documents\encrypted.xlsx")
1616
AddHandler workbook.EncryptedFilePasswordRequest, AddressOf Workbook_EncryptedFilePasswordRequest
1717
AddHandler workbook.EncryptedFilePasswordCheckFailed, AddressOf Workbook_EncryptedFilePasswordCheckFailed
1818
AddHandler workbook.InvalidFormatException, AddressOf Workbook_InvalidFormatException

config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"autoGenerateVb": true,
2+
"autoGenerateVb": false,
33
"runOnWeb": false
44
}

0 commit comments

Comments
 (0)