


Well, Visual Studio publish won’t publish resource file to my publishing directory.

So far, so good, because, any resource string you required in your application, it would be provide by the ResourceManager.īut, in my project, there was custom helper method in my project, with would read the resource file. Resource file are embedded resource, and goes with the WebApp.dll. Option 1 was easier, but I land in the soup, for the resource file. Option 1: Either includes your custom file in VS project, and set the Build Action to “Content” In MVC application, it remove controller, model folder as it just contains the *.cs file, which are build in YourWebApp.dll.įolder structure is clean, but there is one caveat: if you application requires certain extra files to publish, then, it won’t automatically do it for you. which are not required to run the application. This is fantastic feature, as it does many thing on your behave, like Web.config transformation, removing *.cs files, *.designer.cs files, etc.

Maybe you can try not to use this feature and choose to deploy the web job after the web app is deployed.Visual Studio has the facility to publish the web application to File System, FTP, Web Deploy, Azure, etc. In fact there is already a feedback about this. This is the log:įrom the documentation, you will find that 'Enable automatic WebJobs deployment with a web project' is a feature supported by. Click add and upload the zip file.ĥ.Then the web job has be deployed. For example, if you want to deploy a console app as webjob manually.Ĭonsole.WriteLine("This is my first webjob!") Ģ.Build the console app, then right click and choose this:ģ.Go to bin -> Debug -> xxx, then you will find a folder with below files,add a run.cmd and zip them.Ĥ.Go to azure web app, search webjob.
