You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-68Lines changed: 30 additions & 68 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,79 +10,42 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
10
10
11
11
## Build and Run the Gallery in (arbitrary number) easy steps
12
12
13
-
1. Prerequisites. Install these if you don't already have them:
14
-
1. Visual Studio 2015 - Custom install so that you may also install Microsoft SQL Server Data Tools. This will provide the LocalDB that Windows Azure SDK requires.
1. We highly recommend using IIS Express. Use the [Web Platform Installer](http://microsoft.com/web) to install it if you don't have it already (it comes with recent versions of VS and WebMatrix though). Make sure to at least once run IIS Express as an administrator.
29
-
2. In an ADMIN powershell prompt, run the `.\tools\Enable-LocalTestMe.ps1` file. It allows non-admins to host websites at: `http(s)://nuget.localtest.me`, it configures an IIS Express site at that URL and creates a self-signed SSL certificate. For more information on `localtest.me`, check out [readme.localtest.me](http://readme.localtest.me). However, because [Server Name Indication](https://en.wikipedia.org/wiki/Server_Name_Indication) is not supported in the Network Shell on versions of Windows before 8, you must have at least Windows 8 to run this script successfully.
30
-
3. If you're having trouble, go to the _Project Properties_ for the Website project, click on the _Web_ tab and change the URL to `localhost:port` where _port_ is some port number above 1024.
31
-
32
-
5. Create the Database!
33
-
34
-
There are two ways you can create the databases. From Visual Studio 2015 or from the command line.
35
-
36
-
1. From Visual Studio 2015
37
-
1. Open Visual Studio 2015
38
-
2. Open the Package Manager Console window
39
-
3. Ensure that the Default Project is set to `NuGetGallery`
40
-
4. Open the NuGetGallery.sln solution from the root of this repository. ***Important:*** Make sure the Package Manager Console has been opened once before you open the solution. If the solution was already open, open the package manager console and then close and re-open the solution (from the file menu)
41
-
5. Run the following command in the Package Manager Console:
* Additionally you can provide a `-NugetGallerySitePath` parameter to the `Update-Databases.ps1` script to indicate that you want to perform the migration on a site other than the one that is built with this repository.
62
-
63
-
6. When working with the gallery, e-mail messages are saved to the file system (under `~/App_Data`).
64
-
* To change this to use an SMTP server, edit `src\NuGetGallery\Web.Config` and add a `Gallery.SmtpUri` setting. Its value should be an SMTP connection string, for example `smtp://user:password@smtpservername:25`.
65
-
* To turn off e-mail confirmations, edit `src\NuGetGallery\Web.Config` and change the value of `Gallery.ConfirmEmailAddresses` to `false`.
66
-
67
-
7. Ensure the 'NuGetGallery' project (under the Frontend folder) is set to the Startup Project
68
-
69
-
70
-
That's it! You should now be able to press Ctrl-F5 to run the site!
71
-
72
-
Be aware that you might detect a change in the __applicationhost.config__:
73
-
74
-
Unfortunately Visual Studio will replace the relative path with an absolute path. The committed applicationhost.config-file is currently the easiest way to setup the localtest.me-binding for IIS Express.
75
-
76
-
However, you can force Git to ignore the change with this command:
#For TeamCity - If any issue occurs, this script fail the build. - By default, TeamCity returns an exit code of 0 for all powershell scripts, even if they fail
15
+
#This script should fail the buildif any issue occurs.
16
16
trap {
17
17
Write-Host"BUILD FAILED: $_"-ForegroundColor Red
18
18
Write-Host"ERROR DETAILS:"-ForegroundColor Red
@@ -81,7 +81,7 @@ Invoke-BuildStep 'Set version metadata in AssemblyInfo.cs' {
0 commit comments