Open octocat-mona opened 5 months ago
I would like to be able to configure Fody.ConfigureAwait(false) globally using a Directory.Build.props file. This can usually be done by adding an item group in this file (or per project in the .csproj file):
Fody.ConfigureAwait(false)
<ItemGroup> <AssemblyAttribute Include="Fody.ConfigureAwait"> <_Parameter1>false</_Parameter1> </AssemblyAttribute> </ItemGroup>
However parameters are limited to string parameters only, so this won't work with the bool continueOnCapturedContext parameter.
bool continueOnCapturedContext
Add a constructor on https://github.com/Fody/ConfigureAwait/blob/master/ConfigureAwait/ConfigureAwaitAttribute.cs which accepts a string value for continueOnCapturedContext and converts in into a bool.
continueOnCapturedContext
bool
+1
Is the proposal related to a problem
I would like to be able to configure
Fody.ConfigureAwait(false)
globally using a Directory.Build.props file. This can usually be done by adding an item group in this file (or per project in the .csproj file):However parameters are limited to string parameters only, so this won't work with the
bool continueOnCapturedContext
parameter.Describe the solution
Add a constructor on https://github.com/Fody/ConfigureAwait/blob/master/ConfigureAwait/ConfigureAwaitAttribute.cs which accepts a string value for
continueOnCapturedContext
and converts in into abool
.