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
@@ -23,11 +24,22 @@ Simply install the dotnetCampus.LatestCSharpFeatures NuGet package.
23
24
If you want these new language features to also be effective for other projects that reference this project, you can add a conditional compilation symbol in the csproj file:
24
25
25
26
```xml
26
-
<!-- By default, dotnetCampus.LatestCSharpFeatures introduces new C# features into the current project using the internal modifier.
27
-
By using this conditional compilation symbol, these types can be set to public, allowing other projects referencing this project to also use these new features. -->
27
+
<!-- By default, dotnetCampus.LatestCSharpFeatures introduces most new C# features into the current project using the internal modifier.
28
+
By using this conditional compilation symbol, these types can be set to public, allowing other projects referencing this project to also use these new features.
29
+
Note: Index/Range types are always internal and not affected by this setting. See explanation below. -->
If your project already references other libraries that provide implementations of Index/Range, type conflicts may occur. In such cases, you can disable our Index/Range implementation:
34
+
35
+
```xml
36
+
<!-- If your project already has other Index/Range implementations (e.g., through the official System.Runtime.CompilerServices.IndexRange or other third-party libraries),
37
+
use this conditional compilation symbol to disable our Index/Range implementation to avoid type conflicts. -->
> **Special Note**: Unlike other features, Index/Range types always maintain an internal access level and will not become public due to the `USE_PUBLIC_LATEST_CSHARP_FEATURES` setting. This is because Index/Range are used in public APIs, and if set to public, they may cause compatibility issues with other libraries that use the official Index/Range implementation. Other features are typically for internal use and do not cause such compatibility issues.
42
+
31
43
## Feedback and Contributions
32
44
33
45
We welcome feedback and contributions from all users. If you encounter any problems during use, or have any suggestions for improvements, you can submit them via GitHub Issues.
0 commit comments