diff --git a/CompatIssue/Class1.cs b/CompatIssue/Class1.cs new file mode 100644 index 00000000..7e6e5e37 --- /dev/null +++ b/CompatIssue/Class1.cs @@ -0,0 +1,12 @@ +namespace CompatIssue; + +public class Class1 +{ + public void Method() + { + } + + public int Property => 10; + + public int? NullableProperty => 10; +} diff --git a/CompatIssue/CompatIssue.csproj b/CompatIssue/CompatIssue.csproj new file mode 100644 index 00000000..4bbd7a07 --- /dev/null +++ b/CompatIssue/CompatIssue.csproj @@ -0,0 +1,13 @@ + + + + 1.2.0 + 1.1.0 + netstandard2.0 + enable + enable + latest + true + + + diff --git a/CompatIssue/README.md b/CompatIssue/README.md new file mode 100644 index 00000000..ad137f50 --- /dev/null +++ b/CompatIssue/README.md @@ -0,0 +1,2 @@ +This directory exists to demonstrate an issue with the MS compat tool. +See https://github.com/dotnet/sdk/issues/39629 for details \ No newline at end of file diff --git a/CompatIssue/SampleEnum.cs b/CompatIssue/SampleEnum.cs new file mode 100644 index 00000000..1d5de75e --- /dev/null +++ b/CompatIssue/SampleEnum.cs @@ -0,0 +1,7 @@ +namespace CompatIssue; + +public enum SampleEnum +{ + Value0, + Value1 +} diff --git a/CompatIssue/global.json b/CompatIssue/global.json new file mode 100644 index 00000000..282c5a85 --- /dev/null +++ b/CompatIssue/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "8.0.203", + "rollForward": "latestFeature" + } +} \ No newline at end of file