Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fixed packing + errors
Browse files Browse the repository at this point in the history
  • Loading branch information
s-e-f committed Aug 10, 2023
1 parent 6ac61bd commit 0110125
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Squeel/Generators/ExtensionMethodGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal static class SqueelDbConnectionExtensions
(
this global::Npgsql.NpgsqlConnection connection,
ref global::{{GeneratedFileOptions.Namespace}}.SqueelInterpolatedStringHandler query,
[EnumeratorCancellation] global::System.Threading.CancellationToken ct = default
global::System.Threading.CancellationToken ct = default
)
{
throw new global::System.InvalidOperationException("This call failed to be intercepted by the Squeel source generator");
Expand Down
4 changes: 2 additions & 2 deletions Squeel/Generators/QueryAsyncGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ internal static class {{entity.Name}}QueryImplementation
(
this global::Npgsql.NpgsqlConnection connection,
ref global::Squeel.SqueelInterpolatedStringHandler query,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken ct = default
global::System.Threading.CancellationToken ct = default
)
{
var sql = query.ToString('@');
Expand All @@ -146,7 +146,7 @@ internal static class {{entity.Name}}QueryImplementation
(
global::Npgsql.NpgsqlCommand command,
global::System.Collections.Generic.IEnumerable<global::{{GeneratedFileOptions.Namespace}}.ParameterDescriptor> parameters,
[global::System.Runtime.CompilerServices] global::System.Threading.CancellationToken ct
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken ct
)
{
foreach (var pd in parameters)
Expand Down
2 changes: 2 additions & 0 deletions Squeel/Squeel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@

<Target Name="GetDependencyTargetPaths">
<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="dotnet/analyzers/cs" Visible="false" />

<TargetPathWithTargetPlatformMoniker Include="$(PkgHumanizer_Core)\lib\netstandard2.0\Humanizer.dll" IncludeRuntimeDependency="false" />
<None Include="$(PkgHumanizer_Core)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="dotnet/analyzers/cs" Visible="false" />

Expand Down

0 comments on commit 0110125

Please sign in to comment.