Start A Visual Studio Project With Templates - DotNetNuke

  • Developers
    • What's New in Features
    • Setting Up DNN
      • Set Up the DNN Folder
      • Set Up IIS
      • Set Up SQL
      • Run Installation Wizard
      • Upgrade Evoq
    • About Microservices
      • Creating Apps That Use Microservices
    • Liquid Content™ Microservice
      • Visualizer Templates
        • Basics
        • Filters
        • Date / Time
      • Liquid Content™ APIs
        • Content Types
        • Content Items
        • PublishedContent Items
        • API Responses to GET
        • Content Type Fields for POST and PUT
      • Searched Fields
      • Results Pagination
      • Examples: Liquid Content APIs
    • About Modules
      • Common Module Features
      • Module Architecture
      • Creating a Module
        • Use Module Creator
        • Create Using Templates
        • Start VS Project with Templates
        • Test Your Module
        • Pack Your Extension
        • Install an Extension
      • DNN Module APIs
      • DNN Manifest
      • About the EVS
    • MVC Modules
      • MVC Module Project Overview
      • MVC Controller
      • MVC Views
      • Create an MVC Unit Test
      • Unsupported MVC Features
    • SPA Modules
    • Web Forms Modules
    • Security
      • JWT Authentication
        • Set Up JWT Auth
        • JWT User Credentials
        • JWT Server Response
        • JWT Access Token
        • JWT Page Request
        • JWT Auth Handler
    • References
      • DNN Solutions
      • Control Bar to Persona Bar
      • Persona Bar by Role
      • Providers Reference
      • Included Modules
        • Social Modules
          • Activities
          • Activity Stream
            • Configure Activity Stream
          • Answers
            • Configure Answers
          • Blogs
            • Configure Blogs
            • Configure Calendar
          • Challenges
            • Configure Challenges
          • Discussions
            • Configure Discussions
          • Group Directory
            • Configure Group Directory
          • Group Spaces
            • Configure Group Spaces
          • Ideas
            • Configure Ideas
          • Journal
            • Configure Journal
          • Latest Challenges
            • Configure Latest Challenges
          • Leaderboard
            • Configure Leaderboard
          • Member Directory
            • Configure Member Directory
          • Message Center
          • My Status
            • Configure My Status
          • Profile Dashboard
          • Social Groups
            • Configure Social Groups
          • Related Content
            • Configure Related Content
          • Social Events
            • Configure Social Events
          • Social Sharing
            • Configure Social Sharing
          • User Badges
            • Configure User Badges
          • Wiki
            • Configure Wiki
        • General Content Modules
          • Console
            • Configure Console
          • Content Layout
          • HTML (Text)
            • Configure HTML (Text)
        • Search Modules
          • Search Results
            • Configure Search Results
        • Site Management Modules
          • Sitemap
        • User Management Modules
          • View Profile
            • Configure View Profile
        • Creation Modules
          • Module Creator
          • Publisher
            • Configure Publisher
      • DNN Requirements
      • Product Versions
      • DNN License
      • DNN Security
      • More Resources
    • Glossary
Start a Visual Studio Project with Templates
  • Platform
  • Evoq Content
  • Evoq Engage

Prerequisites

  • A local DNN installation with Host permissions.
  • Visual Studio 2015 is the recommended IDE for developing DNN modules.

Steps

  1. Download and install the templates. For Chris Hammond's templates,
    1. Run Visual Studio as an administrator.
    2. Go to Tools > Extensions and Updates. Tools > Extensions and Updates
    3. Highlight the Online > Visual Studio Gallery tree and search for DotNetNuke. In the Online > Visual Studio Gallery tree, search for DotNetNuke then Download.
    4. Click the Download button for the DotNetNuke Project Templates.
    Note: See Chris Hammond's instructions for other installation methods. For the DNN 8 templates,
    1. Download the appropriate .vsix file. Two are included:
      • Dnn.Mvc.Module.vsix
      • Dnn.Spa.Module.vsix
      Download DNN8 templates from Github.
    2. In your download folder, double-click the .vsix file to install the template in Visual Studio.
  2. Create a new Visual Studio project.
    1. Run Visual Studio as an administrator.
    2. File > New > Project
    3. Select the template for the new project. For Chris Hammond's templates, go to Installed > Templates > Visual C# or Visual Basic > DotNetNuke. Visual Studio > New > Project with Chris Hammond's templates For the DNN 8 templates, go to Installed > Templates > Visual C# > Dnn. Visual Studio > New > Project with DNN8 templates
    4. Fill in the settings.
      • Name: the name of your new module
      • Location: a subfolder inside the DesktopModules folder of your DNN installation folder
      Tip: Use your company name or a unique name as the subfolder name to avoid conflicts with other module creators in a production environment.
    5. Uncheck Create directory for solution. The templates expect Visual Studio's solution file (.sln) to be in the same folder as the project file. Checking this option puts the solution file in a different folder, which can cause build errors.
  3. Modify the Visual Studio project to add functionality to your new module.
Parent topic: Creating a ModulePrevious topic: Create a Module Using TemplatesNext topic: Test Your ModuleRelated informationDNN Community Blog: Module Development for Non-Developers, Skinners, & DNN Beginners — Blog Series by Clinton PattersonUsing the new Module Development Templates for DotNetNuke 7 by Chris Hammond

Từ khóa » Vs 2019 Custom Template