Added support for ManagedType and ManagedClass #737
Conversation
Added support for `ManagedType` and `ManagedMethod` into various classes. Also centralized TestPlarform version, and some refactoring.
78ae14f
to
e5ead2f
src/Adapter/PlatformServices.NetCore/PlatformServices.NetCore.csproj
Outdated
Show resolved
Hide resolved
|
LGTM with a few minor comments. It's encouraging to see that the addition of the two properties seems to be relatively simple. Of course, we still need to add support for parameter/argument sets. |
5419577
to
bb70540
49090bc
to
e60d779
|
Looks mostly good, I would review if #if NETCOREAPP1_1 || NETCOREAPP2_1 can be replaced witch check for just netcoreapp to help us in the future if we need to multitarget this further. |
| function Sync-PackageVersions { | ||
| $versionsFile = "$PSScriptRoot\build\TestFx.Versions.targets" | ||
|
|
||
| $versionsRegex = '(?mi)<(TestPlatformVersion.*?)>(.*?)<\/TestPlatformVersion>' |
nohwnd
Nov 24, 2020
•
Member
nit: Not sure what the ?mi option would do here. It is definitely case insensitive by default ( -split and -isplit is case insensitive, -csplit is case sensitive). And you are passing the whole file as one string (you used -Raw). If you have a strong reason I would like to know to learn.
nit: Not sure what the ?mi option would do here. It is definitely case insensitive by default ( -split and -isplit is case insensitive, -csplit is case sensitive). And you are passing the whole file as one string (you used -Raw). If you have a strong reason I would like to know to learn.
Haplois
Nov 24, 2020
Author
Member
In some (like test/E2ETests/Automation.CLI/packages.config) files we reference more than one package, this is to catch all references and update those.
In some (like test/E2ETests/Automation.CLI/packages.config) files we reference more than one package, this is to catch all references and update those.
nohwnd
Nov 24, 2020
Member
Looks like that is the default behavior of -replace:
PS > Get-Content ~/Desktop/abc.txt
abc
abc abcabc
abc
PS > (Get-Content ~/Desktop/abc.txt -Raw) -replace "abc", "ggg"
ggg
ggg gggggg
ggg
Looks like that is the default behavior of -replace:
PS > Get-Content ~/Desktop/abc.txt
abc
abc abcabc
abc
PS > (Get-Content ~/Desktop/abc.txt -Raw) -replace "abc", "ggg"
ggg
ggg gggggg
ggg
Haplois
Nov 24, 2020
Author
Member
I'll have another PR after this and move to use PackageReference instead of "NuGet.config" files. With that PR, I'll remove this logic too.
I'll have another PR after this and move to use PackageReference instead of "NuGet.config" files. With that PR, I'll remove this logic too.
microsoft/vstest#2611 needs to be merged, and published into the package repository before merging this PR.