Skip to content

Commit

Permalink
Move "TargetFrameworkMonikerAssemblyAttributesPath" into "Directory.B…
Browse files Browse the repository at this point in the history
…uild.targets"

Per following suggestion by @tmat

> Setting `TargetFrameworkMonikerAssemblyAttributesPath` needs to be
> done after importing SDK targets because `IntermediateOutputPath` is
> set in `Microsoft.Common.CurrentVersion.targets` and not before that.
>
> So I think the best would be to set it in `Directory.Build.targets`
> in the repo root.

Source: shiftkey/dotnetcore-sourcelink-test-bug#1 (comment)
  • Loading branch information
atifaziz committed Apr 8, 2020
1 parent 8aca8d9 commit 91f6566
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)', '$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion src/Fizzler.Systems.HtmlAgilityPack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
</ItemGroup>
<PropertyGroup>
<EmbedUntrackedSource>true</EmbedUntrackedSource>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)', '$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
Expand Down

0 comments on commit 91f6566

Please sign in to comment.