choco install nodejs-lts -y
refreshenv
- if it says refreshing for cmd.exe, you have to close and restart PowerShell and navigate back to the folder (you need to install the PowerShell profile - reference the troubleshooting page at https://chocolatey.org/docs/troubleshooting)npm install gulp -g
choco install sql-server-management-studio mssqlserver2014express -y
(you may find a newer version of SQL Server Express) <add name="NuGetGallery" connectionString="Data Source=.\SQL2016;Initial Catalog=Chocolatey;Integrated Security=SSPI;MultipleActiveResultSets=False;" providerName="System.Data.SqlClient" />
Note: the database does not need to exist
nuget restore
from the command-line as this will pull in extra packages that cause the build to break)The CodeDom provider type Microsoft.VisualC.CppCodeProvider could not be located
. This is due to what Visual Studio thinks are header files in the chocolatey\Website\node_modules
folder. Make that hidden (just the top level node_modules
folder).DECLARE @adminId int
SELECT @adminId = [Key] FROM Roles WHERE Name = 'Admins'
DECLARE @userId int
SELECT @userId = [Key] FROM Users where Username = 'username'
INSERT INTO UserRoles(UserKey, RoleKey) VALUES(@userId, @adminId)
When debugging, you might see this exception: SimpleInjector.ActivationException: 'The given type IControllerActivator is not a concrete type. Please use one of the other overloads to register this type.'
.
Just ignore this and keep running.
nugetgallery
folder or subfolder. Instead you should copy the unchanged item over to chocolatey/Website
.