Closed johnkors closed 2 years ago
Sorry, I think this was related to me using the latest .NET 6 Preview SDK. Switching back to .NET 5 SDK helped.
I think this at least warrants a clear recommendation somewhere to do treat CS8032 as an error . I've now seen this error both with the 5.0.100 SDK as well as the .NET 6.0 Preview 7 SDKs.
The impact of this being silent is that no ServiceBus triggers are generated, and you would not know unless you looked thru raw logs. Build and deploys work fine, but do not show up in Azure.
Maybe document and recommend <WarningsAsErrors>CS8032</WarningsAsErrors>
when using the autogenerated triggers?
I've raised #32 specifically to improve the surfacing of trigger-generation failures so we can focus this issue on the reason for the loading failure.
So you've seen this issue showing up both with the 5.0.100 SDK as well as the .NET 6.0 Preview 7 SDKs? DId I understand correctly that 5.0.400 did work?
Yes, exactly. And by the looks of this doc, it looks like there is a dependency on the .NET 3.1 SDK somewhere. So it's a bit of a mess at the moment, but that's with the Azure Function tooling team though.
Note: Currently you need both the .NET Core 3.1 and .NET 6.0 SDKs installed to build isolated function apps. You only need .NET 6.0 to run the apps.
Not having the blessed combo of SDKs installed made the source generation not work, and fail silently.
5.0.400 did not have any issues.
I've dug a little bit deeper and it seems the minimum .NET SDK version required is 5.0.300. I've raised a docs PR to explicitly mention this requirement when working with this package: https://github.com/Particular/docs.particular.net/pull/5495.
With https://github.com/Particular/docs.particular.net/pull/5495 I think we can close this as resolved
I'd say it's not resolved, but tracking moved to #32 . It's still an issue - but now just documented in Particular/docs.particular.net#5495.
Good catch, that is correct
Hi, thanks for letting us test the previews! Getting this warning during build:
Anything to worry about?
Csproj I'm building: