cake-contrib / Cake.Issues

:cake: :jigsaw: :mag_right: Cake addin for reading and managing issues from any code analyzer or linter that may occur during the build process
https://cakeissues.net
Other
5 stars 12 forks source link

Embed references assemblies #477

Open pascalberger opened 7 years ago

pascalberger commented 7 years ago

All referenced assemblies need to be merged with the Cake.Issues.Reporting.Generic assembly to avoid conflicts with Cake core or any other addins

pascalberger commented 7 years ago

If using Fody.Costura RazorEngine no longer can be loaded:

Installing addins...
Could not load C:\Git\Test-Cake.Prca\tools\Addins\cake.issues.reporting.html\Cake.Issues.Reporting.Html\lib\net45\Cake.Issues.Reporting.Html.dll (missing RazorEngine, Version=3.10.0.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a)

With the following entry in the fusion log:

*** Assembly Binder Log Entry  (18.09.2017 @ 09:49:02) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Git\Test-Cake.Prca\tools\Cake\Cake.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = RazorEngine, Version=3.10.0.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a
 (Fully-specified)
LOG: Appbase = file:///C:/Git/Test-Cake.Prca/tools/Cake/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Cake.exe
Calling assembly : Cake.Issues.Reporting.Html, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Git\Test-Cake.Prca\tools\Cake\Cake.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: RazorEngine, Version=3.10.0.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Cake/RazorEngine.DLL.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Cake/RazorEngine/RazorEngine.DLL.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Cake/RazorEngine.EXE.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Cake/RazorEngine/RazorEngine.EXE.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Addins/cake.issues.reporting.html/Cake.Issues.Reporting.Html/lib/net45/RazorEngine.DLL.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Addins/cake.issues.reporting.html/Cake.Issues.Reporting.Html/lib/net45/RazorEngine/RazorEngine.DLL.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Addins/cake.issues.reporting.html/Cake.Issues.Reporting.Html/lib/net45/RazorEngine.EXE.
LOG: Attempting download of new URL file:///C:/Git/Test-Cake.Prca/tools/Addins/cake.issues.reporting.html/Cake.Issues.Reporting.Html/lib/net45/RazorEngine/RazorEngine.EXE.
LOG: All probing URLs attempted and failed.