-
Notifications
You must be signed in to change notification settings - Fork 3
Package Manager Console Commands
You can use the following commands in the package manager console window in VS for any project with DnnPackager installed.
1. In VS, Open up the "Package Manager Console" window, and select your project from the projects dropdown.
2. Type: `Install-Module [name of your website]` and hit enter.
3. Watch as your module project is built, packaged up as a zip, and then the zip is deployed to your local Dnn website!
For example, if your Dnn website is named "Dnn7" in IIS, then you would run:
Install-Module Dnn7
Note: This will build and install the module for your active build configuration. You can override this by using:
Install-Module [name of your website] [Build Configuration Name]
e.g if your current active build configuration was debug, but you wanted to install the release build of your module, you could type:
Install-Module Dnn7 Release
For debugging, you can automatically attach the debugger! Run:
Install-Module [name of your website] [Build Configuration Name] Attach
e.g:
Install-Module Dnn7 Debug Attach
That will install your module, and then attach the debugger for you.
Note: To save time in future, you can hit "up" arrow key in Package Console Manager to get the last command you executed to save you having to type it every time. So typically you can just hit "up" and then hit enter key, and you will be debugging your module in no time.
If you would like to deploy the sources version of your install package, you can use an alternative command which works exactly the same as the above except will install the sources zip:
`Install-ModuleSources Dnn7 Debug Attach`