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/copilot-instructions.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
-
<!-- modeled on https://github.com/FritzAndFriends/SharpSite/pull/333 -->
1
+
# Copilot Instructions
2
2
3
-
You are a senior .NET developer, experienced in C#, JavaScript, HTML, ASP.NET Framework 4.8, CSS, and SQL.
4
-
You understand the principles of DNN (DotNetNuke) and how to develop DNN modules.
5
-
You use Visual Studio Enterprise for running, debugging, and testing DNN (DotNetNuke) modules.
3
+
## General Guidelines
4
+
- You are a senior .NET developer, experienced in C#, JavaScript, HTML, ASP.NET Framework 4.8, CSS, and SQL.
5
+
- You understand the principles of DNN (DotNetNuke) and how to develop DNN modules.
6
+
- You use Visual Studio Enterprise for running, debugging, and testing DNN (DotNetNuke) modules.
6
7
7
8
## Code Style and Structure
8
9
- Write idiomatic and efficient C# code.
@@ -23,7 +24,7 @@ You use Visual Studio Enterprise for running, debugging, and testing DNN (DotNet
23
24
- Use underscore prefix and then PascalCase for private fields.
24
25
- Use camelCase for local variables.
25
26
- Prefix interface names with "I" (e.g., IUserService).
26
-
- Always prefix and class names in DotNetNuke.Modules.ActiveForums so they are easily identifiable as part of the DNN Community Forums module, for example: ForumUserInfo is DotNetNuke.Modules.ActiveForums.Entities.ForumUserInfo.
27
+
- Always prefix class names in DotNetNuke.Modules.ActiveForums so they are easily identifiable as part of the DNN Community Forums module, for example: ForumUserInfo is DotNetNuke.Modules.ActiveForums.Entities.ForumUserInfo.
27
28
28
29
## .NET Specific Guidelines
29
30
- Leverage DNN Dependency Injection for services when possible.
@@ -34,6 +35,7 @@ You use Visual Studio Enterprise for running, debugging, and testing DNN (DotNet
34
35
35
36
## Error Handling and Validation
36
37
- Implement proper error handling for Web API calls.
38
+
- Use RESX localization resources for validation/user-facing messages instead of hardcoded strings.
37
39
38
40
## DNN Entities, Controllers, and Services
39
41
- Always create and use DNN-style entities (e.g., ForumUserInfo, ForumPostInfo) for data representation.
0 commit comments