Skip to content

Build fails with 'error MSB3073' when run from folder containing a space #30403

@PRIMETSS

Description

@PRIMETSS

Reproduce:
Clone corefx repo into a folder, eg d:\DATA\MY GitHub\corefx

Build FAILED Error MSB3073: when it attempts to build src\System.Runtime.CompilerServices.Unsafe\src\System.Runtime.CompilerServices.Unsafe.ilproj

C:\Users\PaulFarrand\.nuget\packages\microsoft.net.sdk.il\5.0.0-alpha1.19373.2\targets\Microsoft.NET.Sdk.IL.targets(101,5): error MSB3073: The command "D:\DATA\My GitHub\corefx\artifacts\toolset\ilasm\ildasm "D:\DATA\My GitHub\corefx\artifacts\bin\ref\netcoreapp\System.Runtime.CompilerServices.Unsafe.dll" /OUT="D:\DATA\My GitHub\corefx\artifacts\obj\System.Runtime.CompilerServices.Unsafe\netcoreapp-Debug\/System.Runtime.CompilerServices.Unsafe.ref.il"" exited with code 9009. [D:\DATA\My GitHub\corefx\src\System.Runtime.CompilerServices.Unsafe\src\System.Runtime.CompilerServices.Unsafe.ilproj]

WorkAround
Rename folder to D:\DATA\MyGitHub
Builds sucessfully

Ive spent about 2 days trying to locate the what I believe is a miss formatted \OUT="...." path
That contains a forward 'slash' at Debug\/System.Runtime

/OUT="D:\DATA\My GitHub\corefx\artifacts\obj\System.Runtime.CompilerServices.Unsafe\netcoreapp-Debug\/System.Runtime.CompilerServices.Unsafe.ref.il"

Ive not been able to find it in the build scripts, anyone with better knowledge able to give clues?
Just found this that seems similair in coreclr
dotnet/coreclr#21819

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions