Skip to content
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

Is there a way to make GitInfo work with Xamarin Live Player #77

Closed
sushicodeur opened this issue Aug 23, 2018 · 2 comments
Closed

Is there a way to make GitInfo work with Xamarin Live Player #77

sushicodeur opened this issue Aug 23, 2018 · 2 comments

Comments

@sushicodeur
Copy link

I can't debug my apps on Xamarin Live player as soon as I add GitInfo to the project.

The error I have :

Running /Users/me/Projects/TestGitInfo/Droid/bin/Debug/TestGitInfo.Droid.dll…
Start TestGitInfo.Droid, LGE LG-H870 Player, .
Attempting connection to debug address: 192.168.1.31:37847.
Connected to: 192.168.1.31:37847.
Deploying /Users/me/Projects/TestGitInfo/Droid/TestGitInfo.Droid.csproj…
Got device info: LGE LG-H870 Player (Android) @ 192.168.1.31:37847
Synchronizing files…
Building and running…
Built with 2 messages.
/Users/me/Projects/TestGitInfo/TestGitInfo/TestGitInfoPage.xaml.cs(1,1): error: 'ThisAssembly' is inaccessible due to its protection level
(1,1): error: Dependent project TestGitInfo.csproj failed to build, using old version.

To reproduce, I just created a blank new Xamarin Forms Project (PCL). Tested it worked with Live Player. OK.

Then I added GitInfo nuget and displayed ThisAssembly.Git.Commit in the Label that initialy displayed "Welcome to Xamarin Forms!".

As soon as we call ThisAssembly, we can't compile the project for Xamarin Live Player.

Any Idea ?

@kzu
Copy link
Member

kzu commented Aug 23, 2018

I guess Live Player doesn't compile the code like MSBuild does.

@sushicodeur
Copy link
Author

Yes, it looks like that. Xamarin Live Player has quite a lot of limitations.
https://docs.microsoft.com/fr-fr/xamarin/tools/live-player/limitations

It's probably nothing to do with GitInfo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants