本文介绍了这个字符串中的非法字符是什么?我正在获取MSBUILD:错误MSB3095的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我一直没有在TFS2010中创建一些构建定义.

I was creating some build definitions in TFS2010 without problem until now.

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;"

(Site target) -> MSBUILD : error MSB3095: Invalid argument. Illegal characters in path. [C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln]

(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?


编辑:删除了双斜杠,删除了多余的点,删除了减号,没有任何作用.


Removed the double slashes, removed the extra dot, removed the minus sign, nothing worked.

编辑:让我更具体一些.它构成了解决方案的一部分,但是一旦解决,就会给我这个错误并返回.

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.

编辑:更多详细信息.似乎失败的特定行:

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.

推荐答案

令人惊讶的是(或没有),问题似乎与非法字符或[C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln]字符串完全无关.

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.

解决方案中的一个项目具有无效的引用.另一个具有无效的dll.refresh路径.

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.


我仍然很好奇为什么会出现错误error MSB3095: Invalid argument. Illegal characters in path..


I'm still curious why I got the error error MSB3095: Invalid argument. Illegal characters in path., though.

这篇关于这个字符串中的非法字符是什么?我正在获取MSBUILD:错误MSB3095的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 13:23