You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We decided to move towards unification of entry point semantics with desktop CLR.
Breaking changes in RC2:
Removed support for async/Task<>Main.
Removed support for instantiating of entry point type (Program).
The Main method should be public static void Main or public static int Main.
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.
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.
The text was updated successfully, but these errors were encountered:
We decided to move towards unification of entry point semantics with desktop CLR.
Breaking changes in RC2:
async/Task<>
Main
.The
Main
method should bepublic static void Main
orpublic static int Main
.Program
class's constructor and Main method.Use
PlatformServices
andCompilationServices
instead.To get to
IApplicationEnvironment, IRuntimeEnvironment, IAssemblyLoaderContainer, IAssemblyLoadContextAccessor, ILibraryManager
use
Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default
static object.To get to
ILibraryExporter, ICompilerOptionsProvider
use theMicrosoft.Extensions.CompilationAbstractions.CompilationServices.Default
static object.CallContextServiceLocator
. UsePlatformServices
andCompilationServices
instead.Same as above.
NOTE:
CompilationServices
andPlatformServices
were added in RC1 so you should start using them to avoid breaking when moving to RC2.The text was updated successfully, but these errors were encountered: