This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/tests/SharpRaven.Nancy.UnitTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ public LogModule(IRavenClient ravenClient)
5252 response . EnsureSuccessStatusCode ( ) ;
5353
5454 var result = await response . Content . ReadAsStringAsync ( ) ;
55+ #if ( ! net40 )
5556 var messageId = await ravenClient . CaptureMessageAsync ( "Hello world!!!" ) ;
57+ #else
58+ var messageId = ravenClient . CaptureMessage ( "Hello world!!!" ) ;
59+ #endif
5660
5761 return View [ "log.html" , new { MessageId = messageId } ] ;
5862 } ;
Original file line number Diff line number Diff line change 1717 </PropertyGroup >
1818 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release 4.0|AnyCPU'" >
1919 <OutputPath >bin\Release\net40\</OutputPath >
20- <DefineConstants >TRACE</DefineConstants >
20+ <DefineConstants >TRACE;net40 </DefineConstants >
2121 <Optimize >true</Optimize >
2222 <DebugType >pdbonly</DebugType >
2323 <PlatformTarget >AnyCPU</PlatformTarget >
3838 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug 4.0|AnyCPU'" >
3939 <DebugSymbols >true</DebugSymbols >
4040 <OutputPath >bin\Debug\net40\</OutputPath >
41- <DefineConstants >DEBUG;TRACE </DefineConstants >
41+ <DefineConstants >TRACE; DEBUG;net40 </DefineConstants >
4242 <DebugType >full</DebugType >
4343 <PlatformTarget >AnyCPU</PlatformTarget >
4444 <ErrorReport >prompt</ErrorReport >
You can’t perform that action at this time.
0 commit comments