Fix Bug 4811, xbuild should find xml documentation
authorRobin Neatherway <robin.neatherway@gmail.com>
Fri, 15 Feb 2013 15:28:18 +0000 (15:28 +0000)
committerRobin Neatherway <robin.neatherway@gmail.com>
Tue, 2 Jul 2013 16:26:15 +0000 (17:26 +0100)
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs
mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets
mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets
mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets

index 730216cf8c12fa5e020ba7cf9cdab06214095098..7b386c2eddd9297f897d5bf79a426e0754ba2920 100644 (file)
@@ -408,7 +408,7 @@ namespace Microsoft.Build.Tasks {
                                return;
 
                        foreach (string ext in allowedRelatedFileExtensions) {
-                               string rfile = filename + ext;
+                               string rfile = Path.ChangeExtension (filename, ext);
                                if (File.Exists (rfile)) {
                                        ITaskItem item = new TaskItem (rfile);
                                        SetCopyLocal (item, parent_copy_local);
index 345609f90a9e4e250867b32f7995f443edf03b46..d96897b7a296239aa5542c3094b2f9d7f75bd905 100644 (file)
                </AllowedReferenceAssemblyFileExtensions>
 
                <AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
-                       .mdb
+                       .exe.mdb;
+                       .dll.mdb;
+                       .xml
                </AllowedReferenceRelatedFileExtensions>
 
                <AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">
index 6a2c6efe85dced063d88c5c0d0a5f862d9cee795..c7169aed8967bfcf1ec5188308d410e527f70798 100644 (file)
                </AllowedReferenceAssemblyFileExtensions>
 
                <AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
-                       .mdb
+                       .exe.mdb;
+                       .dll.mdb;
+                       .xml
                </AllowedReferenceRelatedFileExtensions>
 
                <AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">
index 86d8fb0b4f508c8fd58d02e5c379c2106d99a000..882e7b7db0147b32482b0f2549d8b208f0ff80c7 100644 (file)
                </AllowedReferenceAssemblyFileExtensions>
 
                <AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
-                       .mdb
+                       .exe.mdb;
+                       .dll.mdb;
+                       .xml
                </AllowedReferenceRelatedFileExtensions>
 
                <AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">