-
I'm trying to use [ObservableProperty] to reduce the code in my files. I have no issues running the application I'm working on using Visual Studio. But when I try to build the application in Azure pipelines I get errors such as this. For a code snippet
Is there something special that I need to add to my azure pipeline yml to get the source code generation to work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Just to double check, are you using packages.config by any chance? But no, you don't need anything special to get generators to run in a pipeline, a normal dotnet or MSBuild invocation will work (it's just a normal build). |
Beta Was this translation helpful? Give feedback.
-
Microsoft.CodeAnalysis.Compilers (this includes all roslyn references for C#) Microsoft.Net.Compilers.Toolset (this includes a specific version os MSBuild and uses that version to build always to avoid issues with different versioning on the pipeline) |
Beta Was this translation helpful? Give feedback.
Microsoft.CodeAnalysis.Compilers (this includes all roslyn references for C#)
Microsoft.Net.Compilers.Toolset (this includes a specific version os MSBuild and uses that version to build always to avoid issues with different versioning on the pipeline)