MSBuild

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scott M.

    MSBuild

    This may not be the right place for this, but I can't find an MSBuild NG, so here goes...

    I'm trying to understand why this particular condition is placed in my build files:

    <Configuratio n Condition=" '$(Configuratio n)' == '' ">Debug</Configuration>

    Is it there just in case of user stupidity? How would you set your configuration to an empty string in the first place? And, if you could, why would you?

    Thanks.
  • Walter Wang [MSFT]

    #2
    RE: MSBuild

    Hi Scott,

    The statement's purpose is to set a default value for the property
    "Configurat ion" if it's not explicitly set by user. Therefore if you didn't
    specify "/p:Configuration =Debug" on the command line, it will have the
    value "Debug" by default.

    Note the condition attribute could be either specified on a PropertyGroup
    node or a single property node:

    <PropertyGrou p>
    <Configuratio n Condition=" '$(Configuratio n)' == ''
    ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion >8.0.50727</ProductVersion>
    <SchemaVersion> 2.0</SchemaVersion>
    <ProjectGuid>2a 7074be-72dd-4b92-9d44-eb6023010ec7</ProjectGuid>
    <OutputType>Exe </OutputType>
    <AppDesignerFol der>Properties</AppDesignerFold er>
    <RootNamespace> ConsoleApplicat ion1</RootNamespace>
    <AssemblyName>C onsoleApplicati on1</AssemblyName>
    </PropertyGroup>
    <PropertyGrou p Condition=" '$(Configuratio n)|$(Platform)' ==
    'Debug|AnyCPU' ">
    <DebugSymbols>t rue</DebugSymbols>
    <DebugType>full </DebugType>
    <Optimize>false </Optimize>
    <OutputPath>bin \Debug\</OutputPath>
    <DefineConstant s>DEBUG;TRACE</DefineConstants >
    <ErrorReport>pr ompt</ErrorReport>
    <WarningLevel>4 </WarningLevel>
    </PropertyGroup>


    In above file, the first ProjectGroup node is defining several common
    properties and only the property "Configurat ion" has default value "Debug"
    specified. The second ProjectGroup node has a condition which uses the
    Configuration and Platform properties to determine if its enclosed
    properties such as "DebugSymbo ls", "DebugType" should have which values.

    Hope this helps.

    Regards,
    Walter Wang (wawang@online. microsoft.com, remove 'online.')
    Microsoft Online Community Support

    =============== =============== =============== =====
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    =============== =============== =============== =====

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Comment

    • Walter Wang [MSFT]

      #3
      RE: MSBuild

      Hi Scott,

      I'm writing to check the status of this post. Please feel free to let me
      know if there's anything else I can help. Thanks.


      Regards,
      Walter Wang (wawang@online. microsoft.com, remove 'online.')
      Microsoft Online Community Support

      =============== =============== =============== =====
      When responding to posts, please "Reply to Group" via your newsreader so
      that others may learn and benefit from your issue.
      =============== =============== =============== =====

      This posting is provided "AS IS" with no warranties, and confers no rights.

      Comment

      • Scott M.

        #4
        Re: MSBuild

        Hi Walter,

        Thanks for your reply and yes, it does answer my question. I guess I wasn't
        thinking about non-IDE development when I posted.

        -Scott


        ""Walter Wang [MSFT]"" <wawang@online. microsoft.comwr ote in message
        news:LKb7PpmKIH A.4200@TK2MSFTN GHUB02.phx.gbl. ..
        Hi Scott,
        >
        I'm writing to check the status of this post. Please feel free to let me
        know if there's anything else I can help. Thanks.
        >
        >
        Regards,
        Walter Wang (wawang@online. microsoft.com, remove 'online.')
        Microsoft Online Community Support
        >
        =============== =============== =============== =====
        When responding to posts, please "Reply to Group" via your newsreader so
        that others may learn and benefit from your issue.
        =============== =============== =============== =====
        >
        This posting is provided "AS IS" with no warranties, and confers no
        rights.
        >

        Comment

        • Walter Wang [MSFT]

          #5
          Re: MSBuild

          Hi Scott,

          Thanks very much for your follow-up.

          By the way, I just noticed an old post of yours two months ago seems not
          captured by our internal tool and we have missed it:

          Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

          c.dotnet.framew ork.aspnet&tid= 8f814feb-b5d9-4d36-9e02-df4226cb67f9&m= 1&p=1

          We're sorry for this.

          If you still need to work on it, please feel free to let me know. I will
          try my best to help.


          Regards,
          Walter Wang (wawang@online. microsoft.com, remove 'online.')
          Microsoft Online Community Support

          =============== =============== =============== =====
          When responding to posts, please "Reply to Group" via your newsreader so
          that others may learn and benefit from your issue.
          =============== =============== =============== =====

          This posting is provided "AS IS" with no warranties, and confers no rights.

          Comment

          • Scott M.

            #6
            Re: MSBuild

            Thanks Walter. I am all set on that older issue you mentioned, but I do
            have 2 unanswered posts in the "microsoft.publ ic.dotnet.frame work.adonet"
            from 11/12 that I'd like to get closure on.

            -Scott


            ""Walter Wang [MSFT]"" <wawang@online. microsoft.comwr ote in message
            news:X4KpHszKIH A.1104@TK2MSFTN GHUB02.phx.gbl. ..
            Hi Scott,
            >
            Thanks very much for your follow-up.
            >
            By the way, I just noticed an old post of yours two months ago seems not
            captured by our internal tool and we have missed it:
            >
            Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

            c.dotnet.framew ork.aspnet&tid= 8f814feb-b5d9-4d36-9e02-df4226cb67f9&m= 1&p=1
            >
            We're sorry for this.
            >
            If you still need to work on it, please feel free to let me know. I will
            try my best to help.
            >
            >
            Regards,
            Walter Wang (wawang@online. microsoft.com, remove 'online.')
            Microsoft Online Community Support
            >
            =============== =============== =============== =====
            When responding to posts, please "Reply to Group" via your newsreader so
            that others may learn and benefit from your issue.
            =============== =============== =============== =====
            >
            This posting is provided "AS IS" with no warranties, and confers no
            rights.
            >

            Comment

            • Walter Wang [MSFT]

              #7
              Re: MSBuild

              Hi Scott,

              I've found those two posts you mentioned. I've informed my colleague to
              handle them shortly.

              By the way, those two posts were posted using "s-mar@nospam.nosp am" instead
              of your register nospam posting alias "smar@nospam.no spam", that's why they
              haven't been recogonized by our internal tool.

              Please feel free to email me directly if you think any of your managed
              posts are left unhandled.

              Thanks for using MSDN Managed Newsgroup Support Service!

              Regards,
              Walter Wang (wawang@online. microsoft.com, remove 'online.')
              Microsoft Online Community Support

              =============== =============== =============== =====
              When responding to posts, please "Reply to Group" via your newsreader so
              that others may learn and benefit from your issue.
              =============== =============== =============== =====

              This posting is provided "AS IS" with no warranties, and confers no rights.

              Comment

              • Scott M.

                #8
                Re: MSBuild

                Thanks Walter! Now it makes sense why posts I've made on my laptop get
                answered but posts from my desktop don't! I'll update my desktop's account
                settings.


                ""Walter Wang [MSFT]"" <wawang@online. microsoft.comwr ote in message
                news:Sp4bOpALIH A.1104@TK2MSFTN GHUB02.phx.gbl. ..
                Hi Scott,
                >
                I've found those two posts you mentioned. I've informed my colleague to
                handle them shortly.
                >
                By the way, those two posts were posted using "s-mar@nospam.nosp am"
                instead
                of your register nospam posting alias "smar@nospam.no spam", that's why
                they
                haven't been recogonized by our internal tool.
                >
                Please feel free to email me directly if you think any of your managed
                posts are left unhandled.
                >
                Thanks for using MSDN Managed Newsgroup Support Service!
                >
                Regards,
                Walter Wang (wawang@online. microsoft.com, remove 'online.')
                Microsoft Online Community Support
                >
                =============== =============== =============== =====
                When responding to posts, please "Reply to Group" via your newsreader so
                that others may learn and benefit from your issue.
                =============== =============== =============== =====
                >
                This posting is provided "AS IS" with no warranties, and confers no
                rights.
                >

                Comment

                Working...