Skip to content

Commit 007b7cc

Browse files
committed
ImmutableObjectGraph.Generation now works for 'dotnet' too
1 parent 7e9a3c7 commit 007b7cc

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

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>

0 commit comments

Comments
 (0)