Fix the script. The tests use environmental variable such as RunFunctionalTests etc. Remove setlocal so that the environmental variables take longer effect.

Also unify the format of URL, for the use of script parameters.
Fix FxCop issues
Fixed build errors
Merge pull request #2046 from NuGet/danliu/testfix

Fix the run test scripts.
Fix the functional tests, so that they can run out of visual studio and be easily debugged. This changeset includes:
1. when debug in visual studio, bypass the check for the environmental variable of RunFunctionalTests
2. fix the broken app.config file
3. include nuget.exe to the solution to help with debugging, as some tests requires its presence
add actual NuGet.exe
Fix test failures for UploadAndDownloadPackageWith*.

The failed tests are due to changes with the new search service. Packages needs to wait 2min or so for them to appear in search index and the Odata feed after being uploaded.
A temp. workaround is to use thread.sleep(). Will need to investigate a more permanent solution.
Add Octopus packaging scripts
minor test fixes. More logging that helps with debugging.
Renamed some things for consistency and added new Repository boilerplate
Installed NuGet.Services.Build and updated csprojs
Updated to NuGet Build script that includes xunit
Added Octopus Packaging
Merge branch 'anurse/addoctopuspackaging'
Updated Service Build package
Add missing files to CSProjes
Add previously ignored files
Fix Fluent tests, which include:
1. Disable of sorting search results based on gallery changes
2. Commenting out the search syntax tests by title: and :description
3. Ignore the LicenseUI test as it requires a long process for the LicenseUI to show up for the test packages.
4. Add a new LicenseUI test using existing packages of jQuery that already have the license tab available
5. Add a CheckForPackageExistence variable to work around the issue that the httpwebrequest will time out after a few tries. As the packages with fixed ID and version all exist now, this is okay.
Merge branch 'master' of https://github.com/NuGet/NuGetGallery into danliu/testfix
Merge pull request #2049 from NuGet/danliu/testfix

Danliu/testfix