The project file has already been suggested to do this. However, this is not enough for our case. We have seen shared views in any other project. Many files use shared mastermaster pages that cause compilation errors when trying to use aspnet_compiler.
I tried to complete it like this:
& lt; Target name = "AfterBuild" condition = "'$ (MvcBuildViews)' == 'true'" & gt; & Lt; PropertyGroup & gt; & Lt; TempFolder & gt; $ (ProjectDir) \. \ Temporary & lt; / TempFolder & gt; & Lt; / PropertyGroup & gt; & Lt; AspNetCompiler VirtualPath = "temp" target = "$ (TempFolder)" physical path = "other view location" /> & Lt; AspNetCompiler Virtual Peth = "Floating" target = "$ (TempFolder)" physical path = "$ (projectdear)" /> & Lt; / Target & gt; It has been discovered that aspnet_compiler requires the TargetPath folder to be empty, so it is not any other than it's only VirtualPath and Trying to do it with any TargetPath because VirtualPath is temporary and does not take on another compiler's call. Is there any way to accomplish this? We can clearly copy master pages in this project, but this is not a very good solution.
The only way to do this is to compile razor ideas into DLL so that they Available to the DLL razor team created for this purpose.
No comments:
Post a Comment