dotnet / dotnet/docs

Enable pinvoke source generation in netstandard2.0 project

Open
#37,757 1 comment 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Missing information

### Description

I would like to know if and how the source generation for platform invokes can be used in a netstandard2.0 project using .net 7 SDK. Are there any runtime dependencies for this feature, is there a NuGet package for netstandar2.0 projects or can some sources be added to the own project to make the generator work?

### Page URL

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/native-interop/pinvoke-source-generation.md

### Document Version Independent Id

572c0b50-a28d-d387-1e8c-4a271615a753

### Article author

@jkoritzinsky

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.