Skip to content

Compile-time errors in generated code #19

Answered by canton7
ModernRonin asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. I can't replicate this using that csproj and ViewModel.

It's really weird that you're seeing generated files in PropertyChanged.SourceGenerator\PropertyChanged.SourceGenerator.PropertyChangedSourceGenerator. The generated files should be kept safely in the obj folder (there's an option for moving them out of there, but your csproj doesn't have that enabled). Did you move the generated files there manually? Can you delete them and see whether that fixes the issue?

Replies: 1 comment 25 replies

Comment options

You must be logged in to vote
25 replies
@canton7
Comment options

@canton7
Comment options

@ModernRonin
Comment options

@ModernRonin
Comment options

@canton7
Comment options

Answer selected by canton7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants