Skip to content

Commit 8515e0b

Browse files
authored
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`
1 parent 1e2a82c commit 8515e0b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
analyzers, which run during build. Refer to https://aka.ms/fxcopanalyzers to migrate to FxCop analyzers."
1010
-->
1111
<SuppressLegacyCodeAnalysisDeprecatedWarning>true</SuppressLegacyCodeAnalysisDeprecatedWarning>
12+
<!-- Workaround continued use of netcoreapp2.1; suppress the NETSDK1138 warning. -->
13+
<CheckEolTargetFramework>false</CheckEolTargetFramework>
1214
</PropertyGroup>
15+
1316
</Project>

tools/WebStack.tasks.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
if (versionInfo != null && versionInfo.ProductVersion != null)
4949
{
5050
toParse = versionInfo.ProductVersion;
51+
int index = toParse.IndexOfAny(new[] {'-', '+'});
52+
if (index > 0)
53+
{
54+
toParse = toParse.Substring(0, index);
55+
}
5156
}
5257
else
5358
{

0 commit comments

Comments
 (0)