-
Notifications
You must be signed in to change notification settings - Fork 564
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.bugComponent does not function as intended.Component does not function as intended.
Milestone
Description
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
VS 2022 17.8, VS 2022 17.9
Description
With the new OneDotNetBindingProjects, it seems that I cannot create a binding C# project for a jar, then only reference it in my main android project, but do NOT pack the jar code into the final apk.
My project XamarinPosed achieved this (also tricky) on Classic Xamarin.Android.
But for the new XamarinPosed with .NET 8, if I apply similar tricks, VS Intellisense will stop working for members in binding project, and there are CS0246 and CS0103 errors. However, the project can still be built.
Steps to Reproduce
- git clone https://github.com/UlyssesWu/XamarinPosed.Core/tree/vs_CS0246 (do not clone the main branch because it works)
- Open sln with VS, build the solution, it can be built without error
- Navigate to
XamarinPosed\Loader.cs, put your mouse onIXposedHookLoadPackage,XposedBridge.Log, or just check the error list, there areCS0246andCS0103, and there are no auto-complete. But still, the project built without error
Did you find any workaround?
Do not reference the binding project directly, but reference the built binding dll instead. Check out the main branch of my repo.
Relevant log output
No response
brunckCopilot
Metadata
Metadata
Assignees
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.bugComponent does not function as intended.Component does not function as intended.
