Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

RazorPreCompilation.cs error on dnx core 5.0 #1777

Closed
danroth27 opened this issue May 4, 2015 · 5 comments
Closed

RazorPreCompilation.cs error on dnx core 5.0 #1777

danroth27 opened this issue May 4, 2015 · 5 comments
Assignees
Milestone

Comments

@danroth27
Copy link
Member

From dotnet/aspnetcore#533 by @dopare
Created started web application for beta4. Removed dnx451 from frameworks and got compilation error.

RazorPreCompilation.cs(5,17,5,23): DNX Core 5.0 error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

@troydai
Copy link
Contributor

troydai commented May 14, 2015

It only reproduces on beta4.

@troydai
Copy link
Contributor

troydai commented May 19, 2015

On another look. This issue actually repos on beta5. The difference is we swallow the build exception. I'm investigating the source.

@troydai
Copy link
Contributor

troydai commented May 19, 2015

The root cause of this issue is because the created load context for preprocess module contains a library manager of runtime target framework instead of application target framework. https://github.com/aspnet/dnx/blob/dev/src/Microsoft.Framework.Runtime.Roslyn/RoslynCompiler.cs#L234

@davidfowl
Copy link
Member

@troydai this bug is fixed right?

@troydai
Copy link
Contributor

troydai commented May 26, 2015

Fixed!

@troydai troydai closed this as completed May 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants