nostrand icon indicating copy to clipboard operation
nostrand copied to clipboard

Build fails on Linux with non-bash default shell

Open whilo opened this issue 7 years ago • 2 comments

I have tried to build nostrand on Ubuntu 17.04. I have replaced all references to sh in the csproj with bash, but it still fails to build with:

christian@lacan:~/Development/nostrand$ xbuild
XBuild Engine Version 14.0
Mono, Version 4.6.2.0
Copyright (C) 2005-2013 Various Mono authors

Build started 02.07.2017 09:35:37.
__________________________________________________
Project "/home/christian/Development/nostrand/Nostrand.sln" (default target(s)):
	Target ValidateSolutionConfiguration:
		Building solution configuration "Release|x64".
	Target Build:
		Project "/home/christian/Development/nostrand/Nostrand.csproj" (default target(s)):
			Target PrepareForBuild:
				Configuration: Release Platform: x64
			Target PreBuildEvent:
				Executing: 
				      /bin/bash ../../Scripts/pre-build.sh
				    
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			Target _GenerateTargetFrameworkMonikerAttribute:
			Skipping target "_GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
		Done building project "/home/christian/Development/nostrand/Nostrand.csproj".-- FAILED
	Task "MSBuild" execution -- FAILED
	Done building target "Build" in project "/home/christian/Development/nostrand/Nostrand.sln".-- FAILED
Done building project "/home/christian/Development/nostrand/Nostrand.sln".-- FAILED

Build FAILED.
	 0 Warning(s)
	 0 Error(s)

Time Elapsed 00:00:00.2741790

I am not sure how to fix the failure. Any hints?

whilo avatar Jul 02 '17 09:07 whilo

What shell are you using?

nasser avatar Jul 23 '17 03:07 nasser

christian@lacan ~> ls -lah /bin/sh 
lrwxrwxrwx 1 root root 4 Okt 17  2016 /bin/sh -> dash*

whilo avatar Jul 23 '17 08:07 whilo