GithubHelp home page GithubHelp logo

Comments (4)

andrewlock avatar andrewlock commented on June 2, 2024 1

Currently, there's a separate load context for each solution directory, so maybe that could be a brittle approach? Note that when you're not using a solution, the project's parent directory is assumed to be the solution directory.

I think this could explain the issue then, both of these projects are in the same solution directory in our case 🙂 And they're also in the same parent directory

from fody.

ltrzesniewski avatar ltrzesniewski commented on June 2, 2024

My guess would be that you didn't put the PrivateAssets="All" attribute on all the Fody and InlineIL.Fody PackageReference items, could you check that?

Datadog.Trace.Runner shouldn't be trying to run Fody at all.

from fody.

andrewlock avatar andrewlock commented on June 2, 2024

(Un) fortunately I checked that already.

Datadog.Trace has this:

<PackageReference Include="Fody" Version="6.8.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="InlineIL.Fody" Version="1.8.0" PrivateAssets="All" />

and Datadog.Trace.Coverage.Collector has the same (with the now-updated InlineIL.Fody version):

<PackageReference Include="Fody" Version="6.8.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="InlineIL.Fody" Version="1.8.0" PrivateAssets="All" />

from fody.

ltrzesniewski avatar ltrzesniewski commented on June 2, 2024

Well, that would have been an easy explanation. In any case, Fody is trying to load two different versions of InlineIL I suppose, and that doesn't go very well.

The build log you posted seems to show the failure happens while building Datadog.Trace.Coverage.collector though, which may indeed point to an issue caused by node reuse.

While we probably should improve the error message, understanding the issue would be useful, since the assembly is loaded in a separate AssemblyLoadContext in order to avoid such problems in the first place... 😕

Currently, there's a separate load context for each solution directory, so maybe that could be a brittle approach? Note that when you're not using a solution, the project's parent directory is assumed to be the solution directory.

from fody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.