0
votes

I installed the DotNetNuke project templates for v 7,8,9 and added a new C# Compiled Module project. Whilst it seems that if I update the Controllers/Actions and compile then refresh the page I can see that the site is using the latest controller (because it's throwing an exception when I try to pass a different Model into the view).

But, compiling doesn't seem to update the views. The project template folders are placed directly in the DesktopModules/MyModule folder so I would have thought any changes made to a view would automatically be updated in the running site.

I've restarted IIS and it made no difference.

Howcome my views aren't updating?

Edit:
I just noticed now that during install DNN copies some of the MVC Module files to DesktopModules\MVC\MyModuleFolder. So the question now is: During development are you supposed to manually copy the view files from your project folder in the DesktopModules\MyModule\Views folder to the DesktopModules\MVC\MyModule\Views folder?

1

1 Answers

0
votes

When using my MVC Template, you should use the path

/desktopmodules/mvc/ModuleName

instead of the path that gets used with all the OTHER templates.

/desktopmodules/ModuleName

Once you're using the right path, that should solve the "copy" problem, as nothing will need to be moved.