Open thewazaa opened 5 years ago
I am also having this issue, I have confirmed that it happens both on the latest DotNetCore on windows and also DotNetCore 2.2 on linux.
The project compiles and correctly weaves on Visual Studio 2019.
This is a blocking issue.
Error when running dotnet build
is:
MSBUILD : error : Fody: Could not find a weaver named 'Cauldron.Interception'
Any update on this? I'm facing this same blocking issue. I'm able to restore + build + run from Visual Studio 2017, but the 'dotnet build' command is failing.
"dotnet build" output:
C:\[project path]>dotnet build
Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 88.51 ms for C:\<target_project>.csproj.
Fody: Fody (version 3.2.10.0) Executing
MSBUILD : error : Fody: Could not find a weaver named 'Cauldron.Interception'. [<target_project>.csproj]
MSBUILD : error : If you have nuget package restore turned on you probably need to do a build to download the weavers. [<target_project>.csproj]
MSBUILD : error : Alternatively you may have added a weaver to your 'FodyWeavers.xml' and forgot to add the appropriate NuGet package. [<target_project>.csproj]
MSBUILD : error : This url may provide more information http://nuget.org/packages/Cauldron.Interception.Fody/ . [<target_project>.csproj]
Fody: Finished Fody 136ms.
Build FAILED.
FodyWeavers.xml:
<Weavers VerifyAssembly="True">
<Cauldron.Interception>
<OnlyIncludeAssemblies>
MyProject.
</OnlyIncludeAssemblies>
</Cauldron.Interception>
</Weavers>
I've got the following NuGet packages referenced in this project:
<PackageReference Include="Capgemini.Cauldron" Version="3.2.3" />
<PackageReference Include="Capgemini.Cauldron.Interceptors" Version="3.2.3" />
<PackageReference Include="Cauldron.BasicInterceptors" Version="3.2.3" />
<PackageReference Include="Cauldron.Interception.Fody" Version="3.2.3" />
Related issue https://github.com/Capgemini/Cauldron/issues/84
I have problems compiling a project using these weavers from command line:
With visual studio:
With command line: "dotnet build -v n"
I'm quite lost regarding why this happens. The project is in netcore2.2, but I don't think it really matters cause with Visual Studio everything works.