.NET Core????????
???????????? ???????[ 2016/5/17 11:12:05 ] ??????????????????? .NET
????.NET Core ????????(dotnet publish) ?????譎?.NET Core SDK?????????С???潲????.NET Core ??VSCode ??????????????????????dotnet publish????
????.NET Core and ASP.NET Core 1.0 RC2 runtime and libraries ???????????????.NET Core and ASP.NET Core 1.0 RTM (release) runtime and libraries ???μ??????
????https://blogs.msdn.microsoft.com/dotnet/2016/05/06/net-core-rc2-improvements-schedule-and-roadmap/
????????????
?????????????????
????Visual Basic .NET
{
"version": "1.0.0-*"??
"buildOptions": {
"emitEntryPoint": true
}??
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform"?? //???
"version": "1.0.0-rc2-*"
}
}??
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}??
"runtimes":{//????runtime
"win7-x64": { }??
"win7-x86": { }??
"osx.10.10-x64": { }??
"osx.10.11-x64": { }??
"ubuntu.14.04-x64":{ }
}
}
???????NuGet.Config
????Visual Basic .NET
xml version="1.0" encoding="utf-8"?>
configuration>
packageSources>
clear />
add key="AspNetCI" value="https://www.myget.org/F/aspnetcirelease/api/v3/index.json" />
add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
packageSources>
configuration>
dotnet restore
?????????????????????
????Windows:
??????????????? dotnet publish ???? win7-x64 ??
?????????λ?? win7-x64publish ????У??????????? dotnethello.exe ?????譎?.netcore sdk ??
????Ubuntu:
???????????????linux ubuntu ?????? runtime ??
????dotnet publish -r ubuntu.14.04-x64
??????????????(ubuntu.14.04-x64/publish)??????ubuntu???
????????????У?????????.netcore sdk?????.netcore?????????????
????https://github.com/dotnet/cli/blob/rel/1.0.0/Documentation/cli-prerequisites.md
????Ubuntu distributions require the following libraries installed:
????· libunwind8
????· libunwind8-dev
????· gettext
????· libicu-dev
????· liblttng-ust-dev
????· libcurl4-openssl-dev
????· libssl-dev
????· uuid-dev
????· unzip
??????????????μ???????dotnethello ???ú?????????? ./dotnethello
????Mac OS:
???????mac os ????????osx runtime??
????dotnet publish -r osx.10.10-x64
?????? osx.10.10-x64/publish ??????mac os ??
????OS X ??????libssl
????OS X requires the following libraries and versions installed:
????libssl 1.1
???????dotnethello
???????????????譎?.NET Core SDK ????????.NET Core ??ó????????.NET Core ??????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11