Skip to content

Moving towards unification of entry point semantics with desktop CLR #106

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

Open
pakrym opened this issue Nov 10, 2015 · 0 comments
Open

Moving towards unification of entry point semantics with desktop CLR #106

pakrym opened this issue Nov 10, 2015 · 0 comments

Comments

@pakrym
Copy link

pakrym commented Nov 10, 2015

We decided to move towards unification of entry point semantics with desktop CLR.

Breaking changes in RC2:

  1. Removed support for async/Task<> Main.
  2. Removed support for instantiating of entry point type (Program).

    The Main method should be public static void Main or public static int Main.
  3. Removed support for injecting dependencies into the Program class's constructor and Main method.
    Use PlatformServices and CompilationServices instead.

    To get to IApplicationEnvironment, IRuntimeEnvironment, IAssemblyLoaderContainer, IAssemblyLoadContextAccessor, ILibraryManager
    use Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default static object.

    To get to ILibraryExporter, ICompilerOptionsProvider use the Microsoft.Extensions.CompilationAbstractions.CompilationServices.Default static object.
  4. Removed support for CallContextServiceLocator. Use PlatformServices and CompilationServices instead.

    Same as above.

NOTE: CompilationServices and PlatformServices were added in RC1 so you should start using them to avoid breaking when moving to RC2.

@pakrym pakrym added this to the 1.0.0-rc2 milestone Nov 10, 2015
@aspnet aspnet locked and limited conversation to collaborators Nov 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant