I have some old net40 code that I need to support, and I've found that I can generate the swagger proxy in net6.0 and then compile it to net40. I have this working using a net40 project that includes the generated .cs file, but of course it would be better to consolidate it to a single project.
Here's what the single project would look like. This project is generating the .cs file, but if I change<TargetFramework> to <TargetFrameworks> -- i.e., add two s characters and no other changes -- then the code generator stops working.
I have some old
net40
code that I need to support, and I've found that I can generate the swagger proxy innet6.0
and then compile it tonet40
. I have this working using anet40
project that includes the generated.cs
file, but of course it would be better to consolidate it to a single project.Here's what the single project would look like. This project is generating the
.cs
file, but if I change<TargetFramework>
to<TargetFrameworks>
-- i.e., add twos
characters and no other changes -- then the code generator stops working.