This file contains 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
<!-- add this target to *each* project file, and modify the BeforeBuild target that's already in the project file (usually commented out) to depend on it --> | |
<Target Name="RestoreNuGetPackages" Condition="Exists('.\packages.config')" BeforeTargets="Build"> | |
<!-- try to execute `nuget help` to see if it's available from what's in the PATH --> | |
<Exec Command="cmd.exe /c nuget help > NUL" IgnoreExitCode="True"> | |
<Output TaskParameter="ExitCode" PropertyName="NuGetExitCode"/> | |
</Exec> | |
<!-- raise an error if nuget.exe wassn't available from what's in the PATH --> | |
<Error Text="Failed to execute nuget.exe; please make sure your PATH environment variable provides a path to nuget.exe." Condition="'$(NuGetExitCode)' != '' and '$(NuGetExitCode)' > '0'" /> | |
<!-- restore packages --> | |
<Exec Command="nuget install .\packages.config -o $(SolutionDir)\packages" /> |
This file contains 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
<Project | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | |
ToolsVersion="4.0" | |
DefaultTargets="Demo" > | |
<Target Name="Demo"> | |
<PropertyGroup> | |
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd-mmss))</CurrentDate> | |
</PropertyGroup> |
This file contains 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> | |
<system.webServer> | |
<directoryBrowse enabled="true" /> | |
</system.webServer> | |
</configuration> |
This file contains 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"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
This shows how you can get the name of the generated assembly when building a project | |
using the MSBuild task. | |
Note: the result of this is shown at https://dl.dropbox.com/u/40134810/twitter/msbuild-target-outputs.png | |
--> | |
<!-- The .csproj/.vbproj files to build, this can be named whatever you want --> |
This file contains 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. Place basmati rice into a bowl, rinse it with water a couple times | |
2. Soak the rice with clean cold water for at least 4 hours. Make sure to stir the rice good when soaking so that the grains don't stick together | |
3. After rice has soaked, dump the water it was soaking in. Rinse the rice with fresh water a few times | |
4. Bring some water to a boil in a pot, add some salt to the water too | |
5. Add rice to water (there water should fully cover the rice with some room to spare) | |
6. Let the rice come to a solid boil (stirring occasionally to ensure rice doesn't stick together) | |
7. Let the rice boil until the rice has softened up (crush some rice between your figers to judge). When its almost soft enough to eat take it off the heat | |
8. Drain out the water from the rice | |
9. Rinse rice with fresh cold water | |
10. Drain out the water from the rice (make sure its really dry you want to avoid any left over water here) |
This file contains 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Demo"> | |
<!-- Demonstrates how you can convert a relative path to a full path in MSBuild --> | |
<PropertyGroup> | |
<Filepath>sample\file.txt</Filepath> | |
</PropertyGroup> | |
<Target Name="Demo"> | |
<PropertyGroup> |
This file contains 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"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Target Name="RestoreNuGetPackages"> | |
<Message Text="Restoring nuget packages" /> | |
<MSBuild Projects="$(MSBuildThisFileDirectory)WorkerRole1\packageRestore.proj"/> | |
</Target> | |
<Target Name="Build" DependsOnTargets="RestoreNuGetPackages"> | |
<Message Text="Invoking solution build/publish" /> |
This file contains 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"?> | |
<!-- | |
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | |
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. | |
--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<IncludeSetAclProviderOnDestination>false</IncludeSetAclProviderOnDestination> | |
<WebPublishMethod>MSDeploy</WebPublishMethod> | |
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
This file contains 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
# Folders to ignore # | |
OutputRoot/ |
This file contains 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
[enum]::getvalues([type]'ConsoleColor') | ForEach-Object{ | |
$curForeground = $_ | |
[enum]::getvalues([type]'ConsoleColor') | ForEach-Object{ | |
$curBackground = $_ | |
$msgStart= "Foreground={0}, Background={1}" -f $curForeground,$curBackground | |
$msgStart += (New-Object string -ArgumentList @(' ',(50-$msgStart.Length))) | |
$msgStart | Write-Host -NoNewline |
OlderNewer