Created mvc project and published but newly-added folder did not follow - c#

I created an MVC project in Visual Studio 2013 and published it to Azure and it worked great. I made some changes by adding an image folder under content. Well, when I went to publish my changes to Azure, that folder did not get published.
I had to manually right-click on the folder in Solution Explorer and publish it separately. Can I do this automatically?

Related

Unable to select Visual Studio Profile to Publish

To publish my project, I Builded my Asp.Net MVC Web application, But the publish window is as shown in the picture,The tabs are getting freezed. It is unable to choose any local folder for publish.
I installed the updated version of visual studio, now the problem solved.

How to publish referenced projects within an ASP.NET project

I'm building an ASP.NET web portal for a project for school.
I use a three tier architecture and I'm trying to publish it using FTP.
The web project is published successfully but the other two projects aren't published on the IIS.
How can I tell visual studio that I want these projects published alongside the web project?
here is an image to make it a bit more clear
http://i.imgur.com/J4qeyTj.png
Thanks in advance
No need to publish other projects separately.
Give reference of other project to your main project.
Publish Main Project.
DLL's of all projects will get created in bin folder[you will get this folder in publish folder].
Just upload files in bin folder to FTP.
You don't need to publish the class library projects.
All you have to do is to add references of your class library projects in your web application and publish it. It'll add your class library projects dll in bin folder of your published folder.

How to deploy a "Release" build of an ASP.NET MVC5 application

So It's the first time I'm trying to deploy an ASP.NET MVC application to a Windows host.
I set the compile mode to "Release" in Visual Studio 2015 and I compile it but don't know which folder(s) to zip and upload to server...
I see an obj folder in project directory that has two folder inside it. "Debug" and "Release". I'm not sure about them though.
On the other hand in project directory root, there is a folder with the same name as project, inside it I can see controllers so I'm pretty sure that folder is not a "Release" build.
My host is running Plesk and IIS 8.
What should I do?
You should use the Publish wizard of visual studio. As a shortcut --> Right click on the MVC project and click publish. You will find many option here.
Make sure you configure your publish profile in release mode if you are publishing on server

Visual Studio 2013 Web Deploy Package Issue

I've been using the Web Deploy Package to publish a site I'm working on to our test server but for some reason its started including the .sln file and it doesn't seem to be compiling the solution anymore. I've checked the configuration and its using the release build but when I deploy all of the .cs and .designer.cs are included. I'm deploying a second site using the same setting and that is deploying OK.
Has anyone else experienced this? I've cleaned and rebuilt the solution and I've deleted the publish profile and created a new one but nothing has helped.
Any pointers would be appreciated.
I've sorted this now. It turns out in the project properties > Package/Publish Web Tab I had the Items to deploy drop down set to "All files in this project". I changed to "Only files needed to run this application" and everything worked as expected.

publish my project

I have little problem to publish my project in C# express edition 2008 (WinForms).
I saw from Google how to do the basic and go to project property -> publish
But now in the publish folder that was created under my main project's folder and I have there setup and one more file and folder named application files.
But when I run the setup or the other file I'm getting error:
cannot start application MYPROJECTNAME from this location because it
is already installed from a different location.
I have also in bin-> debug ->app.publish a setup file which works fine until it needs to use a txt file in my project and it says that the txt file can't be found.

Categories