locked
How to use SolutionWrapperProject class RRS feed

  • Question

  • Hi,

    How to use SolutionWrapperProject class ?

    Where it can be used? Is it to generate a solution file ?

     

    Thanks

    Inder Gujral

    Thursday, November 11, 2010 12:45 PM

Answers

  • Hi Inder,

     

    Thanks for your post.

    SolutionWrapperProject is used to add a stand alone VC project or project wrappered with MSbuild into a solution, it is used to generate a VC project file, and it's not commonly used.

    Could you please let me know what's the purpose?

    If you'd like to create a solution, you can try:

    Dim sln As Solution

    Dim proj As Project

    sln = DTE.Solution

    sln.Create("D:\testpath", "testsln.sln")

    sln.SaveAs("D:\testpath\testsln.sln")

    proj = sln.AddFromFile(project file path)

    Hope this can help.

    Best Regards,

    Ziwei Chen

     

    • Marked as answer by Victor_Chen Friday, November 19, 2010 8:06 AM
    Monday, November 15, 2010 8:47 AM

All replies

  • Hi Inder,

     

    Thanks for your post.

    SolutionWrapperProject is used to add a stand alone VC project or project wrappered with MSbuild into a solution, it is used to generate a VC project file, and it's not commonly used.

    Could you please let me know what's the purpose?

    If you'd like to create a solution, you can try:

    Dim sln As Solution

    Dim proj As Project

    sln = DTE.Solution

    sln.Create("D:\testpath", "testsln.sln")

    sln.SaveAs("D:\testpath\testsln.sln")

    proj = sln.AddFromFile(project file path)

    Hope this can help.

    Best Regards,

    Ziwei Chen

     

    • Marked as answer by Victor_Chen Friday, November 19, 2010 8:06 AM
    Monday, November 15, 2010 8:47 AM
  • Hi Inder,

     

    Is it resolved?

    Best Regards,

    Ziwei Chen

     

    Friday, November 19, 2010 8:06 AM