Coder Social home page Coder Social logo

Comments (20)

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024 1

It is very strange. In my test project it is working. but in my main project fails to compile. everything same, except few nuget packages.
But if i downgrade your lib version to 2.8.12 it also works well. but upgrading to 2.9.x fails to compile. Something was broken in new version comparing to the old one

from mradvice.

picrap avatar picrap commented on September 22, 2024

I don’t use Xamarin.Forms, could you provide a simple project with the problem?

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

You shouldn't use xam.forms, but your lib references System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e which is .net core library. In xamarin forms .netstandard2.0 is used, so it is incompatible to use your lib from .netstandard2.0 or higher project

from mradvice.

picrap avatar picrap commented on September 22, 2024

We had problems with System.Private.CoreLib but this wasn’t related directly by the lib we use (dnlib). Could you provide a sample?

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

OK, it is happens when upgrading from 2.8.12 to 2.9.0-test1. with 2.8.12 works well, with 2.9.0-test1 cannot compile.

Also, I cloned your repo and mentioned that there are no netstandard tests written

from mradvice.

picrap avatar picrap commented on September 22, 2024

We’ll give a try building for .net standard 2.0, then.

from mradvice.

picrap avatar picrap commented on September 22, 2024

That previous post was stupid: there is no way to build a weaver in .net standard because this not an actual framework.
Could you tell me which weaver is used? If it is the net5/6 we could make a try by forcing the weaving with the .net 4.6.1 weaver.

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

You probably have never created Xamarin projects. Core project is .netstandard2.x. and this is actualy a framework, because you can specify it as targetframework tag in .csproj file

from mradvice.

picrap avatar picrap commented on September 22, 2024

Instead of writing non-sense (.net standard is NOT a framowork, it’s a standard), could you tell which weaver is used? 😉

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

just random screenshot from nuget
image

from mradvice.

picrap avatar picrap commented on September 22, 2024

Could you tell which MrAdvice.Weaver.exe is used? (you still didn’t get it bout .net standard, but this is not the point)

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

BlankApp1.zip
here is sample project, there you can figure out, that core project is .netstandard project and it cannot be built using your latest lib. if you remove all mentions of your lib it can be built successfully.
I don't know which MrAdvice.Weaver.exe is used, I just installing nuget package

from mradvice.

picrap avatar picrap commented on September 22, 2024

For your information on .net standard, please go read https://docs.microsoft.com/en-us/dotnet/standard/net-standard
But thank you for the sample which says:
MrAdvice 2.9.6/.NET 5.0 weaved module 'BlankApp1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (targeting framework ) in 296ms
So I guess this was the .net 5.0 weaver 😉

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

.net5 is not supported by xamarin forms

from mradvice.

picrap avatar picrap commented on September 22, 2024

That’s why I’ll try to use the .NET 4.6.1 weaver

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

.net framework also is not supported by xamarin. .net core 3.1 is supported

from mradvice.

picrap avatar picrap commented on September 22, 2024

MrAdvice.Weaver 2.8 was only built in .NET framework. And is working for your case.

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

And it is strange. Could you provide .net core 3.1 version of your lib? or .netstandard2.0
For example, Prism library for xamarin forms provides their lib for .netstandard2.0
https://github.com/PrismLibrary/Prism/blob/master/src/Forms/Prism.Unity.Forms/Prism.Unity.Forms.csproj

from mradvice.

Alex-Dobrynin avatar Alex-Dobrynin commented on September 22, 2024

Found the problem, you need to add this

netstandard2.0

here

image

and it will work in netstandard libs, tested in my project locally

from mradvice.

picrap avatar picrap commented on September 22, 2024

https://www.nuget.org/packages/MrAdvice/2.9.9 Let me know!

from mradvice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.