Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/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
C# TFS网站构建参数_C#_Visual Studio 2012_Tfs_Msbuild - Fatal编程技术网

C# TFS网站构建参数

C# TFS网站构建参数,c#,visual-studio-2012,tfs,msbuild,C#,Visual Studio 2012,Tfs,Msbuild,TFS网站队列生成弹出窗口上MSBuild参数的正确格式是什么?我找不到任何文档,无论我传入什么,我总是会遇到这个错误 Exception Message: The build controller cannot deserialize the process parameters of the build. Make sure the process parameters are compatible with the assemblies on the build machine. Deta

TFS网站队列生成弹出窗口上MSBuild参数的正确格式是什么?我找不到任何文档,无论我传入什么,我总是会遇到这个错误

Exception Message: The build controller cannot deserialize the process parameters of the build. Make sure the process parameters are compatible with the assemblies on the build machine. Details: Data at the root level is invalid. Line 1, position 1. (type Exception)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.AddParameterValues(IDictionary`2 parameters, String processParameters)
       at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
       at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)

    Inner Exception Details:

    Exception Message: Data at the root level is invalid. Line 1, position 1. (type XmlException)
    Exception Stack Trace:    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xaml.XmlCompatibilityReader.Read()
       at MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead()
       at MS.Internal.Xaml.Parser.XamlScanner.Read()
       at MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext()
       at MS.Internal.Xaml.NodeStreamSorter.StartNewNodeStreamWithSettingsPreamble()
       at MS.Internal.Xaml.NodeStreamSorter..ctor(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary`2 xmlnsDictionary)
       at System.Xaml.XamlXmlReader.Initialize(XmlReader givenXmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings)
       at System.Xaml.XamlServices.Load(XmlReader xmlReader)
       at Microsoft.TeamFoundation.Build.Workflow.WorkflowHelpers.DeserializeProcessParameters(String parameterValues)
       at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.AddParameterValues(IDictionary`2 parameters, String processParameters)
我正在使用以下模板
你是怎么解决这个问题的?有没有一种方法可以在构建过程中逐步完成它?

看起来这是TFS2012的web UI中的一个bug。我也遇到了同样的问题,必须在VisualStudio中完成

此处有一个参考链接:


一个不太有用的建议是升级到TFS2013,我无法确认它是否有效。

当您不传递任何参数时,构建是否正常?从错误来看,这似乎是一个构建模板问题。您使用的是哪个构建模板?是的,如果我不传入任何参数,它可以正常工作。我正在使用定制的构建模板。我甚至不知道从哪里开始对构建模板进行故障排除。是否有一个普通的模板,我可以尝试看看问题是否仍然存在?是的,请使用DefaultTemplate或在此处共享构建模板,以便我们可以提供帮助。谢谢。我已经添加了我当前的模板。你能看一下吗?我用默认模板运行了它,同样的事情也发生了。完全相同的错误。