Opened 5 years ago
Last modified 3 years ago
#59534 reopened defect
msbuild: error MSB4019: The imported project ... was not found
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: | msbuild |
Description
/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 (9)
comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 follow-up: 6 Changed 5 years 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 5 years ago by ryandesign (Ryan Carsten 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 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
In 3e4ea5dbd4e25733b97be39c8f40eb9ed4ec4448/macports-ports (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):
comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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/'.
comment:7 Changed 4 years ago by landonf (Landon Fuller)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:8 Changed 3 years ago by jrnphd
I just ran "sudo port install msbuild" ... and it failed with the error described in this original bug report.
msbuild/work/mono-msbuild-70bf671/mono/build/update_bundled_bits.proj is trying to import DotnetBitsVersions.props ... but the file is named DotNetBitsVersions.props (note the CAPITAL N)
comment:9 Changed 3 years ago by jrnphd
Resolution: | fixed |
---|---|
Status: | closed → reopened |
It was fixed in https://github.com/mono/msbuild/commit/d482afec88b303303905958653fa906e65b2a1c2. Could you update the port to a newer version?