Skip to content

Commit 119936c

Browse files
update copilot instructions for multi-targeting
1 parent 675d403 commit 119936c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Repository Guidelines Alignment
44

5-
This document extends the existing [guidelines.md](./guidelines.md) with .NET 9 specific guidance:
5+
This document extends the existing [guidelines.md](../guidelines.md) with .NET 9 specific guidance:
66

77
- **Modern Technologies**: .NET 9 represents the latest modern technology stack
88
- **Productivity**: Leverage .NET 9 features for shorter, more efficient code
@@ -21,6 +21,7 @@ This document extends the existing [guidelines.md](./guidelines.md) with .NET 9
2121
- **Multi-targeting**: When supporting multiple frameworks, include `net9.0` as the primary target
2222
- **Platform-specific**: Use `net9.0-windows` for Windows-specific projects (WinUI, WPF)
2323
- **Mobile/Cross-platform**: Use appropriate TFMs like `net9.0-android`, `net9.0-ios` for mobile projects
24+
- **Library Projects**: Use multi-targeting for STS and LTS, thus `net9.0` and `net8.0` for maximum compatibility
2425

2526
### Project Types and Framework Usage
2627

@@ -35,9 +36,9 @@ This document extends the existing [guidelines.md](./guidelines.md) with .NET 9
3536
- **Avalonia cross-platform**: Use `net9.0`
3637

3738
#### Libraries and Shared Code
38-
- **Shared libraries**: Use `net9.0` for maximum compatibility
39+
- **Shared libraries**: Use `net9.0` and `net8.0` for maximum compatibility
3940
- **Multi-target libraries**: Include `net9.0` as primary target, consider `net8.0` for backward compatibility if needed
40-
- **ViewModels**: Target `net9.0` primarily
41+
- **ViewModels**: Target `net9.0` and `net8.0`
4142

4243
## Language and Code Style
4344

0 commit comments

Comments
 (0)