You may receive an "unable to build project output 'content files from WebApplicationName'" error message when you build a deployment package in Visual Studio .NET
To resolve this behavior, you can replace any missing dependency files, or
you can remove the file that requires them if the project does not require that file.
On the File menu, point to
New, and then click Project. The New Project dialog box appears.
c.
Under
Project Types, click Setup and Deployment
Projects.
d.
Under Templates, click Web Setup
Project.
e.
In the Name box, type WebSetup, and then click OK.
2.
Add a Web Application project to the solution:
a.
In Solution Explorer, click the solution.
b.
On the File menu, point to Add
Project, and then click New Project. The Add New Project dialog box appears.
c.
Under
Project Types, click
Visual Basic Projects.
d.
Under Templates, click ASP.NET Web Application.
e.
Click OK. A Web Application project that is named WebApplication1 is added to
the solution.
3.
On the File menu, click Save
All.
4.
Remove a file that is part of the Web Application project:
a.
In Microsoft Windows Explorer, locate the folder that contains the WebApplication1 project that you created in step 2. By default, this project is located in the
C:\Inetpub\Wwwroot\WebApplication1 folder.
b.
Delete the Global.asax file.
5.
In Solution Explorer, click the WebApplication1 project.
6.
On the View menu, click
Refresh.
Notice that a yellow triangle icon appears next to the Global.asax
file. This icon indicates that the Global.asax file is missing.
7.
Add the project output to the solution:
a.
In Solution Explorer, click the WebSetup project.
b.
On the Project menu, point to
Add, and then click Project
Output. The Add Project Output Group dialog box
appears.
c.
In the Project
box, click the WebApplication1 project.
d.
In the box under the Project
box, click Content Files.
e.
In the
Configuration box, click (Active).
f.
Click OK. In Solution Explorer, Content Files from
WebApplication1 (Active) appears under
WebSetup.
Need More Help? Contact a Support professional by Email, Online or Phone.
Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.