-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tidy up test framework * DAP005tests * getting into the testing swing
- Loading branch information
Showing
25 changed files
with
377 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[*.cs] | ||
|
||
# DAP000: Interceptors generated | ||
dotnet_diagnostic.DAP000.severity = suggestion | ||
# RS2008: Enable analyzer release tracking | ||
dotnet_diagnostic.RS2008.severity = none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# DAP003 | ||
|
||
Interceptors are a new feature, and require some project configuration. | ||
|
||
The exact shape of this has changed repeatedly, so this guidance is not complete yet. | ||
|
||
Things that might be involved, depending on what preview build SDK you're using: | ||
|
||
- `<Features>($Features);InterceptorsPreview</Features>` | ||
- `<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Dapper.AOT<InterceptorsPreviewNamespaces>` | ||
|
||
This will be clarified for release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DAP004 | ||
|
||
Dapper.AOT runs on interceptors, which requires at least C# 11. The language version is implied by | ||
your target .NET version, but can be changed manually - it is fine to use a different language | ||
version than the default for that target runtime, especially when going "higher". For example, you | ||
can use C# 12 on a project that targets .NET Framework (as long as you have up-to-date build tools). | ||
|
||
The easiest way to do this is via `<LangVersion>latest</LangVersion>`. | ||
|
||
For more information, see https://learn.microsoft.com/dotnet/csharp/language-reference/configure-language-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# DAP005 | ||
|
||
You're seeing this message because Dapper.AOT has found at least one place where it *could* help, and it | ||
isn't explicit whether you want it to do so. | ||
|
||
Dapper.AOT doesn't change any behaviours without your permission. You can *enable* (or disable) Dapper.AOT | ||
at any level by adding a `[DapperAot]` (or `[DapperAot(false)]`) attribute. | ||
|
||
To enable Dapper.AOT globally, add (usually to `AssemblyInfo.cs`, although it doesn't matter where): | ||
|
||
|
||
``` csharp | ||
[module: DapperAot] | ||
``` | ||
|
||
Alternatively, if you only want it in a few places, use: | ||
|
||
``` csharp | ||
[module: DapperAot(false)] | ||
``` | ||
|
||
and add `[DapperAot]` at more specific levels - types, individual methods, etc. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.