Closed Marvin-Brouwer closed 11 months ago
Fixes #291.
To test this I referenced this project directly, in a multi target project, like so:
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'"> <Reference Include="Ardalis.GuardClauses"> <HintPath>..\..\..\GuardClauses\src\GuardClauses\bin\Release\net7.0\Ardalis.GuardClauses.dll</HintPath> </Reference> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> <Reference Include="Ardalis.GuardClauses"> <HintPath>..\..\..\GuardClauses\src\GuardClauses\bin\Release\netstandard2.1\Ardalis.GuardClauses.dll</HintPath> </Reference> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> <Reference Include="Ardalis.GuardClauses"> <HintPath>..\..\..\GuardClauses\src\GuardClauses\bin\Release\netstandard2.1\Ardalis.GuardClauses.dll</HintPath> </Reference> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> <Reference Include="Ardalis.GuardClauses"> <HintPath>..\..\..\GuardClauses\src\GuardClauses\bin\Release\netstandard2.0\Ardalis.GuardClauses.dll</HintPath> </Reference> </ItemGroup>
I changed one of my unit-test that validated a Guard.Against.Null(...); into net6.0 and stepped into a test. It did automatically resolve the parameterName in Lang version 10.
Guard.Against.Null(...);
net6.0
10
Feel free to validate this locally before approving.
Cool, thanks! I'll try to make time to try this out soon. Pretty overwhelmed at the moment.
Fixes #291.
To test this I referenced this project directly, in a multi target project, like so:
I changed one of my unit-test that validated a
Guard.Against.Null(...);
intonet6.0
and stepped into a test. It did automatically resolve the parameterName in Lang version10
.Feel free to validate this locally before approving.