-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MSBuild version mismatch with new SDKs #1883
Changes from all commits
adad8a6
d7e2287
dcfc6a0
7c5fc28
876f313
57b95c8
c50a051
a834a29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,10 +57,10 @@ | |
|
||
<PackageReference Update="Newtonsoft.Json" Version="12.0.3" /> | ||
|
||
<PackageReference Update="Nuget.Packaging" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="Nuget.Packaging.Core" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="Nuget.ProjectModel" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="Nuget.Versioning" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="NuGet.Packaging" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="NuGet.Packaging.Core" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="NuGet.ProjectModel" Version="$(NuGetPackageVersion)" /> | ||
<PackageReference Update="NuGet.Versioning" Version="$(NuGetPackageVersion)" /> | ||
Comment on lines
+60
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This only seemed to be an issue in the Linux build surprisingly |
||
|
||
<PackageReference Update="OmniSharp.Extensions.LanguageServer" Version="0.18.0-beta0003" /> | ||
<PackageReference Update="OmniSharp.Extensions.LanguageProtocol.Testing" Version="0.18.0-beta0003" /> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "3.1.302" | ||
"version": "3.1.401" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,15 +148,6 @@ public override async Task<GetTestStartInfoResponse> GetTestStartInfoAsync(strin | |
VerifyTestFramework(testFrameworkName); | ||
|
||
var testCases = await DiscoverTestsAsync(new string[] { methodName }, runSettings, targetFrameworkVersion, cancellationToken); | ||
|
||
SendMessage(MessageType.GetTestRunnerProcessStartInfoForRunSelected, | ||
new | ||
{ | ||
TestCases = testCases, | ||
DebuggingEnabled = true, | ||
RunSettings = LoadRunSettingsOrDefault(runSettings, targetFrameworkVersion) | ||
}); | ||
Comment on lines
-152
to
-158
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have been removed when I extracted out the GetTestRunningProcessStartInfo method |
||
|
||
var testStartInfo = await GetTestRunnerProcessStartInfo(testCases, debuggingEnabled: false, runSettings, targetFrameworkVersion, cancellationToken); | ||
|
||
return new GetTestStartInfoResponse | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "3.1.302" | ||
"version": "3.1.401" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using OmniSharp.Services; | ||
using NuGet.Versioning; | ||
using OmniSharp.Services; | ||
using TestUtility; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
@@ -7,9 +8,20 @@ namespace OmniSharp.Tests | |
{ | ||
public class DotNetCliServiceFacts : AbstractTestFixture | ||
{ | ||
private const string DotNetVersion = "3.1.401"; | ||
private int Major { get; } | ||
private int Minor { get; } | ||
private int Patch { get; } | ||
private string Release { get; } | ||
|
||
public DotNetCliServiceFacts(ITestOutputHelper output) | ||
: base(output) | ||
{ | ||
var version = SemanticVersion.Parse(DotNetVersion); | ||
Major = version.Major; | ||
Minor = version.Minor; | ||
Patch = version.Patch; | ||
Release = version.Release; | ||
Comment on lines
+11
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should make future SDK updates easier since the version string can be updated with a replace all. |
||
} | ||
|
||
[Fact] | ||
|
@@ -21,10 +33,10 @@ public void GetVersion() | |
|
||
var version = dotNetCli.GetVersion(); | ||
|
||
Assert.Equal(3, version.Major); | ||
Assert.Equal(1, version.Minor); | ||
Assert.Equal(302, version.Patch); | ||
Assert.Equal("", version.Release); | ||
Assert.Equal(Major, version.Major); | ||
Assert.Equal(Minor, version.Minor); | ||
Assert.Equal(Patch, version.Patch); | ||
Assert.Equal(Release, version.Release); | ||
} | ||
} | ||
|
||
|
@@ -37,10 +49,10 @@ public void GetInfo() | |
|
||
var info = dotNetCli.GetInfo(); | ||
|
||
Assert.Equal(3, info.Version.Major); | ||
Assert.Equal(1, info.Version.Minor); | ||
Assert.Equal(302, info.Version.Patch); | ||
Assert.Equal("", info.Version.Release); | ||
Assert.Equal(Major, info.Version.Major); | ||
Assert.Equal(Minor, info.Version.Minor); | ||
Assert.Equal(Patch, info.Version.Patch); | ||
Assert.Equal(Release, info.Version.Release); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no NuGet packages for these but we can still copy them from the Mono MSBuild folder.