Skip to content

VSTest targeting netstandard 2.0 - #2067

Merged
Vagisha Nidhi (vagisha-nidhi) merged 33 commits into
microsoft:masterfrom
vagisha-nidhi:ns2.0
Jul 10, 2019
Merged

VSTest targeting netstandard 2.0#2067
Vagisha Nidhi (vagisha-nidhi) merged 33 commits into
microsoft:masterfrom
vagisha-nidhi:ns2.0

Conversation

@vagisha-nidhi

@vagisha-nidhi Vagisha Nidhi (vagisha-nidhi) commented Jun 26, 2019

Copy link
Copy Markdown
Contributor

Related issue: #2073

Comment thread src/datacollector/datacollector.csproj Outdated
Comment thread scripts/build.ps1 Outdated
@cltshivash

Copy link
Copy Markdown
Contributor
}

can we remove this ?


Refers to: scripts/build.ps1:170 in f0e0007. [](commit_id = f0e0007, deletion_comment = False)

<TargetFrameworks>netstandard1.4;net451</TargetFrameworks>
<TargetFrameworks Condition=" '$(DotNetBuildFromSource)' == 'true' ">netstandard1.4</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks>
<TargetFrameworks Condition=" '$(DotNetBuildFromSource)' == 'true' ">netstandard2.0</TargetFrameworks>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this move into the TestPlatform.settings.targets ? Will prevent adding for every project

@cltshivash

Shiva Shankar (cltshivash) commented Jun 27, 2019

Copy link
Copy Markdown
Contributor
<Reference Include="Microsoft.CSharp" />

can we check why this differentiation is needed ?


Refers to: src/Microsoft.TestPlatform.CommunicationUtilities/Microsoft.TestPlatform.CommunicationUtilities.csproj:32 in f0e0007. [](commit_id = f0e0007, deletion_comment = False)

@cltshivash

Copy link
Copy Markdown
Contributor
  <Version>4.0.1</Version>

will these versions hold good or needs to be bumped up as well ?


Refers to: src/Microsoft.TestPlatform.Extensions.TrxLogger/Microsoft.TestPlatform.Extensions.TrxLogger.csproj:34 in f0e0007. [](commit_id = f0e0007, deletion_comment = False)

Comment thread scripts/build.ps1
</PackageReference>
<PackageReference Include="System.Reflection.TypeExtensions">
<Version>4.1.0</Version>
<Version>1.6.0</Version>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.6.0 [](start = 15, length = 5)

Do we bump up this version or remain at 1.3.0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it at 1.3.0 if it has netstandard2.0 support


In reply to: 301028228 [](ancestors = 301028228)

@vagisha-nidhi

Copy link
Copy Markdown
Contributor Author
<Reference Include="Microsoft.CSharp" />

Check if needed


Refers to: src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj:35 in ba48652. [](commit_id = ba48652, deletion_comment = True)

Comment thread src/package/nuspec/TestPlatform.ObjectModel.nuspec Outdated
Comment thread src/package/nuspec/TestPlatform.TranslationLayer.nuspec Outdated
Comment thread src/vstest.console/Processors/ResultsDirectoryArgumentProcessor.cs Outdated
@vagisha-nidhi

Vagisha Nidhi (vagisha-nidhi) commented Jul 8, 2019

Copy link
Copy Markdown
Contributor Author

?? Please check this

Refers to: test/TestAssets/SimpleTestProjectx86/SimpleTestProjectx86.csproj:12 in 4964d3b. [](commit_id = 4964d3b, deletion_comment = False)

Sarabjot Singh (@singhsarab) Seems normal when opened in VS.

@vagisha-nidhi Vagisha Nidhi (vagisha-nidhi) changed the title [Draft] VSTest targeting netstandard 2.0 VSTest targeting netstandard 2.0 Jul 8, 2019
@vagisha-nidhi

Copy link
Copy Markdown
Contributor Author
<Reference Include="Microsoft.CSharp" />

Check if needed

Refers to: src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj:35 in ba48652. [](commit_id = ba48652, deletion_comment = True)

Will take this up with net451 changes

throw new ArgumentException("Illegal characters in path.");
}

var di = new FileInfo(argument);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FileInfo [](start = 29, length = 8)

Keep it DirectoryInfo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with suggestions.

Please do make sure you have made all the changes requested. Removed netstandard1.4 references from test assets as well.

@vagisha-nidhi
Vagisha Nidhi (vagisha-nidhi) merged commit 9f0de74 into microsoft:master Jul 10, 2019
James Skimming (JSkimming) added a commit to JSkimming/Castle.Core.AsyncInterceptor that referenced this pull request Sep 20, 2019
It will become increasingly difficult to maintain since the tests can no longer target netcoreapp1.1 since microsoft/vstest#2067
@sharwell

Copy link
Copy Markdown
Contributor

This is super unfortunate. We have projects targeting netstandard1.x (test running on netcoreapp1.1), and this change means we can never update Microsoft.NET.Test.Sdk to any version newer than 16.1.1.

Sam Harwell (sharwell) added a commit to dotnet/roslyn-sdk that referenced this pull request Jul 29, 2020
Support for netcoreapp1.1 was removed in microsoft/vstest#2067 and
microsoft/vstest#2192, so we can no longer take updates to this package.
dotnet-maestro Bot added a commit to dotnet/roslyn-sdk that referenced this pull request Jul 29, 2020
[master] Update dependencies from dotnet/arcade
- Updates:
  - Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20117.3 to 5.0.0-beta.20374.1

 - Upadte xcopy-msbuild

 - Switch to Arcade UnitTest targets and props

 - Install the 3.1.0 runtime for test running

 - Use default test versions from Arcade

 - Work around implicit package reference warning

 - Set DOTNET_ROOT variable

 - Remove not working workaround for implicit package reference

 - Reference the XUnit Assert package

 - Lock to prior version of Microsoft.NET.Test.Sdk

Support for netcoreapp1.1 was removed in microsoft/vstest#2067 and
microsoft/vstest#2192, so we can no longer take updates to this package.
@nohwnd

Copy link
Copy Markdown
Member

Sam Harwell (@sharwell) Is it not possible to update to netcoreapp2.1, or any of the supported .NET Core versions?

@sharwell

Sam Harwell (sharwell) commented Jul 30, 2020

Copy link
Copy Markdown
Contributor

Jakub Jareš (@nohwnd) We use netcoreapp2.1 for testing our netstandard2.0 build. netcoreapp1.1 is a better representation of our intended support scenario.

@nohwnd

Copy link
Copy Markdown
Member

I am afraid we can't help you there 🙁 I suspect downgrading testhost to netcoreapp1.1 would be a significant effort. /cc Pavel Horak (@pavelhorak)

David Barbet (dibarbet) pushed a commit to dotnet/roslyn that referenced this pull request Aug 18, 2026
[master] Update dependencies from dotnet/arcade
- Updates:
  - Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20117.3 to 5.0.0-beta.20374.1

 - Upadte xcopy-msbuild

 - Switch to Arcade UnitTest targets and props

 - Install the 3.1.0 runtime for test running

 - Use default test versions from Arcade

 - Work around implicit package reference warning

 - Set DOTNET_ROOT variable

 - Remove not working workaround for implicit package reference

 - Reference the XUnit Assert package

 - Lock to prior version of Microsoft.NET.Test.Sdk

Support for netcoreapp1.1 was removed in microsoft/vstest#2067 and
microsoft/vstest#2192, so we can no longer take updates to this package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants