Repository navigation
[WIP]Make TestFx repo CPS Based - #411
Mayank Bansal (mayankbansal018) wants to merge 13 commits into
Conversation
|
dotnet bot (@dotnet-bot) test this please |
| <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.
Why did we separate them?
| <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.
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.
Why a conditional package reference here?
|
|
||
| <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.
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.
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.
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.
Will discuss on where to keep resources offline..
| var testAssetPath = | ||
| Path.Combine( | ||
| Directory.GetParent(Directory.GetParent(Directory.GetParent(currentAssemblyPath).FullName).FullName).FullName, | ||
| "artifacts", |
|
Mayank Bansal (@mayankbansal018) What is the status of this PR? |
|
Mayank Bansal (@mayankbansal018) : When are we planning to push this PR in? This issue #481 will also get resolved as part of this PR. |
|
Jayarani garg (@jayaranigarg) , lets bring this in next sprint planning, the work is almost done, validations do remain. |
|
Mayank Bansal (@mayankbansal018) are there any news about this PR? |
|
Carlos Parra (@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. |
|
Mayank Bansal (@mayankbansal018) i understand. in any case, if questions arise on the road, i'll be commenting here :) |
|
Carlos Parra (@parrainc), great to hear this, I've added you as collaborator, on my from, please checkout branch 👍 😃 |
|
Mayank Bansal (@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. |
|
Carlos Parra (@parrainc) why upgrade to a version higher than needed? The higher the version, the fewer the platforms can use it |
|
Carlos Parra (@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 |
|
Mayank Bansal (@mayankbansal018) quick update:
and the same for PlatformServices.Interface.csproj and PlatformServices.Desktop.csproj. Locally, I included the Any thought? |
|
Carlos Parra (@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. |
|
Carlos Parra (@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 (@dotnet-bot) test Windows / Debug Build please |
|
Mayank Bansal (@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. |
|
Carlos Parra (@parrainc) I'll try to login to the CI machines, & see what is causing this. |
Things to verify before pushing this: