PRB: "This Setup Does Not Contain the .NET Framework" Error Message During Visual Studio .NET Deployment (320426)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft .NET Framework 1.0

This article was previously published under Q320426

SYMPTOMS

When you compile Visual Studio .NET Setup and Deployment projects, you may receive the following message:
WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup.

CAUSE

By default, this warning is generated in each setup package to remind you that the Microsoft .NET Framework is not distributed with Setup and Deployment projects but is required for .NET applications to run.

RESOLUTION

If you want to include the .NET Framework in your Visual Studio .NET Setup and Deployment projects, see the following Microsoft sample for how to include the .NET Framework with your package: You can download the .NET Framework from the Microsoft Web site. The .NET Framework is also available on the Visual Studio .NET installation media. For additional information about the location of the .NET Framework redistributable package, click the article number below to view the article in the Microsoft Knowledge Base:

308488 INFO: Download and Install the .NET Framework

REFERENCES

For more information on how to use a bottstrapper sample, click the link below:

Modification Type:MajorLast Reviewed:1/30/2003
Keywords:kbprb KB320426