CBS New Module Build Process
- Build new MVC 4 project, ideally from CAHNRS MVC template v1.4 or greater.
- Build solution, fix style cop errors
- Add AuthenticationAttribute from an existing module
- Check compatibility of web config key value pairs and those that are used in the authentication attribute
- Create new application in web service manager and authorize that application for CAHNRS Intranet and CAHNRS blacklist
- Copy over AdminAtribute
- Verify cookie names match across all pages
- Add or edit web service reference to point to intranet service as in one of the existing modules
- Unload project and edit Module.csproj file
- Ensure the following exists after the TargetFrameworkVersion tag
<MvcBuildViews>true
<BaseIntermediateOutputPath> ..\IntermediaryBuild </BaseIntermediateOutputPath>
- save and reload project
- Delete obj folder
- Clean solution and rebuild
- Open nuget package manager console
- Run the command Update-Package
- Follow instructions here: http://www.asp.net/mvc/overview/releases/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2
- Clean and rebuild solution
- Run style cop
- build and edit until successfully built and desired behavior is achieved
- Add favicon, robots, and style cop settings file to root of project from existing module