Skip to content

Commit

Permalink
Merge pull request #565 from rneatherway/master
Browse files Browse the repository at this point in the history
This is a possible fix for finding xml documentation files
  • Loading branch information
mhutch committed Oct 21, 2013
2 parents 457a845 + c26a40e commit b86af48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Expand Up @@ -408,7 +408,7 @@ void FindAndAddRelatedFiles (string filename, string parent_copy_local)
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);
Expand Down
4 changes: 3 additions & 1 deletion mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets
Expand Up @@ -134,7 +134,9 @@
</AllowedReferenceAssemblyFileExtensions>

<AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
.mdb
.exe.mdb;
.dll.mdb;
.xml
</AllowedReferenceRelatedFileExtensions>

<AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">
Expand Down
4 changes: 3 additions & 1 deletion mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets
Expand Up @@ -141,7 +141,9 @@
</AllowedReferenceAssemblyFileExtensions>

<AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
.mdb
.exe.mdb;
.dll.mdb;
.xml
</AllowedReferenceRelatedFileExtensions>

<AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">
Expand Down
4 changes: 3 additions & 1 deletion mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets
Expand Up @@ -198,7 +198,9 @@
</AllowedReferenceAssemblyFileExtensions>

<AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
.mdb
.exe.mdb;
.dll.mdb;
.xml
</AllowedReferenceRelatedFileExtensions>

<AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">
Expand Down

0 comments on commit b86af48

Please sign in to comment.