This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// optimize to prime index and improve performance | |
indexWriter.Optimize(); | |
// flush changes and cleanup resources | |
indexWriter.Dispose(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "typeaheadjs-nuget", | |
"version": "0.10.1", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"grunt-contrib-clean": "~0.5.0", | |
"grunt-shell": "~0.6.4", | |
"grunt-nuget": "~0.1.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
clean: ["dist"], | |
shell: { | |
makeDir: { | |
command: 'mkdir dist' | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: notice the --deep argument, this is what will pull down your entire change history to your new git repo | |
git-tf clone https://myaccount.visualstudio.com/DefaultCollection $/MyBigProject/MyMainBranch --deep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: from the root, add and commit any new files | |
git add . | |
git commit -a -m "initial commit after conversion" | |
:: add my github remote | |
git remote add origin https://github.com/sirkirby/myrepo.git | |
:: send the 'master' branch to the new 'origin' remote | |
git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: for my asp.net web application with nuget package restore in the src directory | |
azure site deploymentscript --aspWAP src/MyAspNetWebApp/MyAspNetWebApp.csproj -s src/MySolution.sln | |
:: for a node.js web application in the src directory | |
azure site deploymentscript --node --sitePath src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 1. Restore NuGet packages | |
IF /I "src\MySolution.sln" NEQ "" ( | |
call :ExecuteCmd "%NUGET_EXE%" restore "%DEPLOYMENT_SOURCE%\src\MySolution.sln" | |
IF !ERRORLEVEL! NEQ 0 goto error | |
) | |
:: 2. Build to the temporary path | |
IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" ( | |
call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\src\MyAspNetWebApp\MyAspNetWebApp.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="%DEPLOYMENT_TEMP%";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="%DEPLOYMENT_SOURCE%\src\\" %SCM_BUILD_ARGS% | |
) ELSE ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 1. KuduSync | |
IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" ( | |
call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%\src" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd" | |
IF !ERRORLEVEL! NEQ 0 goto error | |
) | |
:: 2. Select node version | |
call :SelectNodeVersion | |
:: 3. Install npm packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 1. Restore NuGet packages | |
IF /I "src\MySolution.sln" NEQ "" ( | |
call :ExecuteCmd "%DEPLOYMENT_SOURCE%\tools\nuget\nuget.exe" restore "%DEPLOYMENT_SOURCE%\src\MySolution.sln" -ConfigFile "%DEPLOYMENT_SOURCE%\tools\nuget\nuget.config" | |
IF !ERRORLEVEL! NEQ 0 goto error | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<packageSources> | |
<clear/> | |
<add key="MyPrivateFeed" value="https://www.myget.org/F/privatefeed/" /> | |
<add key="Official" value="http://nuget.org/api/v2/" /> | |
</packageSources> | |
<packageSourceCredentials> | |
<MyPrivateFeed> | |
<add key="Username" value="readonlyuser" /> |