Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Oct 12, 2023
1 parent 2711105 commit 4f54e8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
}
],
"cSpell.words": [
"langversion",
"Preprocess",
"reimplementation"
"reimplementation",
"Xunit"
]
}
3 changes: 2 additions & 1 deletion Mono.TextTemplating.Roslyn/RoslynCodeCompiler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -102,7 +103,7 @@ CodeCompilerResult CompileFileInternal (
var startLinePosition = location.StartLinePosition;
var endLinePosition = location.EndLinePosition;
return new CodeCompilerError {
Message = x.GetMessage (),
Message = x.GetMessage (CultureInfo.CurrentCulture),
Column = startLinePosition.Character,
Line = startLinePosition.Line,
EndLine = endLinePosition.Line,
Expand Down
6 changes: 4 additions & 2 deletions Mono.TextTemplating/Mono.TextTemplating.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@
<PackageValidationBaselineVersion>2.2.1</PackageValidationBaselineVersion>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<NeutralLanguage>en-US</NeutralLanguage>
<!-- ignore the _._ files that suppress compat targets in newer frameworks -->
<NoWarn>$(NoWarn);NU5129</NoWarn>
</PropertyGroup>

<ItemGroup>
<!-- limit to 6.0 so that the MSBuild task can load on .NET 6.0 -->
<PackageReference Include="System.CodeDom" Version="6.0.0" Condition="'$(TargetFramework)'!='net472'" />
<None Include="readme.md" Pack="true" PackagePath="\" />
<None Include="package\Mono.TextTemplating.targets" Pack="true" PackagePath="buildTransitive\net461\Mono.TextTemplating.targets" />
<None Include="package\Mono.TextTemplating.targets" Pack="true" PackagePath="buildTransitive\net472\_._" />
<None Include="package\_._" Pack="true" PackagePath="buildTransitive\net472\_._" />
<None Include="package\Mono.TextTemplating.targets" Pack="true" PackagePath="buildTransitive\netcoreapp2.0\Mono.TextTemplating.targets" />
<None Include="package\Mono.TextTemplating.targets" Pack="true" PackagePath="buildTransitive\net6.0\_._" />
<None Include="package\_._" Pack="true" PackagePath="buildTransitive\net6.0\_._" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 4f54e8a

Please sign in to comment.