TFS BUILD 2010:XAML:如何在双引号中使用双引号
假设我想从===>{0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj获得另一个双引号,您应该能够使用TFS BUILD 2010:XAML:如何在双引号中使用双引号,xaml,workflow-foundation,tfsbuild,Xaml,Workflow Foundation,Tfsbuild,假设我想从===>{0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj获得另一个双引号,您应该能够使用 [String.Format("/build Debug "{0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj"&
[String.Format("/build Debug "{0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj"", BuildDirectory)]
编辑
从您的输出判断,您设置了一个:
"""{0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj"""
这是合理的失败。不过,这应该是可行的:
String.Format("/build Debug """{0}\Sources\Company.GOF.Win\Company.GOF.Win.Interface\Company.GOF.Win.Interface.csproj"""", BuildDirectory)
(唯一的区别是“{0}\Sources\
而不是”{0}\Sources
)
String.Format("/build Debug ""{0}\Sources\Company.GOF.Win\Company.GOF.Win.Interface\Company.GOF.Win.Interface.csproj"""", BuildDirectory)