I reinstalled Windows and left user profile folder name as Windows 8.1 it created.
As Windows 8.0/8.1 gets user name from Microsoft Account first name profile field my current user profile folder is "C:\Users\Андрій"
Then as usual I moved my projects to %UserProfile%\Dev\Sources
And now when I try to build any solution that contains NuGet.targets I receive error
1>------ Build started: Project: Microsoft.WindowsAzure.Mobile, Configuration: Debug Any CPU ------
1>C:\Users\Андрій\Dev\Sources\azure-mobile-services\sdk\Managed\.nuget\nuget.targets(90,9): error : Не вдалося знайти вказаний шлях.
1>C:\Users\Андрій\Dev\Sources\azure-mobile-services\sdk\Managed\.nuget\nuget.targets(90,9): error MSB3073: The command ""C:\Users\Андрій\Dev\Sources\azure-mobile-services\sdk\Managed\.nuget\nuget.exe" install "C:\Users\Андрій\Dev\Sources\azure-mobile-services\sdk\Managed\src\Microsoft.WindowsAzure.MobileServices\packages.config" -source "" -RequireConsent -o "C:\Users\Андрій\Dev\Sources\azure-mobile-services\sdk\Managed\packages"" exited with code 3.
I tried to execute this command in command line
C:\Users\Андр?й>"C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\Managed\.
nuget\nuget.exe" install "C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\
Managed\src\Microsoft.WindowsAzure.MobileServices\packages.config" -source "" -
RequireConsent -o "C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\Managed
\packages"
Restoring NuGet packages...
To prevent NuGet from downloading packages during build, open the Visual Studio
Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to do
wnload missing packages'.
All packages listed in packages.config are already installed.
And it works
So I tried to execute MSBuild to see what is the exact error
C:\Program Files (x86)\Microsoft Visual Studio 11.0>msbuild "C:\Users\Андр?й\Dev
\Sources\azure-mobile-services\sdk\Managed\src\Microsoft.WindowsAzure.MobileServ
ices\Microsoft.WindowsAzure.Mobile.csproj" /verbosity:diag /property:GLOBAL_USE_
UNICODE=TRUE
And I got this (fragment of output)
Task "Exec" (TaskId:6)
Task Parameter:Command="..\..\.nuget\nuget.exe" install "C:\Users\Андр?й\Dev\
Sources\azure-mobile-services\sdk\Managed\src\Microsoft.WindowsAzure.MobileSe
rvices\packages.config" -source "" -RequireConsent -o "..\..\packages" (Task
Id:6)
Task Parameter:LogStandardErrorAsError=True (TaskId:6)"..\..\.nuget\nuget.exe" install "C:\Users\Андр?й\Dev\Sources\azure-mobile-se
rvices\sdk\Managed\src\Microsoft.WindowsAzure.MobileServices\packages.config"
-source "" -RequireConsent -o "..\..\packages" (TaskId:6)
C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\Managed\.nuget\nuget.targ
ets(90,9): error : Illegal characters in path. [C:\Users\Андр?й\Dev\Sources\azu
re-mobile-services\sdk\Managed\src\Microsoft.WindowsAzure.MobileServices\Micros
oft.WindowsAzure.Mobile.csproj]
C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\Managed\.nuget\nuget.targ
ets(90,9): error MSB3073: The command ""..\..\.nuget\nuget.exe" install "C:\Use
rs\Андр?й\Dev\Sources\azure-mobile-services\sdk\Managed\src\Microsoft.WindowsAz
ure.MobileServices\packages.config" -source "" -RequireConsent -o "..\..\packa
ges"" exited with code 1. [C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sd
k\Managed\src\Microsoft.WindowsAzure.MobileServices\Microsoft.WindowsAzure.Mobi
le.csproj]
Done executing task "Exec" -- FAILED. (TaskId:6)
Done building target "RestorePackages" in project "Microsoft.WindowsAzure.Mobil
e.csproj" -- FAILED.: (TargetId:6)
Done Building Project "C:\Users\Андр?й\Dev\Sources\azure-mobile-services\sdk\Ma
naged\src\Microsoft.WindowsAzure.MobileServices\Microsoft.WindowsAzure.Mobile.c
sproj" (default targets) -- FAILED.
Can somebody tell me why does it happen and how to fix this?
Moving solution to another path or renaming user profile folder is not an option! I want real fix!