简体   繁体   中英

Why does publish run different code than Running in Visual Studio

I have an existing web application. I have built my project and it runs perfectly find if I run it through the Visual Studio Run option. It launches a browser window everything is fine.

The application is written in js and C# on the back end. It uses the Sencha ExtJS framework. All of the code changes were made to the javascript files.

When I use the deploy functionality, it creates a website on the wwwroot, but it does not include my changes, but rather the code before I made my changes.

I have tried to build/deploy both in debug and production configurations. It doesn't seem to matter.

What have I done wrong?

You have to run Sencha CMD sencha app build production .

Without that the files and requirements are not updated and hence you do not see the updates. If you run sencha app watch it will update your changes on the fly.

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