Simon
Simon

Reputation: 1693

Azure Web App VSTS Pre-compile Views (Not updatable)

In my VSTS Build process for the build task I have the following flags set to pre-compile the views:

/p:PrecompileBeforePublish=true /p:UseMerge=true

This works fine and I can see the views are pre-compiled and the site is definitely faster.

However, I can't seem to work out whether either of these sets the flag to allow or not the site to be updatable, obviously I don't want it to be updatable but no amount of Googling has found a suitable answer and I'm not sure if there is another way I can check?

Thanks

Upvotes: 6

Views: 1122

Answers (1)

Josh E
Josh E

Reputation: 7432

You'll want to use the EnableUpdateable MSBuild property:

/p:EnableUpdateable=false /p:PrecompileBeforePublish=true /p:UseMerge=true

Upvotes: 8

Related Questions