-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corefx build fails when Xamarin PCL profiles are installed #13989
Comments
Shouldn't this be closed? It seems dotnet/buildtools#51 fixed this? |
@terrajobst No, dotnet/buildtools#51 doesn't fix this. It just allows the workaround of changing the extension of the Xamarin .xml files so that they'll be ignored. |
I'm experiencing the same, 339 warnings and 1038 errors when building from the command line. |
Is there a workaround for this? I tried changing the extensions of Xamarin xmls but it didn't work as for me. Will uninstalling Xamarin help? |
@AlexSikilinda Changing the extensions for the Xamarin .xml files in the PCL Profile SupportefFrameworks folders worked for me after dotnet/buildtools#51 was merged. However, I haven't tested this recently. It's also possible that you missed renaming some of them. |
If anyone else hits this, the workaround is to look for any |
Note: this also happens on coreclr:
|
I had the same thing happen to me after updating to the visual studio 2015 RC version selecting all defaults (which I didn't realize selected Xamarin). I didn't find the files mentioned in the workaround so I went to add/remove and removed Xamarin and it fixed the problem. Probably need to update developers instructions (Next to using Visual Studio 2015 RC) to make sure not to install Xamarin when installing this latest version to spare others from this side-trip I made. |
Guys, I'd love to solve this once and for all. What are we doing wrong that this doesn't "just work"? Installing our .xml files under the SupportedFrameworks for various profiles is the way this has to be done for it to work for installing nuget packages as of NuGet 2.8. Is this something that changed again on the MS/PCL side? Just to be clear: anything that is .NET 4.5 is compatible pretty much as-is with Xamarin.iOS and Xamarin.Android, since we are a full .NET 4.5 profile anyway (plus the platform-specific APIs). So, how to we tell "the build system" that in a reliable way that works without workarounds that work on one version of VS and break in another? ;) (since removing those XMLs most certainly break the installation of those nuget packages that target net45 or profile78/others onto XA/XI projects... ) |
Ping, would love to see this issue fixed before the final release, (be it on the Xamarin side or VS side). (edit btw, see this just as a question not an attack on anyone :) ) |
We need clear guidance on how to extend PCLs for NuGets in a way that works On Thu, May 28, 2015 at 4:27 PM Dick van den Brink [email protected]
|
Hey @dsplaisted has there been any further investigation on why our PCL XML files would break this scenario? It seems to happen in non-CoreCLR cases too (i.e. just got a report from a MS guy, @victorgarciaaprea can point to, who got the error in a blank PCL Xamarin.Forms app). |
It's been a while since there was last activity on this. Since we've changed our build configuration significantly since this was filed, I'm going to close this. Please file a new issue if there's something similar. |
Remove dotnet bot from contributor list
EXPECTED: Build succeeds
ACTUAL: Build fails with lots of type resolution errors
The ResolveNuGetPackages target is failing to resolve assets out of xunit.core.netcore:
The Xamarin tools add XML files to the SupportedFrameworks folders of some PCL profiles. This results in the configured frameworks for the project to be:
From the package, the following frameworks are supported:
So since the package doesn't support MonoTouch and MonoAndroid, the build system isn't resolving any of the assemblies inside it.
The text was updated successfully, but these errors were encountered: