Skip to content

Fix to copy reference project satellite assemblies on Unix. - #1057

Merged
Sridhar-MS merged 1 commit into
dotnet:xplatfrom
Sridhar-MS:copy-reference-project-satellite-assemblies
Sep 26, 2016
Merged

Sridhar-MS merged 1 commit into
dotnet:xplatfrom
Sridhar-MS:copy-reference-project-satellite-assemblies

Conversation

@Sridhar-MS

@Sridhar-MS Sridhar-MS commented Sep 21, 2016 •

Copy link
Copy Markdown
Contributor

Example ProjectA depends on ProjectB. Building ProjectA should copy all the satellite assemblies from ProjectB. This was working on windows but not on Unix.

There seems to be a behavior difference between Unix and Windows when using the search pattern "*." to get all the sub-directories. I have filed issue to track that - https://github.com/dotnet/corefx/issues/11943.
Meanwhile workaround that issue using "*" search pattern.

cc @rainersigwald @cdmihai

@rainersigwald

Copy link
Copy Markdown
Member

@dotnet-bot test OSX Build for CoreCLR please

@rainersigwald rainersigwald left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice descriptive comment, and I think the just-a-star pattern is actually more descriptive anyway.

@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@rainersigwald I am seeing build timeouts. Is that a known issue?

@rainersigwald

Copy link
Copy Markdown
Member

No, I don't think we've seen Windows timeouts before.

@dotnet-bot test Windows_NT Build for Desktop please

@rainersigwald

Copy link
Copy Markdown
Member

@dotnet-bot test OSX Build for CoreCLR please

1 similar comment
@cdmihai

cdmihai commented Sep 21, 2016

Copy link
Copy Markdown
Contributor

@dotnet-bot test OSX Build for CoreCLR please

@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

OSX build The build machine went offline during the build.
Windows Build The build timed out.

I am going to try rerun both of them

@dotnet-bot test OSX Build for CoreCLR please
@dotnet-bot test Windows_NT Build for Desktop please

@rainersigwald

Copy link
Copy Markdown
Member

@Sridhar-MS The tests are hanging because of this popup:

---------------------------
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
---------------------------
Using slow-path in SystemState.GetDirectories, was this intentional?



   at Microsoft.Build.Tasks.SystemState.GetDirectories(String path, String pattern) in C:\src\msbuild\src\XMakeTasks\SystemState.cs:line 521

   at Microsoft.Build.Tasks.ReferenceTable.FindSatellites(Reference reference) in C:\src\msbuild\src\XMakeTasks\AssemblyDependency\ReferenceTable.cs:line 924

   at Microsoft.Build.Tasks.ReferenceTable.FindAssociatedFiles() in C:\src\msbuild\src\XMakeTasks\AssemblyDependency\ReferenceTable.cs:line 1736

   at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure() in C:\src\msbuild\src\XMakeTasks\AssemblyDependency\ReferenceTable.cs:line 1659

   at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure(DependentAssembly[] remappedAssembliesValue, ITaskItem[] referenceAssemblyFiles, ITaskItem[] referenceAssemblyNames, ArrayList exceptions) in C:\src\msbuild\src\XMakeTasks\AssemblyDependency\ReferenceTable.cs:line 1635

   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists,......

<truncated>
---------------------------
Abort   Retry   Ignore   
---------------------------

@rainersigwald

Copy link
Copy Markdown
Member

The code is here: https://github.com/rainersigwald/msbuild/blob/bb8e2130fe17a67f6c8df81be75d8dc6bccf6830/src/XMakeTasks/SystemState.cs#L502-L524

Looks like it's special-cased to deal with *.. A quick look suggests that it might be ok to make that * but I haven't thought about it deeply.

Example ProjectA depends on ProjectB. Building ProjectA should copy all
the satellite assemblies from ProjectB. This was working on windows but
not on Unix.

There seems to be a behavior difference between Unix and Windows when
using the search pattern "*." to get all the sub-directories. I have filed
issue to track that - https://github.com/dotnet/corefx/issues/11943.
Meanwhile workaround that issue using "*" search pattern.
@Sridhar-MS
Sridhar-MS force-pushed the copy-reference-project-satellite-assemblies branch from bb8e213 to d041510 Compare September 23, 2016 18:33
@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@rainersigwald thanks for the pointer! I did a literal string search for "*." and these are only 2 places in the entire repo. And the PR is green now. Can we get this merged?

@Sridhar-MS
Sridhar-MS merged commit d95a0ec into dotnet:xplat Sep 26, 2016
@Sridhar-MS
Sridhar-MS deleted the copy-reference-project-satellite-assemblies branch September 26, 2016 04:36
@Sridhar-MS

Copy link
Copy Markdown
Contributor Author

@rainersigwald can I get a build with this fix?

@rainersigwald

Copy link
Copy Markdown
Member

@Sridhar-MS version 0.1.0-preview-00040-160926.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants