Skip to content

Commit

Permalink
Improvements in PropertyChanged.Fody (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Nov 27, 2024
1 parent b749ef1 commit 1b5012b
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>library</OutputType>
<TargetFrameworks>net6.0;net472</TargetFrameworks>
Expand Down Expand Up @@ -56,6 +56,11 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<PropertyChangedAnalyzerConfiguration>
<IsCodeGeneratorDisabled>false</IsCodeGeneratorDisabled>
</PropertyChangedAnalyzerConfiguration>
</PropertyGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="key.snk" />
Expand Down Expand Up @@ -84,6 +89,7 @@
<PackageReference Include="Polly" Version="7.2.4" />
<PackageReference Include="PropertyChanged.Fody">
<Version>4.1.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.IO.Ports">
<Version>8.0.0</Version>
Expand All @@ -93,4 +99,4 @@
<Content Include="FodyWeavers.xml" />
</ItemGroup>
<Import Project="..\nanoFramework.Tools.DebugLibrary.Shared\nanoFramework.Tools.DebugLibrary.Net.projitems" Label="Shared" />
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class DeviceConfiguration
{
/////////////////////////////////////////////////////////////

public class NetworkConfigurationProperties : NetworkConfigurationPropertiesBase
public partial class NetworkConfigurationProperties : NetworkConfigurationPropertiesBase
{
internal const uint EmptySpecificConfigValue = uint.MaxValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace nanoFramework.Tools.Debugger
{
public partial class DeviceConfiguration
{
public class Wireless80211ConfigurationProperties : Wireless80211ConfigurationPropertiesBase
public partial class Wireless80211ConfigurationProperties : Wireless80211ConfigurationPropertiesBase
{
public bool IsUnknown { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace nanoFramework.Tools.Debugger
{
public partial class DeviceConfiguration
{
public class WirelessAPConfigurationProperties : WirelessAPConfigurationPropertiesBase
public partial class WirelessAPConfigurationProperties : WirelessAPConfigurationPropertiesBase
{
public bool IsUnknown { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace nanoFramework.Tools.Debugger
{
public partial class DeviceConfiguration
{
public class X509CaRootBundleProperties : X509CaRootBundlePropertiesBase
public partial class X509CaRootBundleProperties : X509CaRootBundlePropertiesBase
{
public bool IsUnknown { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace nanoFramework.Tools.Debugger
{
public partial class DeviceConfiguration
{
public class X509DeviceCertificatesProperties : X509DeviceCertificatesPropertiesBase
public partial class X509DeviceCertificatesProperties : X509DeviceCertificatesPropertiesBase
{
public bool IsUnknown { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace nanoFramework.Tools.Debugger
{
[AddINotifyPropertyChangedInterface]
public class NetworkConfigurationPropertiesBase
public partial class NetworkConfigurationPropertiesBase
{
public IPAddress IPv4Address { get; set; }
public IPAddress IPv4DNSAddress1 { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace nanoFramework.Tools.Debugger
/// <summary>
/// Base class for wireless 802.11 configuration properties.
/// </summary>
public class Wireless80211ConfigurationPropertiesBase : WirelessConfigurationPropertiesBase
public partial class Wireless80211ConfigurationPropertiesBase : WirelessConfigurationPropertiesBase
{
// No additional properties needed for now
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace nanoFramework.Tools.Debugger
/// <summary>
/// Base class for wireless Access Point configuration properties.
/// </summary>
public class WirelessAPConfigurationPropertiesBase : WirelessConfigurationPropertiesBase
public partial class WirelessAPConfigurationPropertiesBase : WirelessConfigurationPropertiesBase
{
/// <summary>
/// Channel for the network.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace nanoFramework.Tools.Debugger
/// Base class for common wireless configuration properties.
/// </summary>
[AddINotifyPropertyChangedInterface]
public class WirelessConfigurationPropertiesBase
public partial class WirelessConfigurationPropertiesBase
{
/// <summary>
/// Id of the configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace nanoFramework.Tools.Debugger
{
[AddINotifyPropertyChangedInterface]
public class X509CaRootBundlePropertiesBase
public partial class X509CaRootBundlePropertiesBase
{
private byte[] _certificate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace nanoFramework.Tools.Debugger
{
[AddINotifyPropertyChangedInterface]
public class X509DeviceCertificatesPropertiesBase
public partial class X509DeviceCertificatesPropertiesBase
{
private byte[] _certificate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace nanoFramework.Tools.Debugger
{
public class NanoDevice<T> : NanoDeviceBase, IDisposable, INanoDevice where T : new()
public partial class NanoDevice<T> : NanoDeviceBase, IDisposable, INanoDevice where T : new()
{
private bool _disposed;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace nanoFramework.Tools.Debugger
{
[AddINotifyPropertyChangedInterface]
public abstract class NanoDeviceBase
public abstract partial class NanoDeviceBase
{
/// <summary>
/// nanoFramework debug engine.
Expand All @@ -43,6 +43,7 @@ public abstract class NanoDeviceBase
/// <summary>
/// Device description.
/// </summary>
[DependsOn(nameof(TargetName), nameof(ConnectionId))]
public string Description => $"{TargetName} @ {ConnectionId}";

/// <summary>
Expand Down

0 comments on commit 1b5012b

Please sign in to comment.