Skip to content

Commit

Permalink
refs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jul 9, 2024
1 parent e9950ff commit 5ebe350
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Caseless.Fody/Caseless.Fody.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FodyHelpers" Version="6.8.0" />
<PackageReference Include="FodyHelpers" Version="6.8.1" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Caseless/Caseless.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageProjectUrl>https://github.com/Fody/Caseless</PackageProjectUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FodyPackaging" Version="6.8.0" PrivateAssets="All" />
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="none" />
<PackageReference Include="FodyPackaging" Version="6.8.1" PrivateAssets="All" />
<PackageReference Include="Fody" Version="6.8.1" PrivateAssets="none" />
</ItemGroup>
</Project>
4 changes: 3 additions & 1 deletion Tests/ModuleWeaverOperandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ static void AddConditionalBranchLong(ModuleDefinition module, ModuleWeaver modul
var il = body.GetILProcessor();

// This is the key: a call which will be replaced, targeted by a branch
var call = il.Create(OpCodes.Callvirt, module.ImportReference(typeof(string).GetMethod("StartsWith", new[] {typeof(string)})));
var startsWith = module.ImportReference(typeof(string)
.GetMethod("StartsWith", [typeof(string)]));
var call = il.Create(OpCodes.Callvirt, startsWith);
var branch = il.Create(OpCodes.Brtrue, call);

il.Append(il.Create(OpCodes.Ldstr, "foo"));
Expand Down
12 changes: 8 additions & 4 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
<DisableFody>true</DisableFody>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FodyHelpers" Version="6.8.0" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="Verify.Xunit" Version="24.1.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0" PrivateAssets="all" />
<PackageReference Include="FodyHelpers" Version="6.8.1" />
<PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0" />
<PackageReference Include="System.Security.Permissions" Version="8.0.0" />
<PackageReference Include="System.Threading.AccessControl" Version="8.0.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="Verify.Xunit" Version="25.3.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<ProjectReference Include="..\AssemblyToProcess\AssemblyToProcess.csproj" />
<ProjectReference Include="..\Caseless.Fody\Caseless.Fody.csproj" />
Expand Down

0 comments on commit 5ebe350

Please sign in to comment.