John
John

Reputation: 75

publish asp.net mvc5 without installing visual studio

Finally, i have completed my asp.net mvc5 project.

I have used EF code first for database and my solution included two part, the core included Model and frontend included the views and the controller.

Now i want to send the project to my friend that he can publish it in his windows server with IIS server.

My question is which file i have to copy for him that he can publish the WebApp with out installing visual studio in his windows server.

The main's file look like that

Upvotes: 2

Views: 304

Answers (1)

teo van kot
teo van kot

Reputation: 12491

Right click on main MVC project in your solution -> Publish.

Publish method: File System

Target location: your location

In settings Configuration you can set Release or Debug as you need.

After publish you can send whole folder to your friend. Everything that you need should be there (Your bins, views, scripts, css).

Your friend should just create new WebSite in IIS and place all files in folder that he selected.

Ofcourse he should change connection strings and set right settings for ApplocationPool that runnig WebSite.

Upvotes: 7

Related Questions