Skip to content

Commit 1375d21

Browse files
committed
escape SP to underscore
1 parent 8a73cce commit 1375d21

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Smdn.MSBuild.DefineConstants.NETSdkApi/build/Smdn.MSBuild.DefineConstants.NETSdkApi.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ SPDX-License-Identifier: MIT
584584
.Replace('+', '_')
585585
.Replace(':', '_')
586586
.Replace('`', '_')
587+
.Replace(' ', '_')
587588
.ToUpperInvariant()
588589
)</Constant>
589590
</_NETSdkAvailableApiSymbol>

tests/Smdn.MSBuild.DefineConstants.NETSdkApi/Test.NETSTANDARD2_1_OR_GREATER+NETCOREAPP2_0_OR_GREATER+NET5_0_OR_GREATER.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
#if !SYSTEM_ARRAYSEGMENT_SLICE
55
#error "SYSTEM_ARRAYSEGMENT_SLICE is not defined"
66
#endif
7+
8+
#if !SYSTEM_COLLECTIONS_GENERIC_DICTIONARY_REMOVE_TKEY_OUT_TVALUE
9+
#error "SYSTEM_COLLECTIONS_GENERIC_DICTIONARY_REMOVE_TKEY_OUT_TVALUE is not defined"
10+
#endif
711
#endif

0 commit comments

Comments
 (0)