Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8bd933f

Browse filesBrowse files
committed
fixed version
1 parent 570e88b commit 8bd933f
Copy full SHA for 8bd933f

File tree

2 files changed

+6
-1
lines changed
Filter options

2 files changed

+6
-1
lines changed

‎src/Dotnet.Script.Core/Versioning/VersionProvider.cs

Copy file name to clipboardExpand all lines: src/Dotnet.Script.Core/Versioning/VersionProvider.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ VersionInfo ParseTagName(string json)
4343
public VersionInfo GetCurrentVersion()
4444
{
4545
var versionAttribute = typeof(VersionProvider).Assembly.GetCustomAttributes<AssemblyInformationalVersionAttribute>().Single();
46-
var version = Version.Parse(versionAttribute.InformationalVersion);
4746
return new VersionInfo(versionAttribute.InformationalVersion, isResolved:true);
4847
}
4948
}

‎src/Dotnet.Script.Tests/EnvironmentTests.cs

Copy file name to clipboardExpand all lines: src/Dotnet.Script.Tests/EnvironmentTests.cs
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ public class EnvironmentTests
1515
public void ShouldPrintVersionNumber(string versionFlag)
1616
{
1717
var result = ScriptTestRunner.Default.Execute(versionFlag);
18+
19+
if (result.exitCode != 0)
20+
{
21+
Console.WriteLine(result.output);
22+
}
23+
1824
Assert.Equal(0, result.exitCode);
1925
// TODO test that version appears on first line of output!
2026
Assert.Matches(@"^[0-9]+(\.[0-9]+){2}$", result.output);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.