-
Notifications
You must be signed in to change notification settings - Fork 224
Cannot test ASP.NET Web Application decorated with AssemblyCultureAttribute. #2890
Comments
may be related to #2802 |
Yes, it may be related but in this case there is only one assembly named Application. There are no satellites. |
@kirthik Any thoughts on this one? |
Could you please tell me what build of dnx you are using? |
⌚ |
Sorry for late response and thank you all for the comments. PS ...\Repro\test\Application.Tests> dnx test
xUnit.net DNX Runner (64-bit DNXCore 5.0)
Discovering: Application.Tests
Discovered: Application.Tests
Starting: Application.Tests
Application.Tests.TestClass.Get [FAIL]
System.IO.FileNotFoundException : Could not load file or assembly 'Application, Version=1.0.0.0, Culture=en-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
---- System.IO.FileNotFoundException : Could not load the specified file.
Stack Trace:
at Application.Tests.TestClass..ctor()
----- Inner Stack Trace -----
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
Finished: Application.Tests
=== TEST EXECUTION SUMMARY ===
Application.Tests Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 0,199s But I think this is exactly what @kirthik has already reported in #2902. |
I am closing this issue as #2902 is probably a root cause for this problem. Will reopen if it turns out otherwise. |
I have not played much with the new dnx bits yet, but found this post after running into a very similar behavior with an ASP.NET WebForms app running on .NET 4 |
UPDATE:
Reproduction project available on https://github.com/hubuk/Issue-aspnet-dnx-2890-AssemblyCulture
Environment for which the problem occurs is following:
*4. [assembly: AssemblyCulture("en-US")] attribute is added to Application project.
5. Test with the following content is created:
When running
dnx test
from test project directory I got the following error (not reproducible after deleting attribute from point 4):The text was updated successfully, but these errors were encountered: