Web Site project & Mixed Platform

Hi;

when I created my build type for my web project, I selected the "Mixed Platform" in the build configuration...

I know the configuration setting in the Configuration Manager should be same as the configuration setting of the build type, but the "Mixed Platforms" option is not available in the Configuration Manager...

so how can I get it back

Thanks...



Answer this question

Web Site project & Mixed Platform

  • Raymundo Chapa94595

    "Mixed Platforms" will typically show up in the Configuration Manager when you are working with a solution that has a mix of different project types. For example, C# projects default to the "Any CPU" platform, while website projects default to the ".NET" platform. So - one possibility is to add a C# project to your solution... I wouldn't recommend this approach, however!

    Instead, you can simply open the configuration manager and add a new configuration.

    • Open the Configuration Manager (Build menu -> Configuration Manager).
    • In the Active solution platform combo box, select <New...>.
    • Type Mixed Platforms in the Type or select the new platform box and click OK.
    • Set up the project level configurations in the main Configuration Manager screen as appropriate.

    -Aaron



  • handyman9

    Thanks for ur replay

     

    Actually, my solution has 2 different projects, C# and website. By default, both of them have an “AnyCPU” platform…

     

    I have 2 questions :

     

    1-Why I haven’t a “.NET” platform for the website project

     

    2-When I add a new configuration and call it “Mixed platform”… From where I should copy its settings I have an option to copy the settings from “Any CPU” platform … so, what is the benefit of adding this new configuration if we copy its settings from “Any CPU” platform

     

    please help me...

     

    thanks

     


  • johnny_no1_boy

    thanks Aaron ...Now, my build defintion and all projects under the soltuion have a "Any CPU" platform

    actually, when I created a new website project in a new sotuion, I found this project have a .Net platform

    but in my current solution, this option is not avaiable for the website project.. I don't know what's the problem


  • cereyan

    1 - Not sure about this one. Typically website projects will have .NET as their default platform.

    2 - If everything you are building has a platform of Any CPU, I would suggest modifying your build definition (to build the Any CPU platform in place of Mixed Platforms) rather than trying to add Mixed Platforms to your solution.

    Keep in mind, however, that Team Build potentially builds multiple solutions. If you have one solution that contains projects with the .NET platform and one solution that contains projects with the Any CPU platform, you might want to specify the Mixed Platforms platform in your build type, and have the solution-level Mixed Platforms configuration map to .NET for the one solution and Any CPU for the other. For this reason, it can sometimes make sense to have a Mixed Platforms configuration in one solution that is exactly the same as some other configuration.

    -Aaron



  • Web Site project & Mixed Platform