Ask a questionAsk a question
 

QuestionMicrosoft.Build.BuildEngine.GlobalEngine.GetLoadedProject not working

  • Thursday, November 05, 2009 11:43 PMSorporbear Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code

    I used this to load a project open inside Visual Studio (with the full path of the project file), and it works in VS2008 but not in VS2010 beta2. Is there any changes to get the MSBuild project with VS2010? Here is the code:

    Microsoft.Build.BuildEngine.Project msp = Microsoft.Build.BuildEngine.Engine.GlobalEngine.GetLoadedProject(p.FullName);
    
    


    Thanks!

     

     

    • Moved byChao KuoMSFTMonday, November 09, 2009 5:39 AMactually a 2010 problem (From:MSBuild)
    •  

All Replies

  • Monday, November 09, 2009 5:39 AMChao KuoMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello, 
    I moved your thread to .net framework 4.0 forum. That forum mainly support vs2010 beta2.
    Thanks
    Chao
  • Monday, November 09, 2009 11:21 PMSteve Horne - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm afraid I don't understand the question. Can you provide a step-by-step description of how to reproduce the problem and the exact error message?

    -Steve