Comments (20)
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.
I don’t use Xamarin.Forms, could you provide a simple project with the problem?
from mradvice.
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.
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.
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.
We’ll give a try building for .net standard 2.0, then.
from mradvice.
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.
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.
Instead of writing non-sense (.net standard is NOT a framowork, it’s a standard), could you tell which weaver is used? 😉
from mradvice.
just random screenshot from nuget
from mradvice.
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.
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.
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.
.net5 is not supported by xamarin forms
from mradvice.
That’s why I’ll try to use the .NET 4.6.1 weaver
from mradvice.
.net framework also is not supported by xamarin. .net core 3.1 is supported
from mradvice.
MrAdvice.Weaver 2.8 was only built in .NET framework. And is working for your case.
from mradvice.
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.
Found the problem, you need to add this
netstandard2.0
here
and it will work in netstandard libs, tested in my project locally
from mradvice.
https://www.nuget.org/packages/MrAdvice/2.9.9 Let me know!
from mradvice.
Related Issues (20)
- Parameter for Parameter Advice HOT 2
- Example - Advice for Event handlers HOT 6
- Wrong order of advices in class libraries HOT 5
- Failed to emit module HOT 4
- dotnet publish throw exception when use --self-contained HOT 8
- Add Changelog HOT 2
- Dotnet core DI and logging HOT 6
- Incorrect version in MrAdvice.dll HOT 11
- MrAdvice.Weaver.exe fails on Visual Studio 2017 HOT 2
- MrAdviceWeaverPath not defined in Xamarin.Android project HOT 8
- dotnet build on linux build agents
- Containerize the solution in linux with .NET Core 3.1 HOT 4
- Crash when weaving in azure linux build agent .net 6 HOT 4
- StackTraceHiddenAttribute
- Support for .NET 7 HOT 1
- NullReferenceException on build
- No compatible code running on the thread HOT 2
- .NET 8 support? HOT 3
- Cannot build project on mac HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mradvice.