What is the illegal character on this line? I get MSBUILD: error MSB3095

I have created some build definitions in TFS2010 without any problems so far.

MSBUILD Team:


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 get 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]

But I donโ€™t see anything illegal on the way, itโ€™s just a simple way, and it works. What's happening?


EDIT: Double slashes removed, extra dots removed, minus signs removed, nothing works.

EDIT: Let me clarify. He creates part of the solution, but as soon as he reaches the point, he gives me this error and returns.

EDIT: In more detail. 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. 
+4
source share
5 answers

Surprisingly (or not), it seems that the problem had absolutely nothing to do with the illegal character or the line [C:\Builds\Neptune\Sources\Branches\v5.0-EHub\EHub-5.0.sln] .

One of the projects in the solution had an invalid link . Another had an invalid dll.refresh path .

One of these two causes caused the problem, but I donโ€™t have the time, so I wonโ€™t check that it did.

I fixed the links and the problem went away.


I'm still wondering why I got error error MSB3095: Invalid argument. Illegal characters in path. error MSB3095: Invalid argument. Illegal characters in path. .

+3
source

What about minus characters ('-')? I'm not sure if the minus symbol is here.

0
source

I ran into this error and found that some of the .refresh files were saved as ANSI file types. I downloaded them into notepad and saved them back as Unicode files, and this fixed my problem.

0
source

I had the same problem when migrating from VSS to TFS. I think the error was caused by asmx web services.

Resolution:

  • Go to the "File", "Source Control", "Change Control Source"
  • Select a project that generates an error
  • Click unbind
  • Re-select the project
  • Click bind

It should work. If this is not the case, delete the web links before the first step (Change the source control) and after the fifth step (click bind) right-click on prject, then cancel the check.

0
source

I came across this once. I ran msbuild from the command line, and I needed to run it from the command line with elevated permissions (i.e. as an administrator).

Absolutely erroneous error message!

0
source

Source: https://habr.com/ru/post/911855/


All Articles