Skip to content

Commit 906341a

Browse files
committed
Merge pull request #77 from AArnott/fix76
Add support for newer ('dotnet') PCL project types
2 parents fa7ff5c + 007b7cc commit 906341a

7 files changed

Lines changed: 33 additions & 6 deletions

File tree

src/ImmutableObjectGraph.Core.NuGet/ImmutableObjectGraph.Core.NuGet.nuproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@
4242
<None Include="ImmutableObjectGraph.nuspec" />
4343
</ItemGroup>
4444
<Import Project="$(NuProjPath)\NuProj.targets" />
45+
<Target Name="CopyAssemblyToLibDotNetFolder" DependsOnTargets="ConvertItems" AfterTargets="ConvertItems">
46+
<ItemGroup>
47+
<File Include="@(File)"
48+
Condition=" '%(File.TargetFrameworkMoniker)' == '.NETPortable,Version=v4.5,Profile=Profile259' ">
49+
<TargetPath>lib\dotnet\%(FileName)%(Extension)</TargetPath>
50+
</File>
51+
</ItemGroup>
52+
</Target>
4553
</Project>

src/ImmutableObjectGraph.Core.NuGet/ImmutableObjectGraph.nuspec

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@
1111
<copyright></copyright>
1212
<tags></tags>
1313
<dependencies>
14-
<group targetFramework="portable-net45+win+wp80+MonoAndroid10+xamarinios10+MonoTouch10">
14+
<group targetFramework="portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10">
1515
<dependency id="System.Collections.Immutable" version="1.1.37" />
1616
<dependency id="Validation" version="2.2.8" />
1717
</group>
18+
<group targetFramework="dotnet">
19+
<dependency id="System.Collections" version="4.0.0" />
20+
<dependency id="System.Collections.Immutable" version="1.1.37" />
21+
<dependency id="System.Diagnostics.Debug" version="4.0.0" />
22+
<dependency id="System.IO" version="4.0.0" />
23+
<dependency id="System.Linq" version="4.0.0" />
24+
<dependency id="System.Runtime" version="4.0.0" />
25+
<dependency id="System.Runtime.Extensions" version="4.0.0" />
26+
<dependency id="Validation" version="2.2.8" />
27+
</group>
1828
</dependencies>
1929
</metadata>
2030
</package>

src/ImmutableObjectGraph.Generation.NuGet/ImmutableObjectGraph.Generation.NuGet.nuproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,20 @@
4444
<ProjectReference Include="..\ImmutableObjectGraph.Core.NuGet\ImmutableObjectGraph.Core.NuGet.nuproj" />
4545
</ItemGroup>
4646
<ItemGroup>
47-
<Content Include="build\portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10\ImmutableObjectGraph.Generation.targets" />
47+
<Content Include="build\ImmutableObjectGraph.Generation.targets" />
4848
<Content Include="Readme.txt" />
4949
</ItemGroup>
5050
<ItemGroup>
5151
<None Include="ImmutableObjectGraph.Generation.nuspec" />
5252
<None Include="project.json" />
5353
</ItemGroup>
5454
<Import Project="$(NuProjPath)\NuProj.targets" />
55+
<Target Name="CopyAssemblyToLibDotNetFolder" DependsOnTargets="ConvertItems" AfterTargets="ConvertItems">
56+
<ItemGroup>
57+
<File Include="@(File)"
58+
Condition=" '%(File.TargetFrameworkMoniker)' == '.NETPortable,Version=v4.5,Profile=Profile259' ">
59+
<TargetPath>lib\dotnet\%(FileName)%(Extension)</TargetPath>
60+
</File>
61+
</ItemGroup>
62+
</Target>
5563
</Project>

src/ImmutableObjectGraph.Generation.NuGet/ImmutableObjectGraph.Generation.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<copyright></copyright>
1212
<tags></tags>
1313
<dependencies>
14-
<group targetFramework=".NETPortable0.0-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10">
14+
<group targetFramework="portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10">
1515
<dependency id="CodeGeneration.Roslyn.BuildTime" version="0.1.57" />
1616
</group>
1717
</dependencies>

src/ImmutableObjectGraph.Generation.NuGet/build/portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10/ImmutableObjectGraph.Generation.targets renamed to src/ImmutableObjectGraph.Generation.NuGet/build/ImmutableObjectGraph.Generation.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
4-
<GeneratorAssemblySearchPaths Include="$(MSBuildThisFileDirectory)..\..\tools" />
4+
<GeneratorAssemblySearchPaths Include="$(MSBuildThisFileDirectory)..\tools" />
55
</ItemGroup>
66
</Project>

src/ImmutableObjectGraph/ImmutableObjectGraph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RootNamespace>ImmutableObjectGraph</RootNamespace>
1313
<AssemblyName>ImmutableObjectGraph</AssemblyName>
1414
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
15-
<TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
15+
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
1616
<FileAlignment>512</FileAlignment>
1717
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.\</SolutionDir>
1818
<RestorePackages>true</RestorePackages>

src/ImmutableObjectGraph/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"version": "0.10.48-beta-gea4a31bbc5",
1313
"suppressParent": "none"
1414
},
15+
"NuSpec.ReferenceGenerator": "1.4.2",
1516
"ReadOnlySourceTree": {
1617
"version": "0.1.37-beta",
1718
"suppressParent": "none"
@@ -20,7 +21,7 @@
2021
"Validation": "2.2.8"
2122
},
2223
"frameworks": {
23-
".NETPortable,Version=v4.5,Profile=Profile78": { }
24+
".NETPortable,Version=v4.5,Profile=Profile259": { }
2425
},
2526
"runtimes": {
2627
"win": { }

0 commit comments

Comments
 (0)