Skip to content

AppDomain.CreateDomain cannot dynamically load test assembly #419

Closed

Description

Description

Creating an app domain and then having it perform a callback that requires the test assembly to be loaded results in a load failure. This used to work in project.json land.

Steps to reproduce

  • git clone git@github.com:aspnet/Mvc.git
  • cd Mvc
  • git fetch
  • git checkout nimullen/migration.createdomain
  • cd test/Microsoft.AspNetCore.Mvc.Core.Test
  • dotnet restore
  • dotnet test -f net451 --filter "FullyQualifiedName=Microsoft.AspNetCore.Mvc.Infrastructure.ActionContextAccessorTests.ChangingAppDomainsDoesNotBreak_ActionContextAccessor"

Expected behavior

Test Passes

Actual behavior

Test fails

Environment

.NET Command Line Tools (1.0.0-rc4-004616)

Product Information:
 Version:            1.0.0-rc4-004616
 Commit SHA-1 hash:  56d8071361

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Users\nimullen\AppData\Local\Microsoft\dotnet\sdk\1.0.0-rc4-004616
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions