locked
create vspackage target .net 3.5 or 4 RRS feed

  • Question

  • Hi

    I just Want to know is it possible to create a vspackage in vs2012 and target .net 4 or 3.5 ?

    or I have to use VS2010 for creating vspackage for .net4 and VS2008 for .net3?

    Thanks

    Thursday, July 4, 2013 10:23 PM

Answers

  • Hi,

    Yes, you can careat a VSPackage project which targets .net 4 or 3.5 in Visual Studio 2012.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Ego Jiang Friday, July 5, 2013 8:29 AM
    • Marked as answer by Ego Jiang Monday, July 22, 2013 5:42 AM
    Friday, July 5, 2013 8:29 AM
  • I've only got VS2010, but for me that attribute exists in the Microsoft.VisualStudio.Shell.10.0 dll. I am targeting .NET 4.0, however, so maybe something is different in that regard.
    • Marked as answer by Ego Jiang Monday, July 22, 2013 5:42 AM
    Friday, July 5, 2013 9:21 PM

All replies

  • Hi,

    Yes, you can careat a VSPackage project which targets .net 4 or 3.5 in Visual Studio 2012.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Ego Jiang Friday, July 5, 2013 8:29 AM
    • Marked as answer by Ego Jiang Monday, July 22, 2013 5:42 AM
    Friday, July 5, 2013 8:29 AM
  • Thanks for reply.

    Please let me know if it is possible to target .net 3.5 , how i can resolve the compile error when reaching :

      [PackageRegistration(UseManagedResourcesOnly = true)]


    Error 7 The type or namespace name 'PackageRegistrationAttribute' could not be found (are you missing a using directive or an assembly reference?) VSPackage1Package.cs 24 6 VsPackageSetup


    • Edited by albert19 Friday, July 5, 2013 2:04 PM misspelling
    Friday, July 5, 2013 1:53 PM
  • I've only got VS2010, but for me that attribute exists in the Microsoft.VisualStudio.Shell.10.0 dll. I am targeting .NET 4.0, however, so maybe something is different in that regard.
    • Marked as answer by Ego Jiang Monday, July 22, 2013 5:42 AM
    Friday, July 5, 2013 9:21 PM