Implementation of the 2.0 session state model
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / UsingTask.cs
index e315ee4a75cde2321c04b8b1e6e10c4048b10f9e..ee463d62e6dade5040f8b1c3a8ada374ed2d33c4 100644 (file)
@@ -62,7 +62,10 @@ namespace Microsoft.Build.BuildEngine {
                        if (AssemblyName != null) {
                                loadInfo = new AssemblyLoadInfo (AssemblyName, TaskName);
                        } else if (AssemblyFile != null) {
-                               string filename = AssemblyFile;
+                               Expression exp = new Expression ();
+                               exp.Parse (AssemblyFile);
+                               string filename = (string) exp.ConvertTo (project, typeof (string));
+
                                if (Path.IsPathRooted (filename) == false) {
                                        string ffn;
                                        if (importedProject != null) {