Skip to content

Commit 25151fb

Browse files
committed
Fixes
1 parent 6f3ec9c commit 25151fb

File tree

9 files changed

+28
-0
lines changed

9 files changed

+28
-0
lines changed

src/DataProtection/DataProtection/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/DataProtection/Extensions/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/DataProtection/StackExchangeRedis/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/Features/JsonPatch/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/FileProviders/Embedded/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/ProjectTemplates/Web.ProjectTemplates/content/Components-CSharp/Pages/Counter.razor

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
@page "/counter"
2+
@*#if UseServer && !UseClient -->
3+
@attribute [RenderModeServer]
4+
##endif*@
5+
@*#if !UseServer && UseClient -->
6+
@attribute [RenderModeWebassembly]
7+
##endif*@
8+
@*#if UseServer && UseClient -->
9+
@attribute [RenderModeAuto]
10+
##endif*@
211

312
<PageTitle>Counter</PageTitle>
413

src/ProjectTemplates/Web.ProjectTemplates/content/Components-CSharp/Program.Server.Main.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ public static void Main(string[] args)
88
var builder = WebApplication.CreateBuilder(args);
99

1010
// Add services to the container.
11+
#if (!UseServer && !UseWasm)
1112
builder.Services.AddRazorComponents();
13+
#else
14+
builder.Services.AddRazorComponents()
15+
#if (UseServer && UseClient)
16+
.AddServerComponents()
17+
.AddWebassemblyComponents();
18+
#elif(UseServer)
19+
.AddServerComponents();
20+
#elif(UseClient)
21+
.AddWebassemblyComponents();
22+
#endif
23+
#endif
1224

1325
var app = builder.Build();
1426

src/SignalR/common/Protocols.MessagePack/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

src/SignalR/common/Protocols.NewtonsoftJson/src/CompatibilitySuppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
23
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
<Suppression>
45
<DiagnosticId>CP1002</DiagnosticId>

0 commit comments

Comments
 (0)