Skip to content

Commit a91a9c5

Browse files
committed
Upgrade to .NET 8
1 parent b356a96 commit a91a9c5

10 files changed

Lines changed: 473 additions & 236 deletions

File tree

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
4-
5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("ServMon")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("ServMon")]
13-
[assembly: AssemblyCopyright("Copyright © 2014")]
144
[assembly: AssemblyTrademark("")]
155
[assembly: AssemblyCulture("")]
166

@@ -21,16 +11,3 @@
2111

2212
// The following GUID is for the ID of the typelib if this project is exposed to COM
2313
[assembly: Guid("f17a8e3e-d2bc-40dc-aef6-bc030df94d0b")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

Console/ServMon/ServMon.csproj

Lines changed: 19 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,30 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" 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>{2B689AC8-A03C-496F-BA63-C83A015A07B5}</ProjectGuid>
83
<OutputType>Exe</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>ServMon</RootNamespace>
11-
<AssemblyName>ServMon</AssemblyName>
12-
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<TargetFrameworkProfile />
154
</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-
<Prefer32Bit>false</Prefer32Bit>
26-
</PropertyGroup>
27-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28-
<PlatformTarget>AnyCPU</PlatformTarget>
29-
<DebugType>pdbonly</DebugType>
30-
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE</DefineConstants>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
5+
<PropertyGroup>
6+
<TargetFramework>net8.0</TargetFramework>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8+
<AssemblyTitle>ServMon</AssemblyTitle>
9+
<Product>ServMon</Product>
10+
<Copyright>Copyright © 2014</Copyright>
11+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
12+
<FileVersion>1.0.0.0</FileVersion>
3513
</PropertyGroup>
3614
<ItemGroup>
37-
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
38-
<HintPath>..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
39-
</Reference>
40-
<Reference Include="System" />
41-
<Reference Include="System.Core" />
42-
<Reference Include="System.Web" />
43-
<Reference Include="System.Xml.Linq" />
44-
<Reference Include="System.Data.DataSetExtensions" />
45-
<Reference Include="Microsoft.CSharp" />
46-
<Reference Include="System.Data" />
47-
<Reference Include="System.Xml" />
48-
<Reference Include="WCMS.Common, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
49-
<SpecificVersion>False</SpecificVersion>
50-
<HintPath>..\..\Libraries\WCMS.Common.dll</HintPath>
51-
</Reference>
52-
</ItemGroup>
53-
<ItemGroup>
54-
<Compile Include="Constants.cs" />
55-
<Compile Include="FtpService.cs" />
56-
<Compile Include="CommonService.cs" />
57-
<Compile Include="IServiceType.cs" />
58-
<Compile Include="HttpService.cs" />
59-
<Compile Include="MailSender.cs" />
60-
<Compile Include="MailSettings.cs" />
61-
<Compile Include="ServManager.cs" />
62-
<Compile Include="Program.cs" />
63-
<Compile Include="Properties\AssemblyInfo.cs" />
64-
<Compile Include="ServResponse.cs" />
65-
<Compile Include="SmsSender.cs" />
66-
<Compile Include="SmsSettings.cs" />
15+
<Content Include="config.xml">
16+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
17+
</Content>
6718
</ItemGroup>
6819
<ItemGroup>
69-
<None Include="App.config" />
70-
<None Include="packages.config" />
71-
<None Include="services.json" />
20+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
21+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
22+
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters" Version="1.3.0" />
23+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
7224
</ItemGroup>
7325
<ItemGroup>
74-
<Content Include="config.xml">
75-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
76-
</Content>
26+
<Reference Include="WCMS.Common">
27+
<HintPath>..\..\Libraries\WCMS.Common.dll</HintPath>
28+
</Reference>
7729
</ItemGroup>
78-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
80-
Other similar extension points exist, see Microsoft.Common.targets.
81-
<Target Name="BeforeBuild">
82-
</Target>
83-
<Target Name="AfterBuild">
84-
</Target>
85-
-->
8630
</Project>

Console/ServMon/packages.config

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

0 commit comments

Comments
 (0)