Skip to content

Instantly share code, notes, and snippets.

@mrange
Created January 21, 2014 20:28
Show Gist options
  • Save mrange/8547725 to your computer and use it in GitHub Desktop.
Save mrange/8547725 to your computer and use it in GitHub Desktop.
Response to Chris Geuer-Pollmann regarding T4Include
<#
// Whenever this file is saved the files in the Includes section is downloaded
// from GitHub (you can download from other websources by changing rootpath)
RootPath = @"https://raw.github.com/";
Namespace = "WebAPI2PostExperiment" ; // The downloaded content is wrapped in this namespace
Usings = new []
{
Using ("Owin"),
};
Includes = new []
{
// Include the basic extension from T4Include
Include (@"mrange/T4Include/master/Extensions/BasicExtensions.cs"),
// Uncomment below to include dapper
// Include (@"SamSaffron/dapper-dot-net/master/Dapper/SqlMapper.cs"),
// Note argument at end of line: noOuterNamespace:true
Include (@"thinktecture/Thinktecture.IdentityModel/master/source/Thinktecture.IdentityModel.Owin/Basic%20Authentication/BasicAuthenticationOptions.cs", noOuterNamespace:true),
Include (@"thinktecture/Thinktecture.IdentityModel/master/source/Thinktecture.IdentityModel.Owin/Basic%20Authentication/BasicAuthenticationExtensions.cs"),
Include (@"thinktecture/Thinktecture.IdentityModel/master/source/Thinktecture.IdentityModel.Owin/Basic%20Authentication/BasicAuthenticationHandler.cs"),
Include (@"thinktecture/Thinktecture.IdentityModel/master/source/Thinktecture.IdentityModel.Owin/Basic%20Authentication/BasicAuthenticationMiddleware.cs"),
};
#>
<#@ include file="$(SolutionDir)\packages\T4Include.1.1.2\T4\IncludeWebFile.ttinclude" #>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment