Skip to content

Commit

Permalink
changed to string literal and teseted with example
Browse files Browse the repository at this point in the history
  • Loading branch information
CodySchrank committed Jul 24, 2019
1 parent f27929a commit ce443c9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<!-- <PackageReference Include="MTT" Version="0.5.8-*" PrivateAssets="All" /> -->
<PackageReference Include="MTT" Version="0.5.8"/>
<!-- <PackageReference Include="MTT" Version="0.5.9-*" PrivateAssets="All" /> -->
<PackageReference Include="MTT" Version="0.5.9"/>
</ItemGroup>

<Target Name="ConvertMain" BeforeTargets="PrepareForBuild">
Expand Down
4 changes: 4 additions & 0 deletions Example/Resources/Vehicles/Vehicle.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using System.Collections.Generic;
using Example.Resources.Parts;

//empty preprocessor directive with conflicting keyword
#if enum
#endif

namespace Example.Resources.Vehicles
{
public abstract class Vehicle : Entity
Expand Down
2 changes: 1 addition & 1 deletion Source/MTT/ConvertMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public static bool StrictContains(this string str, string match)

public static bool IsPreProcessorDirective(this string str)
{
return Regex.IsMatch(str, "^#\w+");
return Regex.IsMatch(str, @"^#\w+");
}
}
}
2 changes: 1 addition & 1 deletion Source/MTT/MTT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Change the default location where NuGet will put the build output -->
<BuildOutputTargetFolder>tasks</BuildOutputTargetFolder>
<!-- set the version automatically -->
<VersionPrefix>0.5.8</VersionPrefix>
<VersionPrefix>0.5.9</VersionPrefix>
<!--
The suffix is required because nuget will only update if the package is newer, this tricks it.
note: 0.1.5 has precedence over 0.1.5-build123412341
Expand Down

0 comments on commit ce443c9

Please sign in to comment.