Skip to content

Commit

Permalink
Added support for .NET 9.0 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannBlais authored Dec 7, 2024
1 parent 0ac6fe5 commit 8ea674b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 26 deletions.
16 changes: 8 additions & 8 deletions InfoBox/Controls/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public SideBorder SideBorder
/// Gets or sets the border width
/// </summary>
/// <value>The width of the side border.</value>
[Category("Side Border"), Description("Defines the width of the side border")]
[Category("Side Border"), Description("Defines the width of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public int SideBorderWidth
{
get
Expand All @@ -219,7 +219,7 @@ public int SideBorderWidth
/// Gets or sets the top border color
/// </summary>
/// <value>The top color of the side border.</value>
[Category("Side Border"), Description("Defines the top color of the side border")]
[Category("Side Border"), Description("Defines the top color of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color SideBorderTopColor
{
get
Expand All @@ -238,7 +238,7 @@ public Color SideBorderTopColor
/// Gets or sets the bottom border color
/// </summary>
/// <value>The bottom color of the side border.</value>
[Category("Side Border"), Description("Defines the bottom color of the side border")]
[Category("Side Border"), Description("Defines the bottom color of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color SideBorderBottomColor
{
get
Expand All @@ -256,7 +256,7 @@ public Color SideBorderBottomColor
/// <summary>
/// Gets or sets the text color when the button is disabled
/// </summary>
[Category("Appearance"), Description("Defines the text color when the button is disabled")]
[Category("Appearance"), Description("Defines the text color when the button is disabled"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color DisabledForeColor
{
get
Expand All @@ -274,7 +274,7 @@ public Color DisabledForeColor
/// <summary>
/// Gets or sets the alignment of the text
/// </summary>
[Category("Appearance"), Description("Defines the alignment of the text")]
[Category("Appearance"), Description("Defines the alignment of the text"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public ContentAlignment TextAlign
{
get
Expand All @@ -293,7 +293,7 @@ public ContentAlignment TextAlign
/// <summary>
/// Gets or sets the button text
/// </summary>
[Category("Appearance"), Description("Defines the text of the button"), Browsable(true)]
[Category("Appearance"), Description("Defines the text of the button"), Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public override string Text
{
get
Expand All @@ -312,7 +312,7 @@ public override string Text
/// Gets or sets a value indicating whether the button remains clicked after mouse button is released.
/// </summary>
/// <value><c>true</c> if the button remains clicked after mouse button is released; otherwise, <c>false</c>.</value>
[Category("Behavior"), Description("Defines if the button remains clicked after mouse button is released"), DefaultValue("false")]
[Category("Behavior"), Description("Defines if the button remains clicked after mouse button is released"), DefaultValue("false"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public bool PersistantMode
{
get
Expand All @@ -331,7 +331,7 @@ public bool PersistantMode
/// Gets or sets a value indicating whether this <see cref="Button"/> is pushed.
/// </summary>
/// <value><c>true</c> if pushed; otherwise, <c>false</c>.</value>
[Category("Behavior"), Description("Defines if button appears as pushed"), Browsable(true)]
[Category("Behavior"), Description("Defines if button appears as pushed"), Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public bool Pushed
{
get
Expand Down
6 changes: 3 additions & 3 deletions InfoBox/Controls/Label.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Label()
/// Gets or sets the text color when the label is disabled
/// </summary>
/// <value>The color of the disabled fore.</value>
[Category("Appearance"), Description("Defines the text color when the label is disabled")]
[Category("Appearance"), Description("Defines the text color when the label is disabled"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color DisabledForeColor
{
get
Expand All @@ -72,7 +72,7 @@ public Color DisabledForeColor
/// Gets or sets the alignment of the text
/// </summary>
/// <value>The text align.</value>
[Category("Appearance"), Description("Defines the alignment of the text")]
[Category("Appearance"), Description("Defines the alignment of the text"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public ContentAlignment TextAlign
{
get
Expand All @@ -93,7 +93,7 @@ public ContentAlignment TextAlign
/// </summary>
/// <value></value>
/// <returns>A <see cref="T:System.String"></see>.</returns>
[Category("Appearance"), Description("Defines the text of the label"), Browsable(true)]
[Category("Appearance"), Description("Defines the text of the label"), Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public override string Text
{
get
Expand Down
9 changes: 4 additions & 5 deletions InfoBox/Controls/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public Panel()
/// Gets or sets if a custom border is shown on the sides of the control
/// </summary>
/// <value>The side border.</value>
[Category("Side Border"), Description("Defines if a special side border should be displayed"),
DefaultValue("None")]
[Category("Side Border"), Description("Defines if a special side border should be displayed"), DefaultValue("None")]
public SideBorder SideBorder
{
get
Expand All @@ -81,7 +80,7 @@ public SideBorder SideBorder
/// Gets or sets the border width
/// </summary>
/// <value>The width of the side border.</value>
[Category("Side Border"), Description("Defines the width of the side border")]
[Category("Side Border"), Description("Defines the width of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public int SideBorderWidth
{
get
Expand All @@ -105,7 +104,7 @@ public int SideBorderWidth
/// Gets or sets the top border color
/// </summary>
/// <value>The top color of the side border.</value>
[Category("Side Border"), Description("Defines the top color of the side border")]
[Category("Side Border"), Description("Defines the top color of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color SideBorderTopColor
{
get
Expand All @@ -124,7 +123,7 @@ public Color SideBorderTopColor
/// Gets or sets the bottom border color
/// </summary>
/// <value>The bottom color of the side border.</value>
[Category("Side Border"), Description("Defines the bottom color of the side border")]
[Category("Side Border"), Description("Defines the bottom color of the side border"), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color SideBorderBottomColor
{
get
Expand Down
13 changes: 7 additions & 6 deletions InfoBox/InfoBox.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ InformationBox is the simplest and easiest way to create personalized MessageBox
Stop wasting time developing your own custom MessageBox, everything you need is already available. Just customize your MessageBox using the visual designer and the code is automatically generated !</description>
<summary>InformationBox (.NET 4.0+) is a flexible alternative to the default MessageBox included in the System.Windows.Forms namespace</summary>
<releaseNotes>
- Added support for .NET 8.0 (Windows)
- Removed support for .NET 7.0 (Windows)
- Added support for .NET 9.0 (Windows)
</releaseNotes>
<copyright>Copyright 2022</copyright>
<copyright>Copyright 2024</copyright>
<language>en-US</language>
<tags>MessageBox Winforms</tags>
<repository type="git" url="https://github.com/JohannBlais/InformationBox"></repository>
<dependencies>
<group targetFramework="net6.0-windows7.0" />
<group targetFramework="net7.0-windows7.0" />
<group targetFramework="net8.0-windows7.0" />
<group targetFramework="net9.0-windows7.0" />
<group targetFramework="net48" />
</dependencies>
<readme>README.md</readme>
Expand All @@ -38,12 +39,12 @@ Stop wasting time developing your own custom MessageBox, everything you need is
<file src="..\InfoBoxCore\bin\Release\net6.0-windows\InfoBox.dll" target="lib\net6.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net6.0-windows\InfoBox.pdb" target="lib\net6.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net6.0-windows\**\InfoBox.resources.dll" target="lib\net6.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net7.0-windows\InfoBox.dll" target="lib\net7.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net7.0-windows\InfoBox.pdb" target="lib\net7.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net7.0-windows\**\InfoBox.resources.dll" target="lib\net7.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net8.0-windows\InfoBox.dll" target="lib\net8.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net8.0-windows\InfoBox.pdb" target="lib\net8.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net8.0-windows\**\InfoBox.resources.dll" target="lib\net8.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net9.0-windows\InfoBox.dll" target="lib\net9.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net9.0-windows\InfoBox.pdb" target="lib\net9.0-windows7.0\" />
<file src="..\InfoBoxCore\bin\Release\net9.0-windows\**\InfoBox.resources.dll" target="lib\net9.0-windows7.0\" />
<file src="..\README.md" target="\"/>
<file src="..\Logo.png" target="images\" />
</files>
Expand Down
3 changes: 1 addition & 2 deletions InfoBoxCore.Designer.Tests/InfoBoxCore.Designer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>

<TargetFramework>net9.0-windows</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion InfoBoxCore.Designer/InfoBoxCore.Designer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net6.0-windows;net7.0-windows;net8.0-windows</TargetFrameworks>
<TargetFrameworks>net6.0-windows;net8.0-windows;net9.0-windows</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
Expand Down
2 changes: 1 addition & 1 deletion InfoBoxCore/InfoBoxCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net6.0-windows;net7.0-windows;net8.0-windows</TargetFrameworks>
<TargetFrameworks>net6.0-windows;net8.0-windows;net9.0-windows</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
Expand Down

0 comments on commit 8ea674b

Please sign in to comment.