Skip to content
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

NETCoreCheck - Add support for specifying roll forward policy #82

Closed
MSLukeWest opened this issue Jan 12, 2021 · 1 comment
Closed

NETCoreCheck - Add support for specifying roll forward policy #82

MSLukeWest opened this issue Jan 12, 2021 · 1 comment
Assignees

Comments

@MSLukeWest
Copy link
Contributor

Right now the temporary runtime config files created and loaded by NETCoreCheck never have any value specified for the roll forward policy, which limits it's usefulness for determining whether or not a particular .NET app will be able to run. We should add a third parameter to NETCoreCheck for the roll forward policy. For example, running:

NETCoreCheck.exe Microsoft.WindowsDesktop.App 3.1.0 LatestMajor

Should internally create a runtime config file that looks like this:

"runtimeOptions": {
  **"rollForward": "LatestMajor",**
  "framework": {
    "name": "Microsoft.WindowsDesktop.App",
    "version": "3.1.0"
  }
}

An example difference is that if this were run on a machine with just the 5.0.x Windows Desktop runtime the check would now pass.

For more information on roll forward policies see dotnet/docs#12237

@MSLukeWest
Copy link
Contributor Author

Fixed in the 6.0.0-preview.1.21179.1 version of the Microsoft.NET.Tools.NETCoreCheck NuGet packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants