Skip to content

Commit

Permalink
Update nuspec for release.
Browse files Browse the repository at this point in the history
Fix/suppress from release mode CA warnings.
Should close #46.
  • Loading branch information
Troy Willmot committed Jan 7, 2017
1 parent 8db99ee commit 0898f91
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Main/PublishNugetPackage.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
echo Press any key to publish
pause
".nuget\NuGet.exe" push Rssdp.2.0.7-beta.nupkg
".nuget\NuGet.exe" push Rssdp.2.0.7.nupkg
pause
2 changes: 1 addition & 1 deletion src/Main/RSSDP.NetFx40/Rssdp.NetFx40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\lib\net40\</OutputPath>
<DefineConstants>TRACE;CODE_ANALYSIS;SUPPORTS_TRACE</DefineConstants>
<DefineConstants>TRACE;CODE_ANALYSIS;CODE_ANALYSIS;SUPPORTS_TRACE;SUPPORTS_SERIALISATION</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand Down
14 changes: 14 additions & 0 deletions src/Main/RSSDP.Portable/SocketClosedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace Rssdp
/// <summary>
/// To be thrown when a socket is unexpectedly closed, or accessed in a closed state.
/// </summary>
#if SUPPORTS_SERIALISATION
[Serializable]
#endif
public class SocketClosedException : Exception
{
/// <summary>
Expand All @@ -25,5 +28,16 @@ public SocketClosedException(string message) : base(message) { }
/// <param name="message">The error message associated with the error.</param>
/// <param name="inner">Any inner exception that is wrapped by this exception.</param>
public SocketClosedException(string message, Exception inner) : base(message, inner) { }

#if SUPPORTS_SERIALISATION
/// <summary>
/// Deserialisation constructor.
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected SocketClosedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
{
}
#endif
}
}
Binary file modified src/Main/RSSDP.WindowsPhoneSL/GlobalSuppressions.cs
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Main/Rssdp.Net45/Rssdp.Net45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\lib\net45\</OutputPath>
<DefineConstants>TRACE;CODE_ANALYSIS;SUPPORTS_TRACE</DefineConstants>
<DefineConstants>TRACE;CODE_ANALYSIS;CODE_ANALYSIS;SUPPORTS_TRACE;SUPPORTS_SERIALISATION</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand Down
Binary file modified src/Main/Rssdp.NetCore/GlobalSuppressions.cs
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Main/Rssdp.NetCore/Rssdp.NetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\lib\netstandard13\</OutputPath>
<DefineConstants>TRACE;CODE_ANALYSIS;NETSTANDARD;NETSTANDARD1_3;CODE_ANALYSIS</DefineConstants>
<DefineConstants>TRACE;CODE_ANALYSIS;CODE_ANALYSIS;NETSTANDARD;NETSTANDARD1_3;CODE_ANALYSIS;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\lib\netstandard13\Rssdp.NetCore.XML</DocumentationFile>
Expand Down
7 changes: 5 additions & 2 deletions src/Main/Rssdp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Rssdp</id>
<version>2.0.7-beta</version>
<version>2.0.7</version>
<title>Rssdp</title>
<authors>Troy Willmot</authors>
<owners>Yortw</owners>
Expand All @@ -16,8 +16,11 @@
Reduced dependencies for Xamarin/Net45+ projects.
Improvements to alive notifications to ensure compatibility with non-conforming devices.
Added NotificationBroadcastInterval property to publisher to allow for configurable, fixed period, alive notification broadcasts.
Improved handling of unexpectedly closed sockets.
Improved logging capability.
Support for publishing UPnP services (previously only devices supported)
</releaseNotes>
<copyright>Copyright 2016</copyright>
<copyright>Copyright 2017</copyright>
<language>en-AU</language>
<tags>portable xamarin ios android windowsphone winrt uwp mobile ssdp discovery device service protocol upnp netfx40 .net4</tags>
<dependencies>
Expand Down

0 comments on commit 0898f91

Please sign in to comment.