Browse Source

Update to .NET 8

pull/36/head
Igor Velikorossov 2 years ago
parent
commit
5457e9a408
  1. 2
      Directory.Build.props
  2. 2
      ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj
  3. 3
      Project/ICSharpCode.TextEditor.csproj
  4. 5
      Project/Src/Document/HighlightingStrategy/HighlightingColorNotFoundException.cs
  5. 5
      Project/Src/Document/HighlightingStrategy/HighlightingDefinitionInvalidException.cs
  6. 2
      Test/ICSharpCode.TextEditor.Tests.csproj

2
Directory.Build.props

@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<DeterministicSourcePaths Condition="'$(EnableSourceLink)' == ''">false</DeterministicSourcePaths>
</PropertyGroup>

2
ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

3
Project/ICSharpCode.TextEditor.csproj

@ -2,9 +2,10 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<DeterministicSourcePaths Condition="'$(EnableSourceLink)' == ''">false</DeterministicSourcePaths>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>
<ItemGroup>

5
Project/Src/Document/HighlightingStrategy/HighlightingColorNotFoundException.cs

@ -10,7 +10,6 @@ using System.Runtime.Serialization;
namespace ICSharpCode.TextEditor.Document
{
[Serializable]
public class HighlightingColorNotFoundException : Exception
{
public HighlightingColorNotFoundException()
@ -24,9 +23,5 @@ namespace ICSharpCode.TextEditor.Document
public HighlightingColorNotFoundException(string message, Exception innerException) : base(message, innerException)
{
}
protected HighlightingColorNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}

5
Project/Src/Document/HighlightingStrategy/HighlightingDefinitionInvalidException.cs

@ -15,7 +15,6 @@ namespace ICSharpCode.TextEditor.Document
/// You get this exception only once per highlighting definition, after that the definition
/// is replaced with the default highlighter.
/// </summary>
[Serializable]
public class HighlightingDefinitionInvalidException : Exception
{
public HighlightingDefinitionInvalidException()
@ -29,9 +28,5 @@ namespace ICSharpCode.TextEditor.Document
public HighlightingDefinitionInvalidException(string message, Exception innerException) : base(message, innerException)
{
}
protected HighlightingDefinitionInvalidException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}

2
Test/ICSharpCode.TextEditor.Tests.csproj

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<OutputPath>..\..\..\..\bin\UnitTests</OutputPath>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

Loading…
Cancel
Save