pglazkov / MvvmValidation

Lightweight library that helps reduce boilerplate when implementing validation in XAML MVVM applications
MIT License
167 stars 31 forks source link

Compilation fails in Visual Studio for Mac #13

Closed EltonGarcia closed 6 years ago

EltonGarcia commented 7 years ago

Compilation in Visual Studio for Mac fails with the message: The type or namespace name 'MvvmValidation' could not be found (are you missing a using directive or an assembly reference?)

After opening the same project and build in Xamarin Studio it works perfectly.

Related: https://stackoverflow.com/a/41591578/2364774

vickieallen commented 7 years ago

I have the same issue - I think this is due to the target framework for compilation being 5, even though the min req is 1. I've had to downgrade our version of the package in Nuget to 2.0.2 and now it builds fine in Visual Studio 2015, whereas before it would only build in 2017. image

pglazkov commented 6 years ago

The library is compiled against .NET Standard 1.0. Please make sure that your target platform is supported by .NET Standard 1.0. You can refer to the table here: https://docs.microsoft.com/en-us/dotnet/standard/net-standard.