.net - How to use $(OutDir) with YUICompressor.targets? -
I have been configured as YUICompressor.NET, an MSBILD function and it is working on my development machine is.
When I push the code to the app, I get the following build error:
D: \ temporal \ q2hapsex.50d \ input \ Projects \ CroquetScores.Web \ Build \ YUICompressor Goal (21,9): Error MSB4062: "Compressor Tasks" can not be loaded with Assembly D: task \ Projects \ CroquetScores.Web \ Build \. . Compressor.MsBuildTask.dll. The file or assembly file can not be loaded: /// D: \ Temporary \ q2hapsex.50d \ input \ Projects \ CroquetScores.Web \ Bin \ Yahoo.Yui.Compressor.MsbuildTask.dll 'or its dependencies specify one of the systems Unable to locate the file. Confirm that & lt; Using & gt; The announcement is correct, the assembly and all its dependencies are available, and that includes a public class that applies Microsoft.Build.Framework.itask Use of YUICompressor.targets Tasks: & lt; Using Task Function = "Compressor Task" Assembly file = "... \ Bin \ Yahoo.Yui.Compressor.MsBuildTask.dll" />
& lt; Using Task TaskName = "Compressor Task" assembly file = "$ (Outdir) Yahoo .UE Compressor. MSBull Task DLL" /> I use the following command to test setup on a local machine:
msbuild AppHarbor.sln / property: configuration = release / property : Outdear = D: \ Temp \ TestingAppHarbor \ But results in the same error in addition to this path information:
D: \ Code \ croquetscores. Com \ Projects \ Crokatoskors. Web \ build \ YUICompressor.targets (21,9): Error MSB4062: "Compressor Tasks" can not be loaded with Assembly D: \ Code \ croquetscores.com \ Projects \ CroquetScores.Web \ Build \ Yahoo.Yui Compressor.MsBuildTask.dll. The file or assembly file can not be loaded: /// D: \ code \ croquetscores.com \ Projects \ CroquetScores.Web \ Build \ Yahoo.Yui.Compressor.MsBuildTask.dll 'or its dependencies from a system specified file Unable to find out. Confirm that & lt; Using & gt; The announcement is correct, the assembly and all its dependencies are available, and that includes a public class that implements Microsoft.Build.Framework.Itask If I have YUICompressor with the actual path $ (OutDir) changes in targets, then the solution creates without error.
What am I doing?
I think it would be better to use it. & lt; Asset group & gt; & Lt; YuiCompressorDir & gt; $ ([System.IO.Path] :: GetFullPath ('$ (MSBuildThisFileDirectory) .. \ bin')) & lt; / YuiCompressorDir & gt; & Lt; / PropertyGroup & gt; & Lt; Use Task Function = "Compressor Task" Assembly file = "$ (YuiCompressorDir) \ Yahoo.Yui.Compressor.MsBuildTask.dll" /> You can take a look at the project from live .
Comments
Post a Comment