You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/prompts/error-consolidation.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ Overall steps:
10
10
11
11
## Add a single existing file into the new consolidated article.
12
12
13
-
We're going to work through a series of files consolidating errors and warnings related to declaring the `dynamic` type and dynamic binding.
13
+
We're going to work through a series of files consolidating errors and warnings.
14
14
15
-
The destination for all these edits is the dynamic-type-and-binding-errors.md file. It already contains a skeleton for the final output.
15
+
- For the duration of this chat, all references to "destination file" refer to `using-statement-declaration-errors.md.
16
+
- For the duration of this chat, all references to "the target theme" refer to errors and warnings related to `using` statements and `using` variable declarations. Note that the `using` keyword can also be used for a `using` directive. Don't include those error messages.
17
+
18
+
The destination file already contains a skeleton for the final output.
16
19
17
20
For each source file I specify in this chat, you'll do the following tasks:
18
21
@@ -28,30 +31,30 @@ For each source file I specify in this chat, you'll do the following tasks:
28
31
29
32
## Search for other related articles that may be missed.
30
33
31
-
Search all files in the docs/csharp/language-reference/compiler-messages and the docs/csharp/misc folder for any other errors and warnings that involve the `dynamic` type or dynamic binding. Give me a list to review for possible additional consolidation. Don't make any edits until the originating user approves.
34
+
Search all files in the docs/csharp/language-reference/compiler-messages and the docs/csharp/misc folder for any other errors and warnings that involve the target theme. Give me a list to review for possible additional consolidation. Don't make any edits until the originating user approves.
32
35
33
36
## Final search in roslyn source
34
37
35
38
Let's check undocumented errors and the roslyn source for any missing errors. For every error code listed in "sorry-we-don-t-have-specifics-on-this-csharp-error.md" under the `f1_keywords` front matter, do the following:
36
39
1. Find that number as a constant in `ErrorCodes.cs`.
37
40
2. Locate the corresponding `data` element in CSharpResources.resx. The `name` atttribute should match the number of the constant.
38
41
3. Read the error message found in the `<value>` element that is a child of that `<data>` element.
39
-
Give me a list of all error numbers and corresponding error messages that relate to operator overloading.
42
+
Give me a list of all error numbers and corresponding error messages that relate to the target theme.
40
43
41
-
To make sure you've found all related errors, we'll check the source. Look in `CSharpResources.resx` for any elements where the `<value>` element is a message related to preprocessor tokens. The symbolic constant for that value is in the `name` attribute on the parent `data` element. Find that value in `ErrorCodes.cs`. It will map to the compiler error code, where the code is "CS" followed by the number as a four digit number. Build a list of any related errors, but don't make any edits yet.
44
+
To make sure you've found all related errors, we'll check the source. Look in `CSharpResources.resx` for any elements where the `<value>` element is a message related to the target theme. The symbolic constant for that value is in the `name` attribute on the parent `data` element. Find that value in `ErrorCodes.cs`. It will map to the compiler error code, where the code is "CS" followed by the number as a four digit number. Build a list of any related errors, but don't make any edits yet.
42
45
43
46
I'll give you error codes one by one. For each, I want you to do the following:
44
47
45
-
- Add the new error code to the front matter of operator-overloading-errors.md, for both the `f1_keywords` and `helpview_keywords` table.
46
-
- Add the new error code and error message to the table at the top of operator-overloading-errors.md.
47
-
- Add the new error code to the list of `displayName` elements in the TOC file for operator-overloading-errors.md.
48
+
- Add the new error code to the front matter of the destination file, for both the `f1_keywords` and `helpview_keywords` table.
49
+
- Add the new error code and error message to the table at the top of the destination file.
50
+
- Add the new error code to the list of `displayName` elements in the TOC file entry for the destination file.
48
51
- Remove the new error code from the front matter in the file `csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-errors.md` file.
49
52
50
53
Note that no redirections need to be added for these error codes.
51
54
52
55
## Build consolidated sections
53
56
54
-
For all remaining work, all edits will be in the `dynamic-type-and-binding-errors.md` file. The final format should mirror the structure of the `preprocessor-errors.md` file. Every H2 is a theme, all anchors are for the theme, not an individual error code.
57
+
For all remaining work, all edits will be in the target file. The final format should mirror the structure of the other target theme files in the docs/csharp/language-reference/compiler-messages folder. Every H2 is a theme, all anchors are for the theme, not an individual error code.
55
58
56
59
To do that, make a new H2 section for the theme. Remove all the H2s for the individual error codes that are part of that theme. Where applicable, the new H2 can include text or examples from the H2s you remove. The new section should include links to language reference articles that discuss the feature or theme.
| Create a chat application |[Build an Azure AI chat app with .NET](./quickstarts/build-chat-app.md)|
39
-
| Summarize text |[Summarize text using Azure AI chat app with .NET](./quickstarts/prompt-model.md)|
40
-
| Chat with your data |[Get insight about your data from an .NET Azure AI chat app](./quickstarts/build-vector-search-app.md)|
39
+
| Summarize text |[Summarize text using Azure AI chat app](./quickstarts/prompt-model.md)|
40
+
| Chat with your data |[Get insight about your data from a .NET Azure AI chat app](./quickstarts/build-vector-search-app.md)|
41
41
| Call .NET functions with AI |[Extend Azure AI using tools and execute a local function with .NET](./quickstarts/use-function-calling.md)|
42
-
| Generate images |[Generate images using Azure AI with .NET](./quickstarts/generate-images.md)|
42
+
| Generate images |[Generate images from text](./quickstarts/text-to-image.md)|
43
43
| Train your own model |[ML.NET tutorial](https://dotnet.microsoft.com/learn/ml-dotnet/get-started-tutorial/intro)|
44
44
45
45
Browse the table of contents to learn more about the core concepts, starting with [How generative AI and LLMs work](./conceptual/how-genai-and-llms-work.md).
0 commit comments