Skip to content

Works compiling from VisualStudio, fails compiling through dotnet command #80

@thewazaa

Description

@thewazaa

I have problems compiling a project using these weavers from command line:

With visual studio:

1>Target FodyTarget:
1>    Fody: Fody (version 3.2.10.0) Executing
1>    Fody: ProjectDirectory: 'C:\Repos\PlatformMicroServicePrototype\Platform\Logger'.
1>    Fody: AssemblyFile: 'C:\Repos\PlatformMicroServicePrototype\Platform\Logger\obj\Debug\netcoreapp2.2\Logger.dll'
1>    Fody: Found path to weavers file 'C:\Repos\PlatformMicroServicePrototype\Platform\Logger\FodyWeavers.xml'.
1>    Fody: SolutionDirectory path is 'C:\Repos\PlatformMicroServicePrototype\'
1>    Fody: Finding weavers
1>    Fody:   Scanning SolutionDir/Tools directory convention: 'C:\Repos\PlatformMicroServicePrototype\Tools'.
1>    Fody: No Weaver project file found.
1>    Fody: FindAddinDirectories (Legacy):
1>    Fody:   Skipped directory from Nuget Config since it could not be derived.
1>    Fody:   Scanning the MsBuildThisFileDirectory parent: C:\Users\user\.nuget\packages\'.
1>    Fody:   Scanning NuGetPackageRoot 'C:\Users\user\.nuget\packages\'.
1>    Fody: Searched for 'Cauldron.Interception'. Found: C:\Users\josep.pons.NEOIT\.nuget\packages\cauldron.interception.fody\3.2.3\netclassicweaver\Cauldron.Interception.Fody.dll

With command line: "dotnet build -v n"

 3>FodyTarget:
           Fody: SolutionDirectory path is 'C:\Repos\PlatformMicroServicePrototype\'
           Fody: Finding weavers
           Fody:   Scanning SolutionDir/Tools directory convention: 'C:\Repos\PlatformMicroServicePrototype\Tools'.
           Fody: No Weaver project file found.
           Fody: FindAddinDirectories (Legacy):
           Fody:   Skipped directory from Nuget Config since it could not be derived.
           Fody:   Scanning the MsBuildThisFileDirectory parent: C:\Users\user\.nuget\packages\'.
           Fody:   Scanning NuGetPackageRoot 'C:\Users\user\.nuget\packages\'.
     3>MSBUILD : error : Fody: Could not find a weaver named 'Cauldron.Interception'. [C:\Repos\PlatformMicroServicePrototype\Platform\Logger\Logger.csproj]
MSBUILD : error : If you have nuget package restore turned on you probably need to do a build to download the weavers. [C:\Repos\PlatformMicroServicePrototype\Platform\Logger\Logger.csproj]
MSBUILD : error : Alternatively you may have added a weaver to your 'FodyWeavers.xml' and forgot to add the appropriate NuGet package. [C:\Repos\PlatformMicroServicePrototype\Platform\Logger\Logger.csproj]
MSBUILD : error : This url may provide more information http://nuget.org/packages/Cauldron.Interception.Fody/ . [C:\Repos\PlatformMicroServicePrototype\Platform\Logger\Logger.csproj]
           Fody:   Finished Fody 338ms.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions