Skip to content

Commit ccccf5d

Browse files
authored
[Version 10.0] update test templates (#1557)
* Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * Update Project.csproj * fix expectedErrors CS number
1 parent 20f8f91 commit ccccf5d

10 files changed

Lines changed: 10 additions & 7 deletions

File tree

standard/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A generic class declaration shall not use `System.Attribute` as a direct or indi
2020

2121
> *Example*:
2222
>
23-
> <!-- Example: {template:"standalone-lib", name:"AttributeCantBeGeneric", expectedErrors:["CS8773"], ignoredWarnings:["CS0169"]} -->
23+
> <!-- Example: {template:"standalone-lib", name:"AttributeCantBeGeneric", expectedErrors:["CS8936"], ignoredWarnings:["CS0169"]} -->
2424
> ```csharp
2525
> public class B : Attribute {}
2626
> public class C<T> : B {} // Error – generic cannot be an attribute

tools/example-templates/code-in-class-lib-without-using/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>$example-name</AssemblyName>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<Nullable>annotations</Nullable>
8-
<LangVersion>9</LangVersion>
8+
<LangVersion>10</LangVersion>
99
</PropertyGroup>
1010

1111
</Project>

tools/example-templates/code-in-class-lib/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>$example-name</AssemblyName>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<Nullable>annotations</Nullable>
8-
<LangVersion>9</LangVersion>
8+
<LangVersion>10</LangVersion>
99
</PropertyGroup>
1010

1111
</Project>

tools/example-templates/code-in-main-without-using/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>annotations</Nullable>
77
<AssemblyName>$example-name</AssemblyName>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9-
<LangVersion>9</LangVersion>
9+
<LangVersion>10</LangVersion>
1010
</PropertyGroup>
1111

1212
</Project>

tools/example-templates/code-in-main/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>annotations</Nullable>
77
<AssemblyName>$example-name</AssemblyName>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9-
<LangVersion>9</LangVersion>
9+
<LangVersion>10</LangVersion>
1010
</PropertyGroup>
1111

1212
</Project>

tools/example-templates/code-in-partial-class/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<AssemblyName>$example-name</AssemblyName>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
<Nullable>annotations</Nullable>
9-
<LangVersion>9</LangVersion>
9+
<LangVersion>10</LangVersion>
1010
</PropertyGroup>
1111

1212
</Project>

tools/example-templates/standalone-console-without-using/Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net6.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>disable</Nullable>
8+
<LangVersion>10</LangVersion>
89
<AssemblyName>$example-name</AssemblyName>
910
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1011
<Nullable>annotations</Nullable>

tools/example-templates/standalone-console/Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net6.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>disable</Nullable>
8+
<LangVersion>10</LangVersion>
89
<AssemblyName>$example-name</AssemblyName>
910
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1011
<Nullable>annotations</Nullable>

tools/example-templates/standalone-lib-without-using/Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<AssemblyName>$example-name</AssemblyName>
7+
<LangVersion>10</LangVersion>
78
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
89
<Nullable>annotations</Nullable>
910
</PropertyGroup>

tools/example-templates/standalone-lib/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>$example-name</AssemblyName>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<Nullable>annotations</Nullable>
8-
<LangVersion>9</LangVersion>
8+
<LangVersion>10</LangVersion>
99
</PropertyGroup>
1010

1111
</Project>

0 commit comments

Comments
 (0)