RazorGenerator / RazorGenerator

A Custom Tool for Visual Studio that allows processing Razor files at design time instead of runtime, allowing them to be built into an assembly for simpler reuse and distribution.
Apache License 2.0
522 stars 129 forks source link

Shared View for multiple mvc project #157

Open baskerganesan opened 7 years ago

baskerganesan commented 7 years ago

I have created razor generator view in one solution and added main mvc project in same solution. Everything works fine with this.

Now I want to use the razor generated view which I created in another mvc project/another solution.

I wanted to create shared view for multiple mvc project like registration view can be shared across many mvc site.

I tried adding the shared mvc dll( where razor generated view is created ) into my new mvc project but its not loading the views that I created.

I am getting views not found error

chrispauly commented 5 years ago

I am seeing something similar.

We have a MVC website solution. And we have our views in a shared DLL project.

If I build that shared project first, then build the solution, the views are compiled into the shared DLL and copied to the website output folder.

If I clean my shared project and then build the solution, the views are not compiled into the shared DLL.