Visual Studio 2008 Project Properties Build Configuration Missing Options

后端 未结 4 694
别跟我提以往
别跟我提以往 2020-12-18 02:08

I have a strange problem, and hopefully someone can help me.

I have a solution with 13 separate C# projects. I am using Vista x64 to develop on, and I would like to

相关标签:
4条回答
  • 2020-12-18 02:28

    I would compare the textual contents of the csproj files to see if there is any setting that has fallen out or in by accident. Also check the contents of the sln, maybe there's something weird with the configs.

    Regards,

    Sebastiaan

    0 讨论(0)
  • 2020-12-18 02:41

    I also develop on x64 and deploy to x86. However I don't change the platform from the default value (Any CPU) and it works for me just fine. Do you have any code (such as Win interop) that works differently across platforms? Check out this post by Hanselman for details on 32/64 bit .NET targeting.

    0 讨论(0)
  • 2020-12-18 02:43

    For Visual Studio 2010. To run Access 12.0: R-click on the project name in Solution Explorer, select Properties - Build* - target platform - x86.

    0 讨论(0)
  • 2020-12-18 02:46

    Sounds like the Build Configurations have gone screwy. The three projects were probably added after the solution was configured to have x86 support (New projects only support AnyCPU, even if the solution supports more platforms.)

    • Go Build->Configuration Manager...
    • Change 'Active Solution Platform' to x86 (if it's there. If only AnyCPU is there, then use that.)
    • For each offending project, in the Platform column, select 'New'
    • Choose New Platform as 'x86', Copy Settings from 'Any CPU', and make sure the check box is NOT ticked.
    • Hit OK.

    Getting configuration/platforms consistent between the solution and individual projects can be tricky. The Configuration Manager can behave unexpectedly - especially with custom solution configurations. I suggest playing in a test solution first.

    0 讨论(0)
提交回复
热议问题