Skip to content

Commit 349ea80

Browse files
committed
Fix automapper dependency
If we don't specify the target framework, the packaging project will just take a dependency with no framework. This doesn't work when we *also* have framework-specific dependencies, and will cause the dependency to be lost entirely when nuget performs a restore. In other words, if you have non-framework specific dependencies AND framework specific dependencies, you will only get the latter in the restore graph.
1 parent 7d92c49 commit 349ea80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Merq.DependencyInjection/Merq.DependencyInjection.msbuildproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageReference Include="Devlooped.Extensions.DependencyInjection.Attributed" TargetFramework="$(TargetFramework)" />
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ProjectReference Include="..\Merq.AutoMapper\Merq.AutoMapper.csproj" />
18+
<ProjectReference Include="..\Merq.AutoMapper\Merq.AutoMapper.csproj" TargetFramework="$(TargetFramework)" />
1919
<ProjectReference Include="..\Merq.Core\Merq.Core.csproj" />
2020
<ProjectReference Include="..\Merq\Merq.csproj" />
2121
</ItemGroup>

0 commit comments

Comments
 (0)