MantisBT - opensim
View Issue Details
0008690opensim[MISC] Compiling / Buildingpublic2020-04-20 04:182020-04-20 06:23
fds24000 
fds24000 
highmajoralways
resolvedno change required 
LinuxDebianBullseye/Sid
 
 
latest
Standalone (1 Region)
ubODE
XEngine
Mono / Linux64
Other
0008690: Building from source throws error "Microsoft.CSharp.targets not found" for all build files
/usr/lib/mono/msbuild/Current/bin/Microsoft.CSharp.CurrentVersion.targets(333,5): error MSB4019: The imported project "/usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.CSharp.Core.targets" was not found. Confirm that the expression in the Import declaration "/usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.CSharp.Core.targets" is correct, and that the file exists on disk.
Pull code from git
Build solutions using Microsoft Mono/ msbuild
See attached .txt to view full console output
No tags attached.
txt build-log-errors.txt (143,376) 2020-04-20 04:22
http://opensimulator.org/mantis/file_download.php?file_id=4945&type=bug
Issue History
2020-04-20 04:18fds24000New Issue
2020-04-20 04:22fds24000File Added: build-log-errors.txt
2020-04-20 04:23fds24000Additional Information Updatedbug_revision_view_page.php?rev_id=8990#r8990
2020-04-20 04:23fds24000Mono Version2.10 => Other
2020-04-20 04:23fds24000Product Version0.9.1.0 =>
2020-04-20 04:24fds24000SummaryBuildin from source throws error "Microsoft.CSharp.targets not found" for all build files => Building from source throws error "Microsoft.CSharp.targets not found" for all build files
2020-04-20 05:16tampaNote Added: 0036392
2020-04-20 05:21fds24000Note Added: 0036394
2020-04-20 05:23fds24000Note Edited: 0036394bug_revision_view_page.php?bugnote_id=36394#r8992
2020-04-20 06:19fds24000Note Added: 0036400
2020-04-20 06:22fds24000Note Added: 0036401
2020-04-20 06:22fds24000Statusnew => resolved
2020-04-20 06:22fds24000Resolutionopen => fixed
2020-04-20 06:22fds24000Assigned To => fds24000
2020-04-20 06:23tampaNote Added: 0036402
2020-04-20 06:23tampaResolutionfixed => no change required

Notes
(0036392)
tampa   
2020-04-20 05:16   
Seems like it created the sln but not the csproj files, can you confirm they exist?

Which version of mono are you using?
(0036394)
fds24000   
2020-04-20 05:21   
(edited on: 2020-04-20 05:23)
Here's the apt policy output:

os@ossrv:~$ apt policy mono-devel
mono-devel:
  Installed: 6.8.0.105+dfsg-3
  Candidate: 6.8.0.105+dfsg-3
  Version table:
 *** 6.8.0.105+dfsg-3 500
        500 https://deb.debian.org/debian [^] testing/main amd64 Packages
        100 /var/lib/dpkg/status
     6.8.0.105-0xamarin3+debian10b1 500
        500 https://download.mono-project.com/repo/debian [^] stable-buster/main amd64 Packages
os@ossrv:~$ apt policy msbuild
msbuild:
  Installed: 1:16.5+xamarinxplat.2020.01.10.05.36-0xamarin1+debian10b1
  Candidate: 1:16.5+xamarinxplat.2020.01.10.05.36-0xamarin1+debian10b1
  Version table:
 *** 1:16.5+xamarinxplat.2020.01.10.05.36-0xamarin1+debian10b1 500
        500 https://download.mono-project.com/repo/debian [^] stable-buster/main amd64 Packages
        100 /var/lib/dpkg/status

I might have to add that I already removed all mono related packages and reinstalled them.

(0036400)
fds24000   
2020-04-20 06:19   
UPDATE:

Sorry guys, I'm a dunce. I noticed that msbuild had been installed from the Debian repos instead from download.mono-project.com (see last comment).

I simply forgot to pin the mono repo after redoing the server from scratch. Compiling/building works again, as expected.

Looks like the Debian repo msbuild has some incompatibilities when mixed with mono-devel from Mono.

My bad!
(0036401)
fds24000   
2020-04-20 06:22   
Mixing mono-devel from download.mono.org and deb.debian.org is a bad idea.
Apt pinning is your friend - do it! ;)
(0036402)
tampa   
2020-04-20 06:23   
Glad it is working again :)