I don't see 'Targer Framwork' change (.NET Framework 4 Clint profile) or others to --->> (.NET Framework 4) in vs 2015 Advance compiler settings

Dani AI

Generated

— Not seeing the full “.NET Framework 4” option in Visual Studio 2015’s Advanced Compile settings is usually a tooling/targeting issue rather than a code bug. As noted, upgrades or partial installs can leave out older targeting packs or reference assemblies, which makes Visual Studio offer only the Client Profile and hides controls that require the full framework (for example CrystalReportViewer).

Two practical fixes used reliably in VS2015:

  • Edit the project file to remove the Client profile entry. Unload the project, Edit the .vbproj/.csproj and remove any <TargetFrameworkProfile>Client</TargetFrameworkProfile> line so the file looks like:
<PropertyGroup>
  <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>

Save and reload the project; the full .NET Framework 4 option should then appear in Project Properties → Application (or Compile → Advanced Compile Options for VB).

  • If the full framework still doesn’t appear after editing, install the missing .NET targeting pack (Microsoft .NET Framework 4 Developer/Targeting Pack) or run the Visual Studio installer and add the older targeting packs. A restart of Visual Studio is required after installation.

Crystal Reports specifics: the viewer control is not shown unless the project targets the full framework and the SAP Crystal Reports developer components for Visual Studio are installed. After installing the Crystal package, add the viewer via Toolbox → Choose Items and browse to the appropriate assemblies (WinForms: CrystalDecisions.Windows.Forms.dll; Web: CrystalDecisions.Web.dll). Also ensure the installed Crystal runtime matches the app’s platform target (x86 vs x64). Backup the project file before editing; web-site projects and portable libraries use different property pages so their changes must be made in the appropriate place.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.