Closed bruno-garcia closed 6 years ago
You would need the following installed:
I just did a fresh clone and didn't have any issues building it. It must be built in VS 2017
If using Visual Studio for Mac the project can be built at the command line with MSBuild. To change the project type that you are working with simply edit csproj and modify the TargetFrameworks for only the project type you want to use.
I'm trying to build master but can't. I have tried on:
Visual Studio for Mac (7.4.3 build 10) Visual Studio on Windows (15.7 with Xamarin/UWP workloads) .NET Core CLI (2.1.101) MSBuild on macOS (15.4.0.0 (xplat-master/67e8006d Thu Mar 8 17:15:24 EST 2018) for Mono)
VS for mac fails with:
/Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj: Error NU1202: Package Plugin.CurrentActivity 2.0.0.6-beta is not compatible with netstandard1.0 (.NETStandard,Version=v1.0). Package Plugin.CurrentActivity 2.0.0.6-beta supports: monoandroid44 (MonoAndroid,Version=v4.4) (NU1202) (DeviceInfo.Plugin) ...
On Windows it's a MSBuild issue:
CLI:
/usr/local/share/dotnet/sdk/2.1.101/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets(41,3): error MSB4019: The imported project "/usr/local/share/dotnet/sdk/2.1.101/15.0/Bin/Microsoft.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [/Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj] /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error MSB4057: The target "Build" does not exist in the project. 0 Warning(s) 7 Error(s)
MSBuild failed like VS for Mac as expected:
/Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: Package System.Threading.Timer 4.0.1 is not compatible with netstandard1.0 (.NETStandard,Version=v1.0). Package System.Threading.Timer 4.0.1 supports: /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - monoandroid10 (MonoAndroid,Version=v1.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - monotouch10 (MonoTouch,Version=v1.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - net451 (.NETFramework,Version=v4.5.1) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - netcore50 (.NETCore,Version=v5.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - netstandard1.2 (.NETStandard,Version=v1.2) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - portable-net451+win81+wpa81 (.NETPortable,Version=v0.0,Profile=Profile151) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - win81 (Windows,Version=v8.1) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - wpa81 (WindowsPhoneApp,Version=v8.1) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - xamarinios10 (Xamarin.iOS,Version=v1.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - xamarinmac20 (Xamarin.Mac,Version=v2.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - xamarintvos10 (Xamarin.TVOS,Version=v1.0) /Users/bruno/git/DeviceInfoPlugin/src/DeviceInfo.Plugin/DeviceInfo.Plugin.csproj : error NU1202: - xamarinwatchos10 (Xamarin.WatchOS,Version=v1.0)
Do I need to install anything else to get it to build?