Index: visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
diff --git a/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs b/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
index 652cab92bd0f3291c5e56c65cbf8d50b6f51a06b..b2b3be16eee2a41e6fcd237911c707d007d85668 100644 |
--- a/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
+++ b/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
@@ -49,13 +49,17 @@ namespace NaCl.Build.CPPTasks |
}; |
} |
- public string Parse(ITaskItem taskItem, bool fullOutputName) |
+ public string Parse(ITaskItem taskItem, bool fullOutputName, string outputExtension) |
{ |
CommandLineBuilder builder = new CommandLineBuilder(); |
foreach (string name in taskItem.MetadataNames) |
{ |
string value = taskItem.GetMetadata(name); |
+ if (outputExtension != null && name == "OutputFile") |
+ { |
+ value = Path.ChangeExtension(value, outputExtension); |
+ } |
if (fullOutputName && name == "ObjectFileName") |
{ |
if ((File.GetAttributes(value) & FileAttributes.Directory) != 0) |