该字符串中的非法字符是什么?我收到 MSBUILD:错误 MSB3095
到目前为止,我一直在 TFS2010 中创建一些构建定义,没有出现任何问题。
MSBUILD 命令:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /noconsolelogger "C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0 .sln"/m:1/fl /flp:"logfile=C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.log;编码=Unicode;verbosity=详细" /p:SkipInvalidConfigurations=true /p:OutDir=" C:\Builds\Neptune\Binaries\\" /p:Configuration="站点" /p:Platform="混合平台" /p:RunCodeAnalysis="False" /p:VCBuildOverride="C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.sln.Mixed Platforms.Site.vsprops" /dl:WorkflowCentralLogger, “C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Detailed;BuildUri=vstfs:///Build/Build/1222;InformationNodeId=2168680;目标sNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://ldu01:8080/tfs/Nova.com;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Detailed;"
我收到此错误:
(站点目标) -> MSBUILD:错误 MSB3095:参数无效。路径中存在非法字符。 [C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln]
但我在路径中没有看到任何非法内容,它只是一个简单的路径并且可以工作。到底是怎么回事?
编辑:删除了双斜杠,删除了多余的点,删除了减号,没有任何效果。
编辑:让我更具体一些。它构建了解决方案的一部分,但是一旦到达某个点,它就会给我这个错误并返回。
编辑:还有更多细节。它似乎失败的具体行:
Using "CombinePath" task from assembly "Microsoft.Build.Tasks.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "CombinePath"
MSBUILD : error MSB3095: Invalid argument. Illegal characters in path. [C:\Builds\Pluto\Sources\Branches\v5.0-Ehub\EHub-5.0.sln]
Done executing task "CombinePath" -- FAILED.
Done building target "Site" in project "EHub-5.0.sln" -- FAILED.
Done executing task "CallTarget" -- FAILED.
Done building target "Build" in project "EHub-5.0.sln" -- FAILED.
Done Building Project "C:\Builds\Pluto\Sources\Branches\v5.0-Ehub\EHub-5.0.sln" (default targets) -- FAILED.
I was creating some build definitions in TFS2010 without problem until now.
MSBUILD Command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /noconsolelogger "C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.sln" /m:1 /fl /flp:"logfile=C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.log;encoding=Unicode;verbosity=detailed" /p:SkipInvalidConfigurations=true /p:OutDir="C:\Builds\Neptune\Binaries\\" /p:Configuration="Site" /p:Platform="Mixed Platforms" /p:RunCodeAnalysis="False" /p:VCBuildOverride="C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.sln.Mixed Platforms.Site.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Detailed;BuildUri=vstfs:///Build/Build/1222;InformationNodeId=2168680;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://ldu01:8080/tfs/Nova.com;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Detailed;"
I'm getting this error:
(Site target) ->
MSBUILD : error MSB3095: Invalid argument. Illegal characters in path. [C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln]
Yet I don't see anything illegal in the path, it's just a plain path and it works. What is going on?
EDIT: Removed the double slashes, removed the extra dot, removed the minus sign, nothing worked.
EDIT: Let me be more specific. It builds part of the solution, but as soon as it gets to a point, it gives me this error and returns.
EDIT: Yet more details. the specific lines where it seems to fail:
Using "CombinePath" task from assembly "Microsoft.Build.Tasks.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "CombinePath"
MSBUILD : error MSB3095: Invalid argument. Illegal characters in path. [C:\Builds\Pluto\Sources\Branches\v5.0-Ehub\EHub-5.0.sln]
Done executing task "CombinePath" -- FAILED.
Done building target "Site" in project "EHub-5.0.sln" -- FAILED.
Done executing task "CallTarget" -- FAILED.
Done building target "Build" in project "EHub-5.0.sln" -- FAILED.
Done Building Project "C:\Builds\Pluto\Sources\Branches\v5.0-Ehub\EHub-5.0.sln" (default targets) -- FAILED.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
发布评论
评论(5)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
令人惊讶的是(或不是),问题似乎与非法字符完全无关,也与
[C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln] 无关。
字符串。解决方案中的项目之一具有无效引用。另一个有一个无效的 dll.refresh 路径。
这两件事之一导致了问题,但我没有时间,所以我不会测试是哪一件事造成的。
我修复了参考文献,问题就消失了。
我仍然好奇为什么我收到错误
error MSB3095: Invalid argument。不过,路径中存在非法字符。
。Surprisingly (or not), it seems the problem had absolutely nothing to do with an Illegal Character, nor with the
[C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln]
string.One of the projects in the solution had an invalid reference. Other one had an invalid dll.refresh path.
One of these two things caused the problem, but I'm out of time so I won't test which one did.
I fixed the references and the problem went away.
I'm still curious why I got the error
error MSB3095: Invalid argument. Illegal characters in path.
, though.