Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assembly loading in symbol loader #340

Merged
merged 6 commits into from
Jan 19, 2017
Merged

Fix assembly loading in symbol loader #340

merged 6 commits into from
Jan 19, 2017

Conversation

codito
Copy link
Contributor

@codito codito commented Jan 18, 2017

Instead of attempting to load the test assembly, try to query for it. It should
have been already loaded by the test adapter.

In netcoreapp1.1, attempting to load the same executable within itself throws.

This fix is a port from RC.3 branch. See #332.

Validation scenarios:

  • Test the bug scenario on connect demo
  • Test xunit simple app
  • Try testplatform.sln

codito and others added 2 commits January 18, 2017 12:58
Instead of attempting to load the test assembly, try to query for it. It should
have been already loaded by the test adapter.

In netcoreapp1.1, attempting to load the same executable within itself throws.
@codito codito requested a review from smadala January 18, 2017 10:03
// At this point, the assembly should be already loaded into the load context. We query for a reference to
// find the types and cache the symbol information. Let the loader follow default lookup order instead of
// forcing load from a specific path.
var asm = Assembly.Load(AssemblyLoadContext.GetAssemblyName(binaryPath));
Copy link
Contributor

Choose a reason for hiding this comment

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

Please run Platform tests DiaSessionTests.

@codito codito merged commit dc71b0a into microsoft:master Jan 19, 2017
@codito codito deleted the core11-symbols branch January 19, 2017 10:23
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.

2 participants