ChrisHammond / DNNTemplates

Christoc's DotNetNuke Extension Development templates for Visual Studio
http://www.christoc.com/Products/DNN-Development-Templates
Other
97 stars 38 forks source link

Module references physical path at development & not the virtual path #42

Closed bhattjidotcom closed 5 years ago

bhattjidotcom commented 7 years ago

Hi All

I have created a MVC Module using Christoc's latest templates. It all works fine, but the there is one very big issue (may be a bug)

It has cached the physical path where I had first time created the Module, and keeps referencing that path even if I install the module anywhere :(

I had created the Module at C:\WebSites\DnnDev\wwwroot\DesktopModules\MVC\MvcXYZ

and installed at http://dnn9.dnndev.me/Testimonial/MvcXYZ (physical folder at C:\WebSites\DNN9\wwwroot\DesktopModules\MVC\MvcXYZ)

Now, when I run the App, it looks for the files (all .cshtml and .resx file) at C:\WebSites\DnnDev\wwwroot\DesktopModules\MVC\MvcXYZ and not at ~/DesktopModules/MVC/MvcXYZ :(

What could be the issue? How to solve this? Please help

VashJuan commented 7 years ago

Curious too. Should the project be using relative paths, or maybe there's no option?