Skip to content

Commit

Permalink
Fix automapper dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kzu committed Jul 10, 2023
1 parent 7d92c49 commit 349ea80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Include="Devlooped.Extensions.DependencyInjection.Attributed" TargetFramework="$(TargetFramework)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Merq.AutoMapper\Merq.AutoMapper.csproj" />
<ProjectReference Include="..\Merq.AutoMapper\Merq.AutoMapper.csproj" TargetFramework="$(TargetFramework)" />
<ProjectReference Include="..\Merq.Core\Merq.Core.csproj" />
<ProjectReference Include="..\Merq\Merq.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 349ea80

Please sign in to comment.