I have deleted some old old publish profiles (including the one named 'Package') via the publish GUI in VS2012. When I check the code in and run a build via TeamCity I get the following error.
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.
For some reason I cannot seem to get ride of the reference to this old web deploy publish profile ('Package.pubxml'). I cannot see anything obvious in the .proj files.
The build is vanilla VS build in TeamCity
Runner: Visual Studio Step name: build
Solution File: trunk/SomeService.sln
Visual Studio: VS 2012
Targets: Rebuild
Configuration: Release
Command line params: 'emtpy'
Any suggestions on how I can clear down this old publish profile? Or why it is even called in the first place when I am just doing a simple build? Everything works fine when I call MSBuild locally via command prompt.
Any help greatly appreciated
Try changing your runner type to MSBuild. Your "Build File Path" will be your solution path and set all other fields appropriately.