简体   繁体   中英

Allow this precompiled site to be updatable Visual Studio 2019

We used Visual Studio 2010 and when we exported the website, we used the option to remove the check "Allow this precompiled site to be updatable". In that way it exported just the website but without the source code from Visual Studio 2019 where is this option? We can't find it.

We see only the exported site but it has all the source and modifiable as if was checked by default the option "Allow this precompiled site to be updatable" we need to uncheck that option to avoid is updatable. Where can I disable that option in Visual Studio 2019?

Just do a publish - but to a local folder.

So from the menu choose build->publish "my site".

And then from that choose start-> and then choose Folder.

That will result in a published site in a folder. There will of course be the compiled code in the "bin" folder - but you could if for some reason simply delete that folder (but it would and is required to run). It also rather possible you are confusing that of a web site vs that of a web site application. A web site does not need to compile, and the server will compile on the fly. But if you created a web application (as opposed to a site), then it is pre-compiled into the bin folder and is required. its been some time, but this process was quite much the same in 2010. (eg; the difference between having created a web site vs that of a web application).

so quite sure this process was the same as back then. The major difference (back then or even now) is you having created a web site in VS as opposed to a web application. Quite sure that same difference and same behaviors you see remain in place today.

Regardless of web site vs web application in VS? A web publish will produce just the web pages without the code behind parts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM