Skip to content

Commit 48836af

Browse files
committed
Align #:property Name=Value with RC syntax
The final version is with an = sign. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives
1 parent ba753a9 commit 48836af

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ specified per file:
3434

3535
```csharp
3636
37-
#:property ImplicitUsings true
38-
#:property Nullable enable
37+
#:property ImplicitUsings=true
38+
#:property Nullable=enable
3939

4040
using Humanizer;
4141

src/Demo/Humanizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#:property ImplicitUsings true
2-
#:property Nullable enable
1+
#:property ImplicitUsings=true
2+
#:property Nullable=enable
33
#:package Humanizer@2.14.1
44

55
using Humanizer;

src/Demo/Mcp.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#:property Title LaTeX to Image MCP
2-
#:property Version 0.5.0
1+
#:property Title=LaTeX to Image MCP
2+
#:property Version=0.5.0
33
#:package Smith@0.2.5
44
#:package DotNetConfig.Configuration@1.2.*
55
#:package ModelContextProtocol@0.3.0-preview.*

src/SmallSharp/EmitTargets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class EmitTargets : Task
1515
{
1616
static readonly Regex sdkExpr = new(@"^#:sdk\s+([^@]+?)(@(.+))?$");
1717
static readonly Regex packageExpr = new(@"^#:package\s+([^@]+)@(.+)$");
18-
static readonly Regex propertyExpr = new(@"^#:property\s+([^\s]+)\s+(.+)$");
18+
static readonly Regex propertyExpr = new(@"^#:property\s+([^=]+)=(.+)$");
1919

2020
[Required]
2121
public required ITaskItem StartupFile { get; set; }

0 commit comments

Comments
 (0)