c# - Sharing controller and views between projects -


i trying create infrastructure web framework developing have following structure far

solitude.admin web project keep controlers , views in how create 1 created class libary see cannot have web.config there

solitude.core contain utililties , models

solitude.framework core , meat of cms platform quesiton how 1 create class libary project asp.net mvc 4.6 allow controllers , views shared addded razor dll dont think correct approach

solitude.mvc contain front end of site tried below changing project guids allow sharing not working enter image description here

i changed project type guids suggested on aricltes on no joy trying mimic our other platforms work futher understanding.

 <projectguid>{152c761a-dd2e-4c1f-af89-dfb2547a3bca}</projectguid>     <projecttypeguids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</projecttypeguids>     <outputtype>library</outputtype>     <appdesignerfolder>properties</appdesignerfolder>     <rootnamespace>solitude.admin</rootnamespace>     <assemblyname>solitude.admin</assemblyname>     <targetframeworkversion>v4.6.2</targetframeworkversion> 

another point if 2 have 2 sep projects admin , web how 1 tell go admin if user types www.domain.com/admin yet 2 independent web projects?.

i see separation of concerns. have questions:

1.- why not making "solitude.admin" web app project?

2.- why aren't using expected naming conventions? lot of lowercases got there.

3.- why like/need share controllers? basically, there must

return view(); 

inside them.

for views, create components based on parameters (which mostly, comes print out html). have shared views same project.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -