You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure C# Advanced to (its default) "Balanced" source generator mode.
Create a new C# console project
Add a package reference to Microsoft.Windows.CsWin32
Create a NativeMethods.txt file and give it the content: GetTickCount
Open Program.cs and write code to consume it.
Reactivate the NativeMethods.txt file and clear the content.
Save the file.
Expected Behavior:
Saving the NativeMethods.txt file, per the wording of the Balanced source generator mode, should trigger source generation, causing an error in Program.cs.
Actual Behavior:
Saving the NativeMethods.txt does not trigger source generation. Switching to Program.cs and saving it (though it has no unsaved changes) is necessary for the source generator to run again.
Proposal
Saving files in the AdditionalFile item list should trigger source generation the same way that saving Compile items does.
The text was updated successfully, but these errors were encountered:
Version Used: VS 17.12 (35114.17.main)
Steps to Reproduce:
GetTickCount
Expected Behavior:
Saving the NativeMethods.txt file, per the wording of the Balanced source generator mode, should trigger source generation, causing an error in Program.cs.
Actual Behavior:
Saving the NativeMethods.txt does not trigger source generation. Switching to Program.cs and saving it (though it has no unsaved changes) is necessary for the source generator to run again.
Proposal
Saving files in the AdditionalFile item list should trigger source generation the same way that saving Compile items does.
The text was updated successfully, but these errors were encountered: