Skip to content

Commit

Permalink
add tuple for .net 3.5; update nuget-build.ps1 to build .net 3.5 usin…
Browse files Browse the repository at this point in the history
…g same config as tests (release + integration tests)
  • Loading branch information
judwhite committed Mar 27, 2015
1 parent 091ab50 commit e56e1b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions NsqSharp.Tests/Bus/BusCurrentMessageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,21 @@ public static Tuple<Message, ICurrentMessageInformation> GetMessageInfo()
}
}
}

#if NETFX_3_5
internal class Tuple<TItem1, TItem2>
{
private readonly TItem1 _item1;
private readonly TItem2 _item2;

public Tuple(TItem1 item1, TItem2 item2)
{
_item1 = item1;
_item2 = item2;
}

public TItem1 Item1 { get { return _item1; } }
public TItem2 Item2 { get { return _item2; } }
}
#endif
}
3 changes: 2 additions & 1 deletion nuget-build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Set-ExecutionPolicy -Scope CurrentUser Unrestricted
# Make sure msbuild.exe is in your path - C:\Windows\Microsoft.NET\Framework64\v4.0.30319
# Make sure nuget.exe is in your path
# nuget push NsqSharp.x.y.z.nupkg

### Build Tests

Expand Down Expand Up @@ -98,7 +99,7 @@ if ($LastExitCode -ne 0) {
Return
}

msbuild NsqSharp/NsqSharp.csproj /p:TargetFrameworkVersion=v3.5 /p:Configuration=Release /t:Clean /t:Rebuild /tv:4.0 /p:OutputPath="../nuget/lib/net35"
msbuild NsqSharp/NsqSharp.csproj /p:TargetFrameworkVersion=v3.5 /p:Configuration="Integration Tests" /t:Clean /t:Rebuild /tv:4.0 /p:OutputPath="../nuget/lib/net35"
if ($LastExitCode -ne 0) {
echo ".NET 3.5 Build failed. Process exited with error code $LastExitCode."
Return
Expand Down

0 comments on commit e56e1b6

Please sign in to comment.