This project is read-only.

Enabling MVC3 context menu options

Topics: Writing modules
May 27, 2011 at 7:20 PM

Apparently the MVC3 context menu item stuff doesn't work correctly when you use codegen to create your modules.  I was searching for a solution for this and found it here at this blog:

I wanted to post it here to maybe help others who have this issue, as well as bring attention to the orchard team to include this as a fix in the next release...

May 27, 2011 at 7:42 PM

If there is a fix to make, can you please file a bug? Thanks.

May 27, 2011 at 7:45 PM

We are aware of the issue, but we are stuck between a rock and a hard place on this. If we add the project type GUID, you get MVC tooling if you have MVC installed in the GAC, but projects will *not* open properly in Visual Studio is you don't have MVC tooling installed. Furthermore, the error report you get from VS is pretty criptic (something about an invalid project guid in the output window). We chose the option of not including the project guid to avoid this painful experience for people who don't have MVC installed on their machine, since Orchard itself is bin-deployable and doesn't require MVC to be installed on the machine.

We made the MVC team aware of this issue.

May 27, 2011 at 8:10 PM

bertrand and rpaquay,

Thanks for the response...I understand the dilemma...perhaps a commandline switch for generating a module with MVC3 support would work?

May 27, 2011 at 9:49 PM

Great suggestion. Would you mind opening an issue in the issue tracker for this?



Jun 3, 2011 at 4:16 PM

My apologies for getting to this so late, it was buried in my email over Memorial weekend...

I created a new issue for this: