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

Failed to open generated code in Visual Studio Code #1128

Closed
altamkp opened this issue Jan 24, 2024 · 1 comment
Closed

Failed to open generated code in Visual Studio Code #1128

altamkp opened this issue Jan 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@altamkp
Copy link

altamkp commented Jan 24, 2024

Actual behavior

Hi there,

I have recently started using this library to generate Win32 APIs for my projects. As my go-to IDE is Visual Studio Code, I would like to also view the generated code in VS Code, but it fails to do so currently. I have provided a minimal reproducible example project below.

image

I have also tried to open the project in Visual Studio and it works fine.

image

Expected behavior

Being able to open generated source code in VS Code.

Repro steps

  1. NativeMethods.txt content:
GetVersion
  1. NativeMethods.json content (if present):
    Not configured.

  2. Any of your own code that should be shared?

CsWin32Test.zip

Context

  • CsWin32 version: 0.3.49-beta
  • Win32Metadata version (if explicitly set by project): default
  • Target Framework: net8.0
  • LangVersion (if explicitly set by project): default
@altamkp altamkp added the bug Something isn't working label Jan 24, 2024
@AArnott
Copy link
Member

AArnott commented Jan 24, 2024

There is nothing CsWin32 can do to improve the VS Code visualization story. Please file an issue with the VS Code folks, possibly targeting the C# extension.

@AArnott AArnott closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants