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
For RC1 applications and test projects should still target dnx4x and dnxcore50 and don't need to change at all. Anything that has a Program.Main or Startup.cs is considered an application.
Only _class libraries_ should change to target net4x and dotnet5.x. For class libraries the recommended conversion steps are:
In project.json:
Change dnx4x to net4x (e.g. dnx451 to net451)
Change dnxcore50 to dotnet5.4
And in your CS files:
Change #if DNX451 to #if NET451
Change #if DNXCORE50 to #if DOTNET5_4
Example
Here's what a project.json file used to look like:
What is it?
These are a new, simpler way of targeting versions of .NET. More information here https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/standard-platform.md
Action required
For RC1 applications and test projects should still target
dnx4x
anddnxcore50
and don't need to change at all. Anything that has aProgram.Main
orStartup.cs
is considered an application.Only _class libraries_ should change to target
net4x
anddotnet5.x
. For class libraries the recommended conversion steps are:In
project.json
:dnx4x
tonet4x
(e.g.dnx451
tonet451
)dnxcore50
todotnet5.4
And in your CS files:
#if DNX451
to#if NET451
#if DNXCORE50
to#if DOTNET5_4
Example
Here's what a
project.json
file used to look like:And here's what to change it to:
And in your CS files if you had:
Change that to:
The text was updated successfully, but these errors were encountered: