简体   繁体   中英

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.

主要文件看起来像那样

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.

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