Skip to content

Commit 05ca8b1

Browse files
committed
Target portable profile for the API
1 parent 64b9a7f commit 05ca8b1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.fsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let testOutput = "TestResults"
5050

5151
let nugetDir = binDir @@ "nuget"
5252
let workingDir = binDir @@ "build"
53-
let libDir40 = workingDir @@ @"lib\net40\"
53+
let libDirPortable = workingDir @@ @"lib\portable-net45+netcore45\"
5454
let libDir45 = workingDir @@ @"lib\net45\"
5555
let nugetExe = FullName @"src\.nuget\NuGet.exe"
5656
let slnFile = "./src/Reactive.Streams.sln"
@@ -239,7 +239,7 @@ let createNugetPackages _ =
239239
nuspec
240240

241241
// Copy dll, pdb and xml to libdir = workingDir/lib/net4x/
242-
let libDir = if project.Contains ".TCK" then libDir45 else libDir40
242+
let libDir = if project.Contains ".TCK" then libDir45 else libDirPortable
243243
ensureDirectory libDir
244244
!! (releaseDir @@ project + ".dll")
245245
++ (releaseDir @@ project + ".pdb")

src/api/Reactive.Streams/Reactive.Streams.csproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>Reactive.Streams</RootNamespace>
1111
<AssemblyName>Reactive.Streams</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<Prefer32Bit>false</Prefer32Bit>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>
@@ -29,6 +30,7 @@
2930
<DefineConstants>TRACE</DefineConstants>
3031
<ErrorReport>prompt</ErrorReport>
3132
<WarningLevel>4</WarningLevel>
33+
<Prefer32Bit>false</Prefer32Bit>
3234
</PropertyGroup>
3335
<ItemGroup>
3436
<Reference Include="System" />

0 commit comments

Comments
 (0)