none
How to use target framework in devenv command RRS feed

  • Question

  • Hi, 

    I am changing my target framework using the msbuild command.

    <PropertyGroup>

    <MyTargetFramework>v4.0</MyTargetFramework>

    </PropertyGroup>

     

    <MSBuild

     Projects="$(DirLocation)\$(MySourceCodePath)_$(BuildVersion)\Test.csproj"

     Properties="Configuration=Release;TargetFrameworkVersion=$(MyTargetFramework)"

    />

    Its working fine for csproj.

    Now I am building set ups(vdproj) using devenv command. How to change framework version in devenv command??????????

     

    Thanks

     


    Tuesday, July 5, 2011 10:36 AM

Answers

  • Hi Twikle123,

     

    Welcome to the MSDN forum.

     

    Based on my research, none of the devenv command line switches is able to change .NET Framework version. Actually, you cannot change the .NET Framework version of a setup project. If you want to change the .NET Framework of your C# project, I recommend you change the .NET Framework version first then generate setup files.

     

    If I have misunderstood anything, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Twikle123 Thursday, July 7, 2011 4:39 AM
    Wednesday, July 6, 2011 8:46 AM

All replies

  • Hi Twikle123,

     

    Welcome to the MSDN forum.

     

    Based on my research, none of the devenv command line switches is able to change .NET Framework version. Actually, you cannot change the .NET Framework version of a setup project. If you want to change the .NET Framework of your C# project, I recommend you change the .NET Framework version first then generate setup files.

     

    If I have misunderstood anything, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Twikle123 Thursday, July 7, 2011 4:39 AM
    Wednesday, July 6, 2011 8:46 AM
  • Thanks Alexander for the information..
    Thursday, July 7, 2011 4:40 AM