Address a few more nits (#378)
- avoid repeated NuGet.exe downloads - remove extra bits in modern file versions before parsing - suppress warnings about targeting `netcoreapp2.1`
This commit is contained in:
Родитель
1e2a82c42c
Коммит
8515e0bedd
|
@ -9,5 +9,8 @@
|
|||
analyzers, which run during build. Refer to https://aka.ms/fxcopanalyzers to migrate to FxCop analyzers."
|
||||
-->
|
||||
<SuppressLegacyCodeAnalysisDeprecatedWarning>true</SuppressLegacyCodeAnalysisDeprecatedWarning>
|
||||
<!-- Workaround continued use of netcoreapp2.1; suppress the NETSDK1138 warning. -->
|
||||
<CheckEolTargetFramework>false</CheckEolTargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -48,6 +48,11 @@
|
|||
if (versionInfo != null && versionInfo.ProductVersion != null)
|
||||
{
|
||||
toParse = versionInfo.ProductVersion;
|
||||
int index = toParse.IndexOfAny(new[] {'-', '+'});
|
||||
if (index > 0)
|
||||
{
|
||||
toParse = toParse.Substring(0, index);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче