he "CreateBundles" task failed unexpectedly.

271 views
Skip to first unread message

Dirk Rombauts

unread,
Mar 1, 2012, 7:10:43 AM3/1/12
to Cassette
I wanted to give the MSBuild integration a try ... I added the NuGet
package, compiled ... and boom :-(

The funny thing here is that my project does have a reference to
Cassette.dotless.Core, version 1.2.2.0.

Is there something obvious that I'm doing wrong?

Error 1 The "CreateBundles" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly
'Cassette.dotless.Core, Version=1.2.2.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot
find the file specified.
File name: 'Cassette.dotless.Core, Version=1.2.2.0, Culture=neutral,
PublicKeyToken=null'
at Cassette.Stylesheets.LessCompiler.Compile(String source, IFile
sourceFile)
at
Cassette.BundleProcessing.CompileAsset.<>c__DisplayClass1.<Transform>b__0()
at
Cassette.Stylesheets.ExpandCssUrlsAssetTransformer.ReadCss(Func`1
openSourceStream)
at
Cassette.Stylesheets.ExpandCssUrlsAssetTransformer.<>c__DisplayClass1.<Transform>b__0()
at Cassette.AssetBase.OpenStream()
at
Cassette.BundleProcessing.AssignHash.ConcatenatedStreamBuilder.Visit(IAsset
asset)
at Cassette.FileAsset.Accept(IBundleVisitor visitor)
at Cassette.Bundle.Accept(IBundleVisitor visitor)
at Cassette.BundleProcessing.AssignHash.Process(Bundle bundle,
CassetteSettings settings)
at Cassette.BundleProcessing.MutablePipeline`1.Process(T bundle,
CassetteSettings settings)
at
Cassette.Stylesheets.StylesheetBundle.ProcessCore(CassetteSettings
settings)
at Cassette.Bundle.Process(CassetteSettings settings)
at Cassette.MSBuild.CreateBundlesImplementation.ProcessBundles()
at Cassette.MSBuild.CreateBundlesImplementation.Execute()
at Cassette.MSBuild.CreateBundles.Execute()
at Microsoft.Build.Framework.ITask.Execute()
at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at
Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost
taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost
taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask,
Boolean& taskResult)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM
\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value [HKLM\Software
\Microsoft\Fusion!EnableLog].
Site

Andrew Davey

unread,
Mar 4, 2012, 12:57:02 PM3/4/12
to cass...@googlegroups.com
The MSBuild package is missing the dotless DLL.

The latest in the master branch has the dotless code directly within the main Cassette.dll. The next release will have this and should resolve the problem for you.

Dirk Rombauts

unread,
Mar 12, 2012, 4:18:27 AM3/12/12
to cass...@googlegroups.com
Using version 1.2.0, I get a different error:

Error 53 The "CreateBundles" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Cassette, Version=1.2.0.29653, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Cassette, Version=1.2.0.29653, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.UnitySerializationHolder.GetRealObject(StreamingContext context)

   at Microsoft.Build.Framework.ITask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Site


On Sunday, March 4, 2012 6:57:02 PM UTC+1, Andrew Davey wrote:
The MSBuild package is missing the dotless DLL.

The latest in the master branch has the dotless code directly within the main Cassette.dll. The next release will have this and should resolve the problem for you.

Andrew Davey

unread,
Mar 12, 2012, 5:10:31 AM3/12/12
to cass...@googlegroups.com
Does "packages\Cassette.MSBuild.1.2.0\tools\" contain Cassette.dll and is it the correct version?

Dirk Rombauts

unread,
Mar 12, 2012, 8:42:44 AM3/12/12
to cass...@googlegroups.com
Yes it does, and yes it seems to be the correct version: 
// Assembly Cassette, Version 1.2.0.29653
Location: C:\Dev\Code\WorldOfPPC\packages\Cassette.MSBuild.1.2.0\Tools\Cassette.dll
Name: Cassette, Version=1.2.0.29653, Culture=neutral, PublicKeyToken=null
Type: Library

On Monday, March 12, 2012 10:10:31 AM UTC+1, Andrew Davey wrote:
Does "packages\Cassette.MSBuild.1.2.0\tools\" contain Cassette.dll and is it the correct version?
Message has been deleted

Simone Basso

unread,
Mar 12, 2012, 10:26:16 AM3/12/12
to cass...@googlegroups.com
I've got the same problem

Simone Basso

unread,
Mar 12, 2012, 10:52:07 AM3/12/12
to cass...@googlegroups.com

even if it looks like the library is being loaded correctly, so it could be due to a dependency missing in that folder

Simone Basso

unread,
Mar 12, 2012, 10:57:38 AM3/12/12
to cass...@googlegroups.com
In my case, copying Microsoft.Scripting.dll and a few other dependencies (Pandora.dll, SassAndCoffee.Core.dll) into packages\Cassette.MSBuild.1.2.0\Tools fixed the build

Dirk Rombauts

unread,
Mar 13, 2012, 3:43:37 AM3/13/12
to cass...@googlegroups.com
I had to copied IronRuby.dll, Microsoft.Dynamic.dll and Microsoft.Scripting.dll into the ... \Cassette.MSBuild.1.2.0\tools\ directory, and then it compiles.

Dirk Rombauts

unread,
Mar 13, 2012, 4:09:01 AM3/13/12
to cass...@googlegroups.com
I hope this issue can be fixed - because the feature itself is SOOOO cool: startup time of my website is close to 0 again!
Reply all
Reply to author
Forward
0 new messages