Opened 12 months ago

Last modified 4 months ago

#59534 reopened defect

msbuild: error MSB4019: The imported project ... was not found

Reported by: ryandesign (Ryan Schmidt) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: msbuild

Description

msbuild doesn't build:

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-560b1ca/mono/build/update_bundled_bits.proj(2,5): error MSB4019: The imported project "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-560b1ca/mono/build/DotnetBitsVersions.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Build FAILED.

The filename on disk actually has a capital "N": DotNetBitsVersions.props

The buildbot workers' filesystems are case-sensitive.

Change History (6)

comment:1 Changed 10 months ago by ryandesign (Ryan Schmidt)

It was fixed in https://github.com/mono/msbuild/commit/d482afec88b303303905958653fa906e65b2a1c2. Could you update the port to a newer version?

comment:2 Changed 10 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 3e4ea5dbd4e25733b97be39c8f40eb9ed4ec4448/macports-ports (master):

msbuild: fix build on case-sensitive file systems

Fixes #59534

comment:3 Changed 10 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Dang, a different problem with case-sensitivity seems to still exist.

MONO/net472/Microsoft.Build.Framework.dll
##vso[task.logissue type=error;sourcepath=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19517.3/tools/RepositoryValidation.proj;linenumber=29;columnnumber=5;code=;]No license file found in '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/'.
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19517.3/tools/RepositoryValidation.proj(29,5): error : No license file found in '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/'.
  Xunit.NetCore.Extensions -> /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/artifacts/bin/Xunit.NetCore.Extensions/Release-MONO/net472/Xunit.NetCore.Extensions.dll

As far as I can tell, msbuild is looking for License.txt, but only LICENSE.txt exists.
I do not know how to fix this.
msbuild is quite adamant that it be allowed to download anything it thinks it needs during the build phase.
Some time ago, I tried to download dependencies manually with no luck.

comment:4 Changed 10 months ago by ryandesign (Ryan Schmidt)

I think the license issue was fixed in https://github.com/dotnet/arcade/commit/6899e98770d05659585c6e25bef305a381bcc576

So I guess we'll just have to wait for a new release.

comment:5 Changed 5 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

In 3e4ea5dbd4e25733b97be39c8f40eb9ed4ec4448/macports-ports (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):

msbuild: fix build on case-sensitive file systems

Fixes #59534

comment:6 in reply to:  3 Changed 4 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: closedreopened

Replying to MarcusCalhoun-Lopez:

No license file found in '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_msbuild/msbuild/work/mono-msbuild-619cbd0/'.

This problem appears to have resurfaced.

Note: See TracTickets for help on using tickets.