Comments (4)
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.
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.
(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.
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)
- Why could I not load a file or assembly or one of its dependencies? The system cannot find the file specified for Costura Fody and Xceed toolkit. HOT 2
- No warning when "PrivateAssets=All" is missing in package reference HOT 1
- AccessViolationException in Fody.WeavingTask (Build Failure MSB4166) HOT 4
- Visual Studio 2022 for Mac Preview 5 HOT 1
- Cleaned library references are not removed from the deps.json file HOT 5
- Add PrivateAssets="All" to any weaver package WinUI 3 packaged app will fail to build. HOT 2
- After updating Fody debugging is no longer possible HOT 15
- Fody Weaving skipped when Clean build initiated using msbuild HOT 2
- Allow yearly contribution HOT 2
- Update Cecil HOT 5
- FodyWeavers.xml in solution directory is not found/used HOT 7
- PropertyChanged.Fody can not run in .net 7 readytorun or aot. HOT 1
- FodyHelpers incorrect reference Mono.Cecil version. HOT 6
- FileNotFoundException when trying to use a type from another assemblu HOT 2
- "The assembly has already been processed by Fody" in nuke HOT 20
- Update Cecil
- Pdb reference in generated dll/exe not using PathMap rules HOT 4
- release Avalonia fody HOT 2
- fody is missing NuGet package README file HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fody.