Philip T.
Philip T.

Reputation: 29

How to disable CS1514 in Visual Studio 2022 preview

I'd like to know if there is a way yet to disable the CS1514 Error Warning for Visual Studio 2022 Preview.

Beginning with C#10.0 (https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/namespaces) namespaces can be declared like this:

namespace SampleNamespace;

without braces but visual studio 2022 preview still shows this as an error. I understand that this is a new feature but is there a way to disable the warning for this, like #pragma warning disable or something like that?

Upvotes: 0

Views: 1943

Answers (1)

Philip T.
Philip T.

Reputation: 29

I used an older Version of 2022 Preview. I'm now using the latest RC Version. This resolved this problem for me, thanks @PanagiotisKanavos for the hint.

Upvotes: 1

Related Questions