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 1084917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:37:22+00:00 2026-05-16T22:37:22+00:00

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is

  • 0

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is automatically building our applications.

When we enable “Warning as error”: in Visual Studio, it build fine (it ignores the methods within “*.designer.cs” files. But on the build server we always receive the following error:

[(Rebuild target(s)):] somefile.Designer.cs(XX, XX): error CS1591: Warning as Error: Missing XML comment for publicly visible type or member...

The MSBuild script that is being used looks like this:

<MSBuild Projects="proj\$(ProjectName).sln"
         Targets="Clean;Rebuild"
         Properties="Configuration=Release"
         StopOnFirstFailure="True">
</MSBuild>

I can understand why it does that, but there must be a way to tell msbuild to ignore missing comments in generated files?

EDITED

Digging a little further:
In the Visual Studio Solution we had “Warning as error” checked but we also add error 1591 listed in the “Suppress warning” textbox. MSBuild does’nt seem to pick up that “suppress warning” textbox and fails the build. Anything I can do?

EDITED Again
The problem was that MSBuild was targetting any CPU (and in the “ANY CPU” configuration we didnt suppressed error 1591). Once we changed ANY CPU to exclude error 1591 it all started to build correctly on the build server. Thanks for those that helped.

  • 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-16T22:37:23+00:00Added an answer on May 16, 2026 at 10:37 pm

    No, MSBuild isn’t picky about XML comments. Whatever code analysis tool you use is. Guessing at something like StyleCop. It does complain about this exact problem, it’s not very smart, about on par with the Windows Forms project templates.

    You are only ever going to solve this problem if you enforce the same kind of build rules on the devs as you apply to the build server. Because it will take one of them to edit the do-not-edit code that it is in a Mumble.Designer.cs file and apply the [GeneratedCode] attribute. It is not there now.

    That’s a political problem, one I cannot really help you with. Nor the Microsoft groups that worked on this at different times and different buildings. But you can count on the devs barking loudly if you ask them to solve the problem.

    Make it consistent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Continuous Integration server with dozens of ASP.NET applications hosted on IIS.
In our development environment, we run a Continuous Integration service (TeamCity) which responds to
In our production environment of 12 servers we have an issue with the code
I have selenium 2 web driver scripts up and running and I now want
I'm trying to set up continuous builds/integration for a stable of iPhone apps. I
I've created a hudson job for our maven multi-project with 5 modules to deploy
I've recently taken an existing ASP.NET 3.5 web forms application that was upgraded to
Our company is migrating from VSS to SVN as part of an upgrade from
for a team of 12 developers, can you help me determine a process and
Obviously, the answer to the question depends on a number of environmental factors. In

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.