microsoft / microsoft/MIEngine

Unable to build the solution due to "spaces" in profile folder path

Open
#164 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
859
Forks
233
Avg merge
1d 6h
Merged PRs (30d)
3

Description

As described at https://github.com/Microsoft/MIEngine#get-started, the build of the "prebuild" project is failing, and looks like NuGet is failing to use temp folder path with SPACE characters in it. (It builds fine when profile without SPACE characters in the path is used)

...
1>------ Build started: Project: prebuild, Configuration: Debug Any CPU ------
1>  All packages listed in packages.config are already installed.
1>MSBUILD : error MSB1008: Only one project can be specified.
1>  Switch: Delendik\AppData\Local\Temp\tmp2641.tmp
1>  
1>  For switch syntax, type "MSBuild /help"
1>MSBUILD : error MSB1008: Only one project can be specified.
1>  Switch: Delendik\AppData\Local\Temp\tmp2682.tmp
1>  
1>  For switch syntax, type "MSBuild /help"
1>MSBUILD : error MSB1008: Only one project can be specified.
1>  Switch: Delendik\AppData\Local\Temp\tmp26C2.tmp
1>  
1>  For switch syntax, type "MSBuild /help"
1>  
1>C:\Work\MIEngine\src\prebuild\prebuild.csproj(31,5): error MSB3073: The command ""C:\Work\MIEngine\tools\NuGet\NuGet.exe" restore -PackagesDirectory "C:\Work\MIEngine\src\packages" -MSBuildVersion 14 "C:\Work\MIEngine\src\MIDebugEngine.sln"" exited with code 1.
...
4>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Internal.VisualStudio.Shell.Interop.14.0.DesignTime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
...
6>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "libadb.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
...
9>CSC : error CS0006: Metadata file 'C:\Work\MIEngine\bin\Debug\Microsoft.AndroidDebugLauncher.dll' could not be found

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/prebuild/prebuild.csproj at line 31 and inspect the NuGet restore command shown in the build output. Reproduce the prebuild failure using a Windows profile path containing spaces, then compare it with a path without spaces. Done means the solution builds successfully when the profile folder path contains spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.