runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Tests should restore a specific version of Microsoft.NETCore.DotNetAppHost, and not the highest version available on MyGet

Open ravimeda opened this issue 9 years ago • 7 comments

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

ravimeda avatar Apr 20 '17 18:04 ravimeda

FYI @chcosta @weshaggard

ravimeda avatar Apr 20 '17 18:04 ravimeda

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

chcosta avatar Apr 20 '17 18:04 chcosta

The * enables referencing the version to be restored that built during the build. Thus, it cannot be the specific version.

gkhanna79 avatar Apr 20 '17 20:04 gkhanna79

CC @eerhardt @ramarag

gkhanna79 avatar Apr 20 '17 20:04 gkhanna79

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.

weshaggard avatar Apr 20 '17 21:04 weshaggard

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.

eerhardt avatar Apr 20 '17 21:04 eerhardt

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.

mellinoe avatar May 02 '17 02:05 mellinoe