Tests should restore a specific version of Microsoft.NETCore.DotNetAppHost, and not the highest version available on MyGet
Steps to reproduce
Restore Microsoft.NETCore.DotNetAppHost package, which is needed for tests located at /opt/code/TestAssets/TestProjects
This can be by running build.sh or build.cmd.
Expected behavior
Version matching should not be *. Rather should match a specific version. For example, 2.0.0-preview1-002042-00
Actual behavior
Restores the highest version matching 2.0.0-preview1-*
Refer to https://github.com/dotnet/core-setup/blob/master/TestAssets/TestProjects/LightupClient/project.json
Environment data
FYI @chcosta @weshaggard
I think the issue is restoring "Microsoft.NETCore.App", not DotNetAppHost specifically. The tests reference Microsoft.NETCore.App and then that package pulls in its dependencies , which include DotNetAppHost
The * enables referencing the version to be restored that built during the build. Thus, it cannot be the specific version.
CC @eerhardt @ramarag
Yes but once we move to PackageReference vs project.json we should directly reference the specific version we are building to eliminate the trouble we have with the * versioning.
Yes, the main issue here is that the tests need to reference the version of the product that was just built. This was not as feasible in project.json world since you couldn't use parameters.
I agree with @weshaggard that moving to MSBuild will help this issue.
Thanks for letting me know about this. I was just banging my head against the wall trying to figure out some problems related to this.