Browse Source

Cleaned up some warnings in IPA.exe

pull/94/head
Anairkoen Schno 3 years ago
parent
commit
05c0353eba
Signed by: DaNike GPG Key ID: BEFB74D5F3FC4387
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Common.props
  2. +1
    -1
      IPA/Program.cs

+ 1
- 1
Common.props View File

@ -5,7 +5,7 @@
<!--<PathMap>$(SolutionDir)=C:\</PathMap>--> <!--<PathMap>$(SolutionDir)=C:\</PathMap>-->
<DebugType>portable</DebugType> <DebugType>portable</DebugType>
<LangVersion>9</LangVersion> <LangVersion>9</LangVersion>
<NoWarn>CA1031;CA1305</NoWarn>
<NoWarn>CA1031;CA1305;CA1303</NoWarn>
<Nullable>disable</Nullable> <Nullable>disable</Nullable>
<WarningsAsErrors>$(WarningsAsErrors);nullable</WarningsAsErrors> <WarningsAsErrors>$(WarningsAsErrors);nullable</WarningsAsErrors>
<AnalysisMode>AllEnabledByDefault</AnalysisMode> <AnalysisMode>AllEnabledByDefault</AnalysisMode>


+ 1
- 1
IPA/Program.cs View File

@ -92,7 +92,7 @@ namespace IPA
} }
AppDomain.CurrentDomain.AssemblyResolve += AssemblyLibLoader; AppDomain.CurrentDomain.AssemblyResolve += AssemblyLibLoader;
var argExeName = Arguments.CmdLine.PositionalArgs.FirstOrDefault(s => s.EndsWith(".exe"));
var argExeName = Arguments.CmdLine.PositionalArgs.FirstOrDefault(s => s.EndsWith(".exe", StringComparison.OrdinalIgnoreCase));
argExeName ??= new DirectoryInfo(Directory.GetCurrentDirectory()).GetFiles() argExeName ??= new DirectoryInfo(Directory.GetCurrentDirectory()).GetFiles()
.FirstOrDefault(o => o.Extension == ".exe" && o.FullName != Assembly.GetEntryAssembly()!.Location) .FirstOrDefault(o => o.Extension == ".exe" && o.FullName != Assembly.GetEntryAssembly()!.Location)
?.FullName; ?.FullName;


Loading…
Cancel
Save