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 the nuget package broken? #3

Open
Dids opened this issue Feb 7, 2018 · 7 comments
Open

Is the nuget package broken? #3

Dids opened this issue Feb 7, 2018 · 7 comments
Labels

Comments

@Dids
Copy link

Dids commented Feb 7, 2018

I'm trying to use MarkdownView with Xamarin.Forms (iOS only), but keep seeing Could not find MarkdownView referenced by assembly errors.

Linking is disabled, so it's not being stripped either, although adding a simple Init() method would potentially also solve that, like most other components are doing.

I'm using the following namespace/assembly with XAML:

<?xml version="1.0" encoding="utf-8"?>
<ContentPage
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:MyApp"
    xmlns:markdown="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
    x:Class="MyApp.MyAppPage">
	<markdown:MarkdownView />
</ContentPage>

UPDATE: I figured it might be important to mention that I'm using a shared project with Xamarin.Forms, not PCL or a .NET Standard library.

UPDATE 2: Just noticed that the actual DLL library filename is called Xam.Forms..dll, which makes me think that there's something fishy going on with the namespace/assembly names.

@IeuanWalker
Copy link

IeuanWalker commented Feb 8, 2018

@Dids Same issue here, in my references I get this -
image

@Dids
Copy link
Author

Dids commented Feb 8, 2018

I ended up forking this and migrating it to .NET Standard 2.0.

Fork's here:
https://github.com/Dids/MarkdownView

If @aloisdeniel is interested, I can submit a PR too.

@IeuanWalker
Copy link

@Dids that's awesome, how would I integrate this with my project?

@Dids
Copy link
Author

Dids commented Feb 8, 2018

@IeuanWalker You could build the NuGet yourself, or alternatively just include the project with your source, adding this project file to your project and referencing it.

@IeuanWalker
Copy link

@Dids Thanks, I've never built a NuGet package before, but ill have to give it ago another time. Security settings on my PC are stopping me from setting up NuGet.exe Environment variable.

If your PR is accepted could you let me know on this thread?

@flchaux
Copy link

flchaux commented Jun 5, 2018

Any news @aloisdeniel ?

@aloisdeniel
Copy link
Collaborator

I just sent a 0.6.0-pre update on NuGet with .NET Standard 2.0 support and migration to new csproj format for packaging. Hope it works for you now!

Sorry for the delay! I'm pretty busy right now... :(

@aloisdeniel aloisdeniel added the bug label Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants