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

c#: Duplicated namespace using System.Runtime.InteropServices; #1099

Closed
jsturtevant opened this issue Dec 2, 2024 · 0 comments · Fixed by #1106
Closed

c#: Duplicated namespace using System.Runtime.InteropServices; #1099

jsturtevant opened this issue Dec 2, 2024 · 0 comments · Fixed by #1106
Labels
gen-c# Related to the C# code generator

Comments

@jsturtevant
Copy link
Collaborator

Duplicate package using System.Runtime.InteropServices;

With wit

test:simple;

world my-funcs {
  import do-something: func();
  export get-number: func() -> s32;
}

c# generated:

    namespace exports {
        using System.Runtime.InteropServices;
        using System.Runtime.InteropServices;public static class MyFuncsWorld
        {

            internal static class DoSomethingWasmInterop

Message:

  LibraryUsingWit succeeded with 1 warning(s) (1.1s) → test\WitBindgenTest\testapps\LibraryUsingWit\bin\Debug\net9.0\LibraryUsingWit.dll
    C:\Users\jstur\projects\componentize-dotnet\test\WitBindgenTest\testapps\LibraryUsingWit\obj\Debug\net9.0\wit_bindgen\MyFuncs.cs(75,15): warning CS010

Happens with the latest package version 0.36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gen-c# Related to the C# code generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant