[2.1 RC1] Can't publish website that has dependency on Razor Class Library which has using from another library dependency #2363
Comments
@pranavkm - Haven't seen this. Output log should have more info on the error. |
Output log
|
We had a couple of issues around build incrementalism with Razor class libraries in RC1. that we addressed in RTM. Would you mind installing the RTM SDK https://github.com/dotnet/versions/tree/master/build-info/dotnet/product/cli/release/2.1#sdk-installers-and-binaries, closing and re-opening VS and rebuilding the project? If you're still able to reproduce the issue, I'll try investigating this further. |
Installed RTM, uninstalled RC1, even tried new project with mentioned steps, still the same. For publish to go through I either have to remove all project dependency usings from Razor Class Library .cs files or remove all its .cshtml views/pages.
|
Thanks for trying this out. I'll investigate this further. |
@Xeevis thanks for your report. Looks like I missed the publish scenario, when addressing a very similar issue (#2247). We'll address this in our upcoming 2.1.1 patch release. In the meanwhile, here's some workarounds:
|
@pranavkm Change line in |
Steps to reproduce:
Razor Class Library to reference Class Library
Website to reference Razor Class Library
using ClassLibrary1;
This setup builds and works in development, but publish will throw mentioned error.
The text was updated successfully, but these errors were encountered: