MichalStrehovsky/PublishAotCompressed

Support whitespace in nuget package path

Golle opened this issue · 1 comments

Golle commented

MSBuild will fail when the nuget packages are cached in a path that contains whitespaces. This can be fixed by adding " to the exec statement.

Replace this line

<Exec Command="$(MSBuildThisFileDirectory)../tools/$(_OSIdentifier)-$(_OSHostArch)/upx $(_UpxArgs) $(NativeBinary)" />

with

<Exec Command="&quot;$(MSBuildThisFileDirectory)../tools/$(_OSIdentifier)-$(_OSHostArch)/upx&quot; $(_UpxArgs) $(NativeBinary)" />

Thanks! Kicked off a new build and uploaded to nuget. 0.0.4 will have the fix.