Skip to content

Commit 1a767ac

Browse files
authored
feat: update to bit 9.11.3 #95 (#96)
1 parent 92f67de commit 1a767ac

File tree

4 files changed

+106
-94
lines changed

4 files changed

+106
-94
lines changed

.github/copilot-instructions.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
# GitHub Copilot Instructions
2-
3-
## Key Technologies
4-
5-
- **C# 13.0**
6-
- **ASP.NET Core 9.0**
7-
- **Blazor**: Component-based web UI framework
8-
- **Bit.BlazorUI**: Primary UI component library
9-
10-
## Coding Conventions & Best Practices
11-
12-
1. **Follow the established project structure**: Adhere to the defined layout for consistency.
13-
2. **Use Bit.BlazorUI Components**: Prioritize using components from the Bit.BlazorUI library over generic HTML to ensure UI consistency and leverage built-in features.
14-
3. **Embrace Nullable Reference Types**: All new code must be nullable-aware, as nullability is enabled project-wide.
15-
4. **Leverage Dependency Injection**: Register and resolve services using the built-in DI container.
16-
5. **Implement Structured Logging**: Use structured logging for clear, queryable application logs.
17-
6. **Use Async Programming**: Employ `async/await` for I/O-bound operations to prevent blocking threads.
18-
7. **Modern C#**: Write modern, concise, and efficient code by using the latest C# language features, including implicit usings and global using statements.
19-
8. **Prefer razor.cs code-behind files**: Use `.razor.cs` files for component logic instead of @code blocks in `.razor` files.
20-
9. **Prefer razor.css files**: Use `.razor.css` files for component styles instead of inline styles in `.razor` files.
21-
10. **After applying changes, make sure project builds successfully**: Always verify that the project builds without errors after making changes.
22-
23-
## Rules
24-
25-
**RULE 1:** If a task (question, code modification or review) involves the use of bit BlazorUI components (e.g., `BitButton`, `BitTooltip`, `BitTextField`),
26-
or refers to `bitplatform`, `bit Bswup`, `bit Butil`, `bit Besql`, or `bit Boilerplate`, or involves UI components without explicitly specifying their UI toolkit,
27-
you **MUST** use the deepwiki's `ask_question` mcp tool to find the correct implementation and usage patterns of `bitfoundation/bitplatform` deep wiki before writing or changing any code.
28-
29-
**End of RULE 1**
30-
31-
**RULE 2:** If a task (question, code modification, or review) involves Microsoft technologies such as C#, F#, ASP.NET Core, Microsoft.Extensions, NuGet, Entity Framework, Blazor or the `dotnet` runtime,
32-
you **MUST** use the `microsoft.docs.mcp` server to search Microsoft's latest official documentation for detailed and up-to-date information before responding to specific or narrowly defined questions.
33-
34-
**End of RULE 2**
35-
36-
**RULE 3:** You **MUST** use the read-website-fast's `fetch` mcp tools, to gather information from URLs provided by the user.
37-
38-
**End of RULE 3**
1+
# GitHub Copilot Instructions
2+
3+
## Key Technologies
4+
5+
- **C# 13.0**
6+
- **ASP.NET Core 9.0**
7+
- **Blazor**: Component-based web UI framework
8+
- **Bit.BlazorUI**: Primary UI component library
9+
10+
## Coding Conventions & Best Practices
11+
12+
1. **Follow the established project structure**: Adhere to the defined layout for consistency.
13+
2. **Use Bit.BlazorUI Components**: Prioritize using components from the Bit.BlazorUI library over generic HTML to ensure UI consistency and leverage built-in features.
14+
3. **Embrace Nullable Reference Types**: All new code must be nullable-aware, as nullability is enabled project-wide.
15+
4. **Leverage Dependency Injection**: Register and resolve services using the built-in DI container.
16+
5. **Implement Structured Logging**: Use structured logging for clear, queryable application logs.
17+
6. **Use Async Programming**: Employ `async/await` for I/O-bound operations to prevent blocking threads.
18+
7. **Modern C#**: Write modern, concise, and efficient code by using the latest C# language features, including implicit usings and global using statements.
19+
8. **Prefer razor.cs code-behind files**: Use `.razor.cs` files for component logic instead of @code blocks in `.razor` files.
20+
9. **Prefer razor.css files**: Use `.razor.css` files for component styles instead of inline styles in `.razor` files.
21+
10. **After applying changes, make sure project builds successfully**: Always verify that the project builds without errors after making changes.
22+
23+
## Rules
24+
25+
**RULE 1:** If a task (question, code modification or review) involves the use of bit BlazorUI components (e.g., `BitButton`, `BitTooltip`, `BitTextField`),
26+
or refers to `bitplatform`, `bit Bswup`, `bit Butil`, `bit Besql`, or `bit Boilerplate`, or involves UI components without explicitly specifying their UI toolkit,
27+
you **MUST** use the deepwiki's `ask_question` mcp tool to find the correct implementation and usage patterns of `bitfoundation/bitplatform` deep wiki before writing or changing any code.
28+
29+
**End of RULE 1**
30+
31+
**RULE 2:** If a task (question, code modification, or review) involves Microsoft technologies such as C#, F#, ASP.NET Core, Microsoft.Extensions, NuGet, Entity Framework, Blazor or the `dotnet` runtime,
32+
you **MUST** use the `microsoft.docs.mcp` server to search Microsoft's latest official documentation for detailed and up-to-date information before responding to specific or narrowly defined questions.
33+
34+
**End of RULE 2**
35+
36+
**RULE 3:** You **MUST** use the read-website-fast's `fetch` mcp tools, to gather information from URLs provided by the user.
37+
38+
**End of RULE 3**

Bit.BlazorUIPlayground.csproj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
<!-- Generated by bit-empty template v-9.11.0 -->
1+
<!-- Generated by bit-empty template v-9.11.3 -->
22

33
<Project Sdk="Microsoft.NET.Sdk.Web">
44

5-
<PropertyGroup>
6-
<TargetFramework>net8.0</TargetFramework>
7-
<Nullable>enable</Nullable>
8-
<ImplicitUsings>enable</ImplicitUsings>
9-
</PropertyGroup>
5+
<PropertyGroup>
6+
<TargetFramework>net8.0</TargetFramework>
7+
<Nullable>enable</Nullable>
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
</PropertyGroup>
1010

1111

12-
<ItemGroup>
13-
<PackageReference Include="Bit.BlazorUI" Version="9.11.0" />
12+
<ItemGroup>
13+
<PackageReference Include="Bit.BlazorUI" Version="9.11.3" />
1414

15-
<PackageReference Include="Bit.CodeAnalyzers" Version="9.11.0">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18-
</PackageReference>
15+
<PackageReference Include="Bit.CodeAnalyzers" Version="9.11.3">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
1919

20-
<PackageReference Include="Bit.SourceGenerators" Version="9.11.0">
21-
<PrivateAssets>all</PrivateAssets>
22-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
23-
</PackageReference>
20+
<PackageReference Include="Bit.SourceGenerators" Version="9.11.3">
21+
<PrivateAssets>all</PrivateAssets>
22+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
23+
</PackageReference>
2424

25-
<Using Include="Bit.BlazorUI" />
26-
</ItemGroup>
25+
<Using Include="Bit.BlazorUI" />
26+
</ItemGroup>
2727
</Project>

Properties/launchSettings.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
{
2-
"$schema": "http://json.schemastore.org/launchsettings.json",
3-
"iisSettings": {
4-
"windowsAuthentication": false,
5-
"anonymousAuthentication": true,
6-
"iisExpress": {
7-
"applicationUrl": "http://localhost:28274",
8-
"sslPort": 44385
9-
}
10-
},
11-
"profiles": {
12-
"http": {
13-
"commandName": "Project",
14-
"dotnetRunMessages": true,
15-
"launchBrowser": true,
16-
"applicationUrl": "http://localhost:5226",
17-
"environmentVariables": {
18-
"ASPNETCORE_ENVIRONMENT": "Development"
19-
}
20-
},
21-
"https": {
22-
"commandName": "Project",
23-
"dotnetRunMessages": true,
24-
"launchBrowser": true,
25-
"applicationUrl": "https://localhost:7013;http://localhost:5226",
26-
"environmentVariables": {
27-
"ASPNETCORE_ENVIRONMENT": "Development"
28-
}
29-
},
30-
"IIS Express": {
31-
"commandName": "IISExpress",
32-
"launchBrowser": true,
33-
"environmentVariables": {
34-
"ASPNETCORE_ENVIRONMENT": "Development"
35-
}
36-
}
37-
}
38-
}
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"iisSettings": {
4+
"windowsAuthentication": false,
5+
"anonymousAuthentication": true,
6+
"iisExpress": {
7+
"applicationUrl": "http://localhost:62159",
8+
"sslPort": 44387
9+
}
10+
},
11+
"profiles": {
12+
"http": {
13+
"commandName": "Project",
14+
"dotnetRunMessages": true,
15+
"launchBrowser": true,
16+
"applicationUrl": "http://localhost:5063",
17+
"environmentVariables": {
18+
"ASPNETCORE_ENVIRONMENT": "Development"
19+
}
20+
},
21+
"https": {
22+
"commandName": "Project",
23+
"dotnetRunMessages": true,
24+
"launchBrowser": true,
25+
"applicationUrl": "https://localhost:7036;http://localhost:5063",
26+
"environmentVariables": {
27+
"ASPNETCORE_ENVIRONMENT": "Development"
28+
}
29+
},
30+
"IIS Express": {
31+
"commandName": "IISExpress",
32+
"launchBrowser": true,
33+
"environmentVariables": {
34+
"ASPNETCORE_ENVIRONMENT": "Development"
35+
}
36+
}
37+
}
38+
}

settings.VisualStudio.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* Visual Studio Settings File */
2+
{
3+
"languages.defaults.general.lineNumbers": true,
4+
"debugging.general.disableJITOptimization": true,
5+
"environment.documents.saveWithSpecificEncoding": true,
6+
"environment.documents.saveEncoding": "utf-8-nobom;65001",
7+
"languages.defaults.tabs.tabSize": 4,
8+
"debugging.hotReload.enableHotReload": true,
9+
"debugging.hotReload.enableForNoDebugLaunch": true,
10+
"projectsAndSolutions.aspNetCore.general.hotReloadCssChanges": true,
11+
"copilot.general.completions.enableNextEditSuggestions": true
12+
}

0 commit comments

Comments
 (0)