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
task Publish -depends Compile { | |
Remove-Item $build_dir -Recurse -Force -ErrorAction SilentlyContinue #Cleanup the build directory | |
exec { | |
msbuild $source_dir\$project_name.sln /property:DeployOnBuild=true /property:PublishProfile=$project_config /property:UserName=<IISManagerUserName> /property:Password=<IISManagerUserPassword> /property:AllowUntrustedCertificate=true /v:q /nologo /clp:ErrorsOnly | |
} | |
} |
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
Add("MyInteger",42); |
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
var theAnswer = Config.Global.Get<int>("MyInteger"); // 42 |
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
#r "bin\MyComponents.dll" | |
Add("myComponent", new MyComponents.CustomObject { Id = 3, Text = "Blah" }); |
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
var myComponent = Config.Global.Get<CustomObject>("myComponent"); | |
Debug.WriteLine(myComponent.Id); // 3 | |
Debug.WriteLine(myComponent.Text); // Blah |
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
<appSettings> | |
<add key="Server.EnvironmentName" value="debug" /> | |
</appSettings> |
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
protected void Application_Start() | |
{ | |
// Standard MVC Stuff goes here. | |
// Load config-r configuration file based on the environment appSetting | |
var environment = ConfigurationManager.AppSettings["Server.EnvironmentName"]; | |
Config.Global.LoadScriptFile($"Web.{environment}.csx"); | |
} |
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
public Foobar(string value, string displayName, params string[] extraData) | |
{ | |
// Implementation | |
} | |
public Foobar(string value, params string[] extraData) | |
{ | |
// Implementation | |
} |
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
var foobar1 = new FooBar("Value1", "ExtraData1", "ExtraData2", ExtraData3"); |
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
var extraData = new string[] {"ExtraData1", "ExtraData2", "ExtraData3"}; | |
var foobar2 = new FooBar("Value1", extraData); |