我已经通过 VS2012 中的发布 GUI 删除了一些旧的旧发布配置文件(包括名为“包”的配置文件)。当我签入代码并通过 TeamCity 运行构建时,我收到以下错误。
Rebuild MSBuild
trunk\SomeService\SomeService.csproj
ValidatePublishProfileSettings
GetPublishingLocalizedString
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253, 5): The value for PublishProfile is set to 'Package', expected to find the file at 'E:\BuildAgent2\work\6ec5bd58ee82179a\trunk\SomeService\Properties\PublishProfiles\Package.pubxml' but it could not be found.
GetPublishingLocalizedString
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4260, 4): PublishProfile(Package) is set. But the $(WebPublishMethod) does not have a valid value. Current Value is "".
Error
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4267, 5): Target ValidatePublishProfileSettings Failed
Project trunk\SomeService\SomeServiceService.csproj failed.
trunk\SomeService\SomeServiceTests.csproj
Project trunk\SomeServiceTests\SomeServiceTests.csproj failed.
Project trunk\SomeService.sln failed.
出于某种原因,我似乎无法理解对这个旧的网络部署发布配置文件('Package.pubxml')的引用。我在 .proj 文件中看不到任何明显的东西。
构建是 TeamCity 中的香草 VS 构建
Runner: Visual Studio Step name: build
Solution File: trunk/SomeService.sln
Visual Studio: VS 2012
Targets: Rebuild
Configuration: Release
Command line params: 'emtpy'
关于如何清除这个旧的发布配置文件的任何建议?或者为什么当我只是做一个简单的构建时,它甚至被首先调用?当我通过命令提示符在本地调用 MSBuild 时,一切正常。
非常感谢任何帮助