Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Last active March 10, 2017 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottsauber/4914affeb18bf7ee8543aa924e903c46 to your computer and use it in GitHub Desktop.
Save scottsauber/4914affeb18bf7ee8543aa924e903c46 to your computer and use it in GitHub Desktop.
Old Razor Pre-compilation project.json
{
"dependencies": {
"Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Design": {
"version": "1.1.0-preview4-final",
"type": "build"
}
},
"tools": {
"Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Tools": "1.1.0-preview4-final"
},
"buildOptions": {
"preserveCompilationContext": true
},
"scripts": {
"postpublish": [
"dotnet razor-precompile --configuration %publish:Configuration% --framework %publish:TargetFramework% --output-path %publish:OutputPath% %publish:ProjectPath%"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment