Resolving warnings and treating warnings as errors in WinUI project. (#824)
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Wino.Core.SourceGeneration.Translator
|
||||
|
||||
// Get the JSON schema and track changes
|
||||
var jsonSchema = context.AdditionalTextsProvider
|
||||
.Where(static file => file.Path.EndsWith("en_US\\resources.json"))
|
||||
.Where(static file => file.Path.Replace("\\", "/").EndsWith("en_US/resources.json", StringComparison.OrdinalIgnoreCase))
|
||||
.Select((text, _) => (text, text.GetText()))
|
||||
.Collect()
|
||||
.WithTrackingName("JsonSchema");
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
||||
|
||||
Reference in New Issue
Block a user