Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 VS2012发布配置文件打破TeamCity_Visual Studio 2012_Msbuild_Web Deployment_Teamcity 8.0_Publish Profiles - Fatal编程技术网

Visual studio 2012 VS2012发布配置文件打破TeamCity

Visual studio 2012 VS2012发布配置文件打破TeamCity,visual-studio-2012,msbuild,web-deployment,teamcity-8.0,publish-profiles,Visual Studio 2012,Msbuild,Web Deployment,Teamcity 8.0,Publish Profiles,我已经通过VS2012中的发布GUI删除了一些旧的发布配置文件,包括一个名为“Package”的文件。当我签入代码并通过TeamCity运行构建时,我得到以下错误 Rebuild MSBuild trunk\SomeService\SomeService.csproj ValidatePublishProfileSettings GetPublishingLocalizedString C:\Program Files (x86)\MSBuild\Microsoft\Visual

我已经通过VS2012中的发布GUI删除了一些旧的发布配置文件,包括一个名为“Package”的文件。当我签入代码并通过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. 
出于某种原因,我似乎无法理解对这个旧的web部署发布配置文件“Package.pubxml”的引用。我在.proj文件中看不到任何明显的内容

该版本是香草VS TeamCity版本

Runner: Visual Studio Step name: build
Solution File: trunk/SomeService.sln
Visual Studio: VS 2012
Targets: Rebuild
Configuration: Release
Command line params: 'emtpy'
关于如何清除这个旧的发布配置文件,有什么建议吗?或者当我只是在做一个简单的构建时,为什么它会被首先调用?通过命令提示符在本地调用MSBuild时,一切正常


非常感谢您的帮助

尝试将您的跑步者类型更改为MSBuild。您的构建文件路径将是您的解决方案路径,并相应地设置所有其他字段。

原来我以前设置了一些系统参数,其中使用旧的发布配置文件强制发布

system.DeployOnBuild    true
system.PublishProfile   package

谢谢你的帮助。你关于创建一个新项目的建议是正确的。似乎参数是在根级别设置的,因此仍在提取位置。

仍停留在这一点上。如有任何建议,我们将不胜感激。VS不希望丢失此旧发布配置文件。尝试了一些方法,解决方案清理,在项目文件中查找引用,删除所有发布配置文件并重新开始..谢谢Adarsh。一些好的建议。我有另一个构建在这个设置上运行。无法回忆我是否将此生成更改为匹配。我星期一去看看。希望我忘记将构建运行程序更改为MSBuild。没有乐趣。使用MSBuild运行程序时出现相同错误。我相信这就是VS runner在引擎盖下的用途。奇怪的是,我已经将所有文件移动到一个新的解决方案中,其中包含新的项目文件和干净的发布配置文件,但仍然会出现错误。为什么它不会忘记这个旧的发布配置文件?非常奇怪。尝试在teamcity中创建一个新项目,然后在那里创建一个构建配置。它将分配一个新的GUID,并在生成框上有一个新的路径。感谢Adarsh的建议。在TC尝试了一个新项目,但仍然没有乐趣。我甚至将这些文件复制到一个新的VS解决方案中,而构建仍然使用这个旧的配置文件。如果在TC端缓存了某些内容,那么这是有意义的。