Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Init-tools.sh fails on case-insensitive volume #1308

Closed
weshaggard opened this issue Jan 26, 2017 · 3 comments
Closed

Init-tools.sh fails on case-insensitive volume #1308

weshaggard opened this issue Jan 26, 2017 · 3 comments

Comments

@weshaggard
Copy link
Member

When using docker for windows and mounting a windows volume to share he source between a linux docker container and my windows machine I get the following error when running init-tools.

Installing dotnet cli...
Initializing BuildTools...
mv: '/d/git/corefx/Tools/Microsoft.CSharp.targets' and '/d/git/corefx/Tools/Microsoft.CSharp.Targets' are the same file
ERROR: An error occured when trying to initialize the tools. Please check '/d/git/corefx/init-tools.log' for more details.

cc @chcosta @joperezr

@joperezr it looks like you added this https://github.com/dotnet/buildtools/blob/master/src/Microsoft.DotNet.Build.Tasks/PackageFiles/init-tools.sh#L105 but we never got this hack cleaned up. Do you know if it is still necessary?

@joperezr
Copy link
Member

Seems like so, we get that targets file from the Microsoft.Build.Targets package, and it seems that in the one we are using they still have a lower case t on Microsoft.CSharp.targets. The package we are using though is very old, so it might be that they have fixed this some time ago but we just haven't upraded the version of the package.

@weshaggard
Copy link
Member Author

At least on my ubuntu docker image running on windows commenting out the mv command allows the build to continue and succeed. However that is likely an artifact of the windows volume that I've mounted.

@joperezr
Copy link
Member

yeah that might be it. The problem is that the Portable targets (Microsoft.Portable.CSharp.targets) have the following line:

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.Targets" />

given they use a capital T, then full linux systems wouldn't find the targets file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants