Skip to content

MSBuildSDKsPath error in XI with latest 2019-02 Mono/msbuild package #14765

@akoeplinger

Description

@akoeplinger

Steps to Reproduce

  1. Install recent 2019-02 Mono .pkg
  2. Clone https://github.com/xamarin/xamarin-macios
  3. Checkout master branch at 17d73975c8aea925ba83b20f401e743330928c35
  4. Run ./configure --enable-xamarin and make world
  5. It fails with an msbuild error while compiling mlaunch.app

Current Behavior

GEN      mlaunch.app
MSBUILD: error MSB4136: Error reading the configuration information from "System.Configuration". Error deserializing configuration section msbuildToolsets: Multiple definitions for the MSBuildSDKsPath property.

Note: error message was translated from German so may not match 100%.

A workaround is to comment out the MSBuildSDKsPath property in /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/MSBuild.dll.config

This started happening with a recent 2019-02 build, it works fine with 6.0.0.176. I guess it's related to the msbuild environment variables that the xibuild tool sets.

Expected Behavior

No error.

On which platforms did you notice this

[ x ] macOS
[ ] Linux
[ ] Windows

Version Used: 6.0.0.275 (2019-02/8ff6a12f510)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions