TargetFrameworkVersion in the .csproj file

Posts   
 
    
DaveR
User
Posts: 43
Joined: 15-Jun-2004
# Posted on: 10-Jan-2008 00:25:12   

I've just upgraded to the latest LLBLGen Pro 2.5 and notice when generating a VS2008 project, the following is added to the .csproj file:

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

However, my project is still targeting the .NET 2.0 framework.

I have manually removed this line from the .csproj file because I could not find a way to modify the LLBLGen settings or templates to omit this from the project, or to target the 2.0 framework explicitly.

Am I missing something?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Jan-2008 05:48:58   

LLBLGen put it by default. However if you will use VS2008 targeting .NetFramework 2.0 you should:

  1. Open <LLBLGen Instalation Folder>\Templates\SharedTemplates\Net2.x\C#\vsnet2008ProjectFileAdapter.template in notepad or TemplateStudio.

  2. Replace this line

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

with this

<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
  1. Save
David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 11-Jan-2008 10:43:16   

Or load it in vs.net, change the framework version in vs.net and save simple_smile

Frans Bouma | Lead developer LLBLGen Pro