304NotModified / Fody.Stamp

:octocat: Stamps an assembly with git data
MIT License
65 stars 19 forks source link

MSBUILD : error : Fody: Found no debug symbols. #49

Closed chucklu closed 5 years ago

chucklu commented 5 years ago

Hi, When I install this library by NuGet, I can build my project under Debug mode. But when I switch to release mode, I encounter the mentioned error.

1>Using "Fody.WeavingTask" task from assembly "MyCore\Solution\packages\Fody.2.0.3\build\netstandard1.4....\Fody.dll". 1>Task "Fody.WeavingTask" 1> Fody: Fody (version 2.0.3.0) Executing 1> Fody: ProjectDirectory: 'MyCore\My.Common\'. 1> Fody: AssemblyPath: 'MyCore\My.Common\obj\Release\My.Common.dll' 1> Fody: Found path to weavers file 'MyCore\My.Common\FodyWeavers.xml'. 1> Fody: SolutionDirectory path is 'MyCore\Solution\' 1> Fody: Finding weavers 1> Fody: Adding weaver dlls from 'MyCore\Solution\Packages'. 1> Fody: Fody weaver file added 'MyCore\Solution\Packages\Stamp.Fody.1.4.2\Stamp.Fody.dll' 1> Fody: Could not find packages dir from nuget config. 1> Fody: SolutionDirectoryPath: MyCore\Solution\ 1> Fody: Adding weaver dlls from 'MyCore\Solution\packages'. 1> Fody: Fody weaver file added 'MyCore\Solution\packages\Stamp.Fody.1.4.2\Stamp.Fody.dll' 1> Fody: SolutionDirectoryPath: MyCore\Solution\ 1> Fody: Skipped scanning 'MyCore\Solution\Tools' for weavers since it doesn't exist. 1> Fody: No Weaver project file found. 1> Fody: Finished finding weavers 11ms 1> Fody: Creating a new AppDomain 1> Fody: Reference count=23 1>MSBUILD : error : Fody: Found no debug symbols. 1> Fody: Finished Fody 141ms. 1>Done executing task "Fody.WeavingTask" -- FAILED.

chucklu commented 5 years ago

I found someone else encounter the same problem. https://github.com/Fody/Fody/issues/316 Then I tired to upgrade the Fody version, when I upgrade it to latest version 3.3, then encounter another dependency problem. So I upgrade the version of Fody to 2.5, then the build works