You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dockerfile sets NUGET_XMLDOC_MODE=skip. I can see that this would help performance. However, I can find no general TeamCity documentation that advises making this change on build agents. Therefore it would seem likely that this is not set on most users' non-Docker-based agents. And so it seems odd that it would be set on the Docker image, which, arguably, should represent the typical agent configuration that a user would have created by hand following the best practices advocated by the relevant TeamCity documentation.
In our case, we have a custom code generation tool (consumed as a NuGet package) that, among other things, mirrors documentation from base classes into overridden methods in the generated classes - and the XML documentation files are needed for this. So this setting breaks our builds.
The text was updated successfully, but these errors were encountered:
If you need different setting you could easily create derived image from jetbrains/teamcity-agent or define required env.NUGET_XMLDOC_MODEenvironment parameter in your build configuration.
It's still not clear to me why having this setting in a general-purpose TC agent image is a good idea, notably when compared to the general TC documentation. For my own purposes, I've had to create my own Dockerfile "flattened" all the way down including the content microsoft/dotnet-framework:4.7.2-sdk Dockerfile because our builds need additional workloads from the buildtools installer, and despite my best efforts I could not successfully get the buildtools installer to add further components to the existing installation - so instead we add what we need from the very beginning. So I can of course use my desired setting. I'm raising the issue because it might be a subtle pitfall for other users.
The
Dockerfile
setsNUGET_XMLDOC_MODE=skip
. I can see that this would help performance. However, I can find no general TeamCity documentation that advises making this change on build agents. Therefore it would seem likely that this is not set on most users' non-Docker-based agents. And so it seems odd that it would be set on the Docker image, which, arguably, should represent the typical agent configuration that a user would have created by hand following the best practices advocated by the relevant TeamCity documentation.In our case, we have a custom code generation tool (consumed as a NuGet package) that, among other things, mirrors documentation from base classes into overridden methods in the generated classes - and the XML documentation files are needed for this. So this setting breaks our builds.
The text was updated successfully, but these errors were encountered: