问题
I try to setup teamcity nuget feed. But when i try download package form nuget server i get next error in VS output window:
when i try get definition of nuget feed i see next:
in Administration / Global settings / Server URL i have valid dmin name of my server. How can i change xml:base attribute in feed definition?
回答1:
I don't think there is an issue with TeamCity. From what I can see you are hosting TeamCity locally on your development machine and you are successfully downloading your own packages (1st picture). The error that you are seeing in chrome is absolutely fine.
However the issue that it appears you are having is that you have not configured either VisualStudio or your solution in VisualStudio to download from more than one place. The package that is failing is NancyFx which presumably you are not hosting from TeamCity so therefore you need to go and get it from the public NuGet Server. In order to achieve this you either have to configure VisualStudio or your solution file to search multiple package sources.
https://docs.nuget.org/ndocs/tools/package-manager-ui#package-sources
回答2:
From TeamCity support "Change base URL in FeedService":
It looks like you have a reverse proxy and it is not properly configured. Please refer to TeamCity HowTo documentation about this: https://confluence.jetbrains.com/pages/viewpage.action?pageId=74845225#HowTo...-SetUpTeamCitybehindaProxyServer
It seems HTTP proxy does not pass Host header correctly. When browser makes a request it sets Host to hostname from browser address bar. If proxy changes Host to something else, or removes it, then feed will have URLs pointing to localhost, because TeamCity server does not know that there is an HTTP proxy somewhere.
Please check that HTTP proxy preserves original Host header.
来源:https://stackoverflow.com/questions/40658889/invalid-xmlbase-in-teamcity-nuget-feed