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

DNNE.targets produces error in Visual Studio error list on open solution #156

Closed
AArnott opened this issue Feb 27, 2023 · 2 comments · Fixed by #158
Closed

DNNE.targets produces error in Visual Studio error list on open solution #156

AArnott opened this issue Feb 27, 2023 · 2 comments · Fixed by #158

Comments

@AArnott
Copy link

AArnott commented Feb 27, 2023

Visual Studio reports an error in the Error List, despite the fact that this error does not occur in a full build.

Severity	Code	Description	Project	File	Line	Suppression State
Error		Generated source file(s), C:\Users\andarno\source\repos\vs-threading\obj\src\SosThreadingTools\Debug\net7.0-windows\dnne/SosThreadingToolsManaged.g.c, not found. In order to generate source an export must exist. Create an export by adorning a function with UnmanagedCallersOnly.	SosThreadingTools	C:\_nugetpackages\dnne\2.0.0\build\DNNE.targets	121	

The thing is, I do have such an attribute.

Repro steps

git clone https://github.com/AArnott/vs-threading.git
cd vs-threading
git checkout 00d95df58e51bbee9500ff17fff9b41354978433
.\init.ps1  # or init.cmd if using cmd.exe
.\Microsoft.VisualStudio.Threading.sln

See how the Error List populates with the error.

@AArnott
Copy link
Author

AArnott commented Feb 27, 2023

This also breaks the design-time build to such an extent that when I open source files within the impacted project, I get errors everywhere that I reference the DbgEngExtension or Microsoft.Diagnostics namespaces.

@AArnott
Copy link
Author

AArnott commented Mar 2, 2023

Your fix works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant