-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Allow inspecting source generated files #16656
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
[dotnet] Allow inspecting source generated files #16656
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
|
||
| <PropertyGroup> | ||
| <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
| <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\Generated</CompilerGeneratedFilesOutputPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work on my end. Having plan B is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and honestly it was a reason why I initiated this PR

User description
💥 What does this PR do?
Generated files can be found at
obj/...folder. Now we can see what files are generated at compile time.💡 Additional Considerations
Traditionally IDE should show these files, but it doesn't work in my case. Not sure why.
🔄 Types of changes
PR Type
Enhancement
Description
Enable compiler-generated files inspection in output directory
Configure generated files to emit to intermediate build folder
Allows developers to view source-generated code at compile time
Diagram Walkthrough
File Walkthrough
Selenium.WebDriver.csproj
Configure compiler-generated files output in projectdotnet/src/webdriver/Selenium.WebDriver.csproj
EmitCompilerGeneratedFilesproperty set totrueto enablecompiler-generated file output
CompilerGeneratedFilesOutputPathto direct generated filesto
$(BaseIntermediateOutputPath)\Generatedfolderoutput directory