Closed Tadimsky closed 6 years ago
@rynowak did we verify this was fixed as part of https://github.com/aspnet/Razor/issues/1446?
As @Tadimsky points out, we are passing the setting through to CSC but it's not doing what he wants. Maybe there's more we need to do - we should investigate this and if there isn't a straightforward workaround we should consider patching it.
Is this a Bug or Feature request?: Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
/p:Deterministic=true
Project.Views.dll
andProject.dll
Project.dll
will have no difference whereasProject.Views.dll
will be differentDescription of the problem:
The razor compiled code is not deterministic. This means that building the same source code twice will result in different outputs. We use
/p:Deterministic=true
to ensure that our build output is the same for the same source code. This is super helpful in our Service Fabric applications where we do not bump the version number up when the code did not change for a service.Version of
Microsoft.AspNetCore.Mvc
orMicrosoft.AspNetCore.App
orMicrosoft.AspNetCore.All
:2.1.0
It looks like there is a
/deterministic+
flag set in the RazorCoreCompile but that doesn't seem to do what is expected?