aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 225 forks source link

Implements versions for generated code #2662

Closed rynowak closed 6 years ago

rynowak commented 6 years ago

This change implements version tracking the inputs and outputs of generated code.

Version tracking is still best-effort - meaning that in some cases a perfect system could avoid doing more work. However, since we base the versions off of all of the inputs, we now that the guarantee that code generation operations that happen 'out of order' will always result in the newer inputs generating the newer outputs.

Fixes: https://github.com/aspnet/Razor/issues/2650