Skip to content

Commit

Permalink
Add missing reference to System.Reflection.TypeExtensions in v3 packa…
Browse files Browse the repository at this point in the history
…ges #326
  • Loading branch information
Rian Stockbower committed Oct 19, 2017
1 parent 7599976 commit bd123a8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
24 changes: 22 additions & 2 deletions NugetTester/NugetTester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ static void Main(string[] args)
{
try
{
var hello = "Hello" + "Goodbye";
Console.WriteLine(hello);
var c = new Calendar();
c.Events.Add(GetSampleEvent());
var serialized = SerializeToString(GetSampleEvent());
Console.WriteLine(serialized);

var unserialized = DeserializeCalendarEvent(serialized);
Console.WriteLine(unserialized.Start);
}
catch (Exception e)
{
Expand All @@ -27,6 +31,22 @@ static void Main(string[] args)
Console.ReadLine();
}

private static readonly DateTime _now = DateTime.Now;
private static readonly DateTime _later = _now.AddHours(1);
private static CalendarEvent GetSampleEvent()
{
var e = new CalendarEvent
{
Start = new CalDateTime(_now),
End = new CalDateTime(_later),
RecurrenceRules = new List<RecurrencePattern> {GetSampleRecurrenceRules()}
};
return e;
}

private static RecurrencePattern GetSampleRecurrenceRules()
=> new RecurrencePattern(FrequencyType.Daily, 1);

private static CalendarEvent DeserializeCalendarEvent(string ical)
{
var calendar = DeserializeCalendar(ical);
Expand Down
3 changes: 2 additions & 1 deletion net-core/Ical.Net/Ical.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Ical.Net</id>
<version>3.0.14</version>
<version>3.0.15</version>
<title>Ical.Net</title>
<authors>Rian Stockbower, Douglas Day, M. David Peterson</authors>
<owners>Rian Stockbower</owners>
Expand All @@ -16,6 +16,7 @@
<dependencies>
<dependency id="NodaTime" version="2.0.2" />
<dependency id="System.Runtime.Serialization.Primitives" version="4.3.0" />
<dependency id="System.Reflection.TypeExtensions" version="4.3.0" />
</dependencies>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion net-core/Ical.Net/Ical.Net/Ical.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="NodaTime" Version="2.0.2" />
<PackageReference Include="System.Linq.Parallel" Version="4.3.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" />
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A listing of what each [Nuget package](https://www.nuget.org/packages/Ical.Net) version represents.

### v3
* 3.0.15: .NET Standard version (aka v3 aka `net-core`) is missing System.Reflection.TypeExtensions dependency. [#326](https://github.com/rianjs/ical.net/issues/326)
* 3.0.14: .NET Standard version (aka v3 aka `net-core`) is missing System.Runtime.Serialization.Primitives dependency. [#324](https://github.com/rianjs/ical.net/issues/324)
* 3.0.13: `DTSTART` is not required for `VTODO` components. [PR 322](https://github.com/rianjs/ical.net/pull/322)
* 3.0.12: Several improvements rolled up:
Expand Down

0 comments on commit bd123a8

Please sign in to comment.