Invalid characters in path exception when building with MSBuild
rekna1 opened this issue · 1 comments
rekna1 commented
I have a project that uses Fody.PropertyChanged. It builds fine in VS2015, but when I use MSBuild it fails:
Any idea what causes this ?
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj" /toolsVersion:14.0 /verbosity:quiet /p:WarningLevel=0 /p:Configuration=Release /p:SolutionDir="D:\projects\MyCompany.MessageHandler\"
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error : Fody: An unhandled exception occurred:\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : Exception:\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : Invalid characters in path.\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : StackTrace:\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : bij System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.
Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : bij System.IO.Path.Combine(String path1, String path2)\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHu
b.Installer.csproj]
MSBUILD : error : bij ConfigFileFinder.FindWeaverConfigs(String solutionDirectoryPath, String projectDirectory, ILogger logger) in c:\ConsoleBuildAgent\w
ork\ed448661dbb30d2e\Fody\ConfigFileFinder.cs:regel 17\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : bij Processor.Inner() in c:\ConsoleBuildAgent\work\ed448661dbb30d2e\Fody\Processor.cs:regel 66\r [D:\projects\MyCompany.MessageHandler\src\C
evi.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : bij Processor.Execute() in c:\ConsoleBuildAgent\work\ed448661dbb30d2e\Fody\Processor.cs:regel 46\r [D:\projects\MyCompany.MessageHandler\src
\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : Source:\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : mscorlib\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : TargetSite:\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
MSBUILD : error : Void CheckInvalidPathChars(System.String, Boolean)\r [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Insta
ller.csproj]
MSBUILD : error : [D:\projects\MyCompany.MessageHandler\src\MyCompany.Message.Hub.Installer\MyCompany.MessageHub.Installer.csproj]
*** Build failed ***
Sorry should have been posted to general Fody issues!!
GeertvanHorrik commented
Please try the latest Fody 2.0. If the issue still occurs, please report in the general Fody repository. Thanks!