-
Notifications
You must be signed in to change notification settings - Fork 253
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
[WIP]Make TestFx repo CPS Based #411
Conversation
@dotnet-bot test this please |
@@ -3,7 +3,7 @@ | |||
<PropertyGroup> | |||
<TestFxRoot Condition="$(TestFxRoot) == ''">..\..\..\</TestFxRoot> | |||
</PropertyGroup> | |||
<Import Project="$(TestFxRoot)scripts\build\TestFx.Settings.targets" /> | |||
<Import Project="$(TestFxRoot)scripts\build\TestFx.Settings.Templates.targets" /> |
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.
Why did we separate them?
@@ -6,4 +6,6 @@ | |||
<package id="MSTest.Internal.TestFx.Localized.Documentation" version="1.0.0-build-20170420-1" /> | |||
<package id="vswhere" version="2.0.2" /> | |||
<package id="Pdb2Pdb" version="1.1.0-beta1-62316-01" /> | |||
<package id="Microsoft.TestPlatform" version="15.5.0" /> |
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.
Shouldn't we use 15.7 instead?
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' "> | ||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="11.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' "> |
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.
Why a conditional package reference here?
@@ -33,7 +32,7 @@ | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="11.0.0" /> | |||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="11.0.1" /> |
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.
what is the difference between 11.0 and 11.1?
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<TargetFrameworks>netstandard1.3;net45</TargetFrameworks> |
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.
why are we building this for net45?
<file src="Build\NetCore\MSTest.TestAdapter.props" target="build\netcoreapp1.0\" /> | ||
<file src="MSTest.CoreAdapter\netstandard1.3\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" target="build\netcoreapp1.0\" /> | ||
<file src="PlatformServices.Interface\netstandard1.3\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll" target="build\netcoreapp1.0\" /> | ||
<file src="MSTest.Core\netstandard1.1\Microsoft.VisualStudio.TestPlatform.TestFramework.dll" target="build\net45\" /> |
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.
Nit: build\netcoreapp1.0\
<file src="MSTest.CoreAdapter\ru\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll" target="\build\_common\ru" /> | ||
<file src="MSTest.CoreAdapter\tr\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll" target="\build\_common\tr" /> | ||
<!-- Resources --> | ||
<file src="MSTest.CoreAdapter\netstandard1.3\zh-Hans\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll" target="\build\_common\zh-Hans" /> |
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.
Will discuss on where to keep resources offline..
@@ -42,7 +42,6 @@ public ReflectionUtilityTests() | |||
var testAssetPath = | |||
Path.Combine( | |||
Directory.GetParent(Directory.GetParent(Directory.GetParent(currentAssemblyPath).FullName).FullName).FullName, | |||
"artifacts", |
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.
??
@mayankbansal018 What is the status of this PR? |
@mayankbansal018 : When are we planning to push this PR in? This issue #481 will also get resolved as part of this PR. |
@jayaranigarg , lets bring this in next sprint planning, the work is almost done, validations do remain. |
@mayankbansal018 are there any news about this PR? |
@parrainc , Unfortunately I've not been able to prioritize this task, due to other tasks that I've in hand. As per the last status of this PR, I had moved the project to CPS, & everything was running fine. I understand that there are a few bugs pending on this, because of which I would encourage if you would like to take this further, let me know if that would be possible, I would give you permission on my branch. |
@mayankbansal018 i understand. in any case, if questions arise on the road, i'll be commenting here :) |
@parrainc, great to hear this, I've added you as collaborator, on my from, please checkout branch 👍 😃 |
@mayankbansal018 quick question... is there a specific reason of why we are upgrading to netstandard 1.3 instead of a major version (i.e. 1.5, 1.6) or the latest one (2.0)? I'm not sure if latest or a different version than 1.3 is not fully compatible with some of the projects in the solution. If that's not the case then I'm just curious to know what could be done about it. |
@parrainc why upgrade to a version higher than needed? The higher the version, the fewer the platforms can use it |
@parrainc , as dotMorten mentioned, the lower the version for .net standard, the wider the range for platforms we can cover. For e.g. if we move to > NS1.4, then it won't work with UWP, & we would need to have separate build scripts to fix that. |
gotcha |
@mayankbansal018 quick update:
and the same for PlatformServices.Interface.csproj and PlatformServices.Desktop.csproj. Locally, I included the Any thought? |
@parrainc I'm not sure what is causing this issue. I'll however will do try to take a look at it over the weekend. |
@parrainc I just tried building this locally, & it worked fine. Were you able to build it locally or are you facing build issues locally as well? |
@dotnet-bot test Windows / Debug Build please |
@mayankbansal018 For me it builds locally in VS. In CLI throws me the error I pointed out above. Something i'm curious is the reason why is failing here. Check the details and looks like a type exists in two assemblies that is calling it. |
@parrainc I'll try to login to the CI machines, & see what is causing this. |
Things to verify before pushing this: