Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6930765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:29:25+00:00 2026-05-27T11:29:25+00:00

When I create a Class Library project my solution adds an AnyCpu platform. After

  • 0

When I create a Class Library project my solution adds an “AnyCpu” platform. After adding a WPF project it adds a “x86” platform. Then when I create a Console project it finally creates a solution-wide “Mixed Platforms” platform. There are 2 problems:

  • When I try to compile it on a 32 bit machine the Debug binary won’t work unless I replace all “AnyCpu” references by “x86” in all .csproj files (the Release binary works however)
  • The configuration manager and the .sln files are cluttered

How to avoid those problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:29:26+00:00Added an answer on May 27, 2026 at 11:29 am

    You can specify all this configuration in a single MSBuild properties file and just import in each csproj so you just neeed to change it in one place going further.

    <!-- Add in the each csproj file -->
    <Import Project="..\CommonProperties.properties" />
    
    
    <!-- CommonProperties.properties file -->
    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="4.0"
             xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
        <PropertyGroup>
          <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
        </PropertyGroup>
    
    </Project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a dll from a class library in one solution, then
I have a class library project which uses a namespace (e.g., Cosmos.Creator.Util). I then
I have created the WPF user control and WPF window in class library project.
If you create a class library that uses things from other assemblies, is it
When I'm building a class library I usually create a file Enums.cs to hold
I'm looking for a PHP library/function/class which can create Identicon s.
I have created a RIA services class library project and things are not going
We have a VS 2010 solution that includes a few class library projects, a
I have a class/library project I made in Visual Studio, a Spreadsheet in the
Project Structure I have a silverlight project SLProj, that references a silverlight class library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.