I am trying to compile my Web Forms 2017 project using PowerShell. I know it can be done (and in Command Prompt), because I have done it before. I am using this script to compile the project:
$aspnetCompiler = (Join-Path $env:windir 'Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler') & $aspnetCompiler -p "C:\Users\Steve\Documents\Visual Studio 2017\DimaWeb" -v /-u "C:\DimaWebCompiled_test"The folder, DimaWeb, is the one which contains my VS project files (aspx and aspx.vb pages, images, scripts, MS Access database, etc). The folder, DimaWebCompiled_test, should contain my compiled files ready to be uploaded to my Web hosting service. I am getting this error:
/-u/DimaWeb/Account/RegisterExternalLogin.aspx(1): error ASPPARSE: The file ‘/-u/Site.master’ does not exist.
Is there another script I can try as I don’t understand the error. I do not have a file called RegisterExternalLogin.aspx(1) in my Account folder, but I do have a file called RegisterExternalLogin.aspx in my Account folder in Visual Studio. I also have a file called Site.master in Visual Studio, though I never use it.
What should I be doing, please, that I am not doing?