From the course: Deploying ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Project file settings

Project file settings

From the course: Deploying ASP.NET Core Applications

Start my 1-month free trial

Project file settings

- [Instructor] Before we dive into actually publishing an ASP.NET Core application, let's explore the options related to publishing that are available in the project file. You can view and edit the project file by right clicking on your project and selecting Edit. The csproj file defines the dependencies for your application, what framework you're building against, and it also can be used to include or exclude additional files from the publishing process. For example, let's say that you have a static file that's outside the wwwroot folder, and it won't automatically be included in the published output. You could manually include it by adding some markup here in the csproj file. Let's say there's a file called readme.md in the root of the solution and we wanna include it in the published site. If I add an ItemGroup property here and then a ResolvedFileToPublish tag. We'll say Include equals readme.md, and then we have to give it a relative path to wwwroot\readme.md, which effectively…

Contents