File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
22
<ItemGroup >
23
23
<Compile Include =" $(MSBuildThisFileDirectory)GlobalUsings.cs" />
24
24
</ItemGroup >
25
- <!-- HACK Various work arounds until Visual Studio works with latest language features -->
25
+ <!-- HACK Various workarounds that affect the CLI and the IDE -->
26
+ <PropertyGroup >
27
+ <!-- HACK Workaround warning in xunit collections -->
28
+ <NoWarn >$(NoWarn);CA2252</NoWarn >
29
+ </PropertyGroup >
30
+ <!-- HACK Various workarounds until Visual Studio works with latest language features -->
26
31
<PropertyGroup Condition =" '$(BuildingInsideVisualStudio)' == 'true'" >
27
32
<LangVersion >preview</LangVersion >
28
33
<!-- HACK Workaround for https://github.com/dotnet/roslyn/issues/54255 -->
Original file line number Diff line number Diff line change 3
3
4
4
namespace TodoApp
5
5
{
6
- #pragma warning disable CA2252 // HACK Appears to be a bug - investigate in a later preview build
7
6
[ CollectionDefinition ( Name ) ]
8
7
public sealed class HttpServerCollection : ICollectionFixture < HttpServerFixture >
9
8
{
10
9
public const string Name = "TodoApp HTTP server collection" ;
11
10
}
12
- #pragma warning restore CA2252
13
11
}
Original file line number Diff line number Diff line change 3
3
4
4
namespace TodoApp
5
5
{
6
- #pragma warning disable CA2252 // HACK Appears to be a bug - investigate in a later preview build
7
6
[ CollectionDefinition ( Name ) ]
8
7
public sealed class TodoAppCollection : ICollectionFixture < TodoAppFixture >
9
8
{
10
9
public const string Name = "TodoApp server collection" ;
11
10
}
12
- #pragma warning restore CA2252
13
11
}
You can’t perform that action at this time.
0 commit comments