0

I use ISourceGenerator to generate some source.

On my pc all work well. But on build machine output dll doesn't contain generated sources.

Should i install anything else besides net 6 sdk on build machine?

4
  • Source generators must target netstandard2.0. Commented Oct 14, 2022 at 3:38
  • Seems like this one is an open issue Commented Oct 14, 2022 at 3:39
  • Use aka.ms/msbuildlog to collect a log and see what failed. Commented Oct 14, 2022 at 8:56
  • @PauloMorgado didn't find anything interesting in log (/bs). But this solved the problem. ` <ItemGroup> <PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.3.1" PrivateAssets="all"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> </ItemGroup> ` Commented Oct 22, 2022 at 3:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.