2007-01-28 Marek Sieradzki <marek.sieradzki@gmail.com>
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / UsingTask.cs
index e315ee4a75cde2321c04b8b1e6e10c4048b10f9e..5731f6907e0de23b21c417eb197aa94bd8fb6ea9 100644 (file)
@@ -62,7 +62,11 @@ namespace Microsoft.Build.BuildEngine {
                        if (AssemblyName != null) {
                                loadInfo = new AssemblyLoadInfo (AssemblyName, TaskName);
                        } else if (AssemblyFile != null) {
-                               string filename = AssemblyFile;
+                               Expression exp = new Expression ();
+                               // FIXME: test it
+                               exp.Parse (AssemblyFile, false);
+                               string filename = (string) exp.ConvertTo (project, typeof (string));
+
                                if (Path.IsPathRooted (filename) == false) {
                                        string ffn;
                                        if (importedProject != null) {