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

Building Mvc with Razor project as a source fails #657

Closed
ChengTian opened this issue Sep 23, 2014 · 3 comments
Closed

Building Mvc with Razor project as a source fails #657

ChengTian opened this issue Sep 23, 2014 · 3 comments
Assignees
Milestone

Comments

@ChengTian
Copy link
Contributor

Reported by @NTaylorMullen . Steps to reproduce:

  1. Git clone Mvc
  2. Git clone Razor
  3. Add "..\\Razor\\src" into sources property of Mvc\global.json
  4. Run build.cmd in Mvc dir

Output errors:

info: Exec
info:   program: cmd
info:   commandline: /C kpm build src\Microsoft.AspNet.Mvc.Razor --configuration debug
info:   workingdir: C:\Users\wwa\Documents\ProjectK\Universe\Mvc
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(53,3
0): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assemb
ly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(73,3
4): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assemb
ly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(77,3
4): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assemb
ly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(144,
28): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assem
bly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(163,
32): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assem
bly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(163,
55): error CS1503: Argument 1: cannot convert from 'System.IO.MemoryStream' to 'System.Collections.Immutable.ImmutableAr
ray<byte>'
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(178,
32): error CS0012: The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assem
bly 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
C:\Users\wwa\Documents\ProjectK\Universe\Mvc\src\Microsoft.AspNet.Mvc.Razor\Compilation\RoslynCompilationService.cs(178,
55): error CS1503: Argument 1: cannot convert from 'System.IO.FileStream' to 'System.Collections.Immutable.ImmutableArra
y<byte>'

Build failed.
    0 Warnings(s)
    8 Error(s)
@ChengTian ChengTian added the bug label Sep 23, 2014
@NTaylorMullen
Copy link
Member

Note: doing a ./build install in Razor and having MVC pull from the package works just fine.

@davidfowl
Copy link
Member

Interesting, it looks like it's not pulling in the framework references

@davidfowl davidfowl added this to the 1.0.0-beta1 milestone Sep 26, 2014
@davidfowl davidfowl self-assigned this Sep 26, 2014
@davidfowl
Copy link
Member

This was fixed by #640. I'll be updating the various repositories to use the new syntax but this will work now and after the changes are made.

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