.NET Core 2.0.0 Preview 1
.NET Core 2.0.0 Preview 1 is available.
You can read about .NET Core 2.0.0 Preview 1 in the release notes and .NET blog announcement.
Please report any issues you find with .NET Core 2.0.0 Preview 1 here, either responding to this issue or creating a new issue.
Please note that this repo (dotnet/core) is not for filing product issues. Here are some repos where you can file an issue:
- dotnet/cli - for CLI tools and questions
- dotnet/corefx - for API issues and questions
- dotnet/coreclr - for runtime issues
- nuget/home - for NuGet questions and issues
About time! thanks team! and thanks to have updated the docker along with the release!
Visual Studio for Mac doesn't seem to be able to handle .NET Core 2.0, although the command-line tools do.
I have a netstandard2.0 library and a netcoreapp2.0 executable which references it. dotnet build works fine, but Visual Studio for Mac gives the following error:
/Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/msbuild/15.0/bin/Sdks/Microsoft.NET.Sdk/build/Microsoft.NET.Sdk.Common.targets(73,5): error : Project '/Users/yaakov/Development/Projects/ValveKeyValue/ValveKeyValue/ValveKeyValue/ValveKeyValue.csproj' targets '.NETStandard,Version=v2.0'. It cannot be referenced by a project that targets '.NETCoreApp,Version=v2.0'.
Which repo, if any, is the appropriate place for this?
Hey @yaakov-h, the VS for Mac team has a few items relating to .NET Core 2.0 in this gist.
I would like to verify that we can install .NET Core 2.0 Preview 1 on the latest version of Visual Studio 2017 (15.2)? I'm not referring to VS 2017 Preview, which of course would work. And if so: will this allow us to build .netstandard 2.0 class libraries?, again, on the current version (15.2) of Visual Studio 2017? None of the posts have clarified this, and maybe it seems obvious that the answer is yes, but things are so convoluted about what drives what, I would like verification first. I do understand that this is not marked as production ready.
THANKS for all the terrific work! So awesome, been waiting for this day for literally years now ...
.NET Core 2.0 doesn't work with 15.2. It requires 15.3 and later. There are two reasons for that:
- VS 15.0 (and .1 and .2) was hard-coded to use .NET Core 1.x. VS 15.3 includes an extensibility model for .NET Core so that VS is much more flexible to supporting .NET Core SDK versions (which in turn decides runtime versions).
- Many VS improvements were added to make VS work better for .NET Core. These are more helpful than fully required, but it's also the scenario we tested, so it's important to use 15.3.
I got this when trying to install.
Package: dotnet-dev-osx-x64.2.0.0-preview1-005977.pkg
Date/Time: 2017-05-12 22:24:04.210 OS Version: Mac OS X 10.10.5 (14F2109) Report Version: 11 Anonymous UUID: 16C4099C-F1DE-BEC7-DBE6-92EFF1E2FC85
Sleep/Wake UUID: BD31F401-9753-4763-8D59-9E786A95DC92
Time Awake Since Boot: 320000 seconds Time Since Wake: 18000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000
Dyld Error Message: Symbol not found: _clock_gettime Referenced from: /usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.0.0-preview1-002111-00/libcoreclr.dylib (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld 0x00007fff6e955075 dyld_fatal_error + 1
1 dyld 0x00007fff6e9582a8 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 180
2 libdyld.dylib 0x00007fff869cf3ba dyld_stub_binder + 282
3 ??? 0x000000010ddaa008 0 + 4527398920
4 libcoreclr.dylib 0x000000010da9657d EEStartupHelper(tagCOINITEE) + 333
5 libcoreclr.dylib 0x000000010da95f15 EEStartup(tagCOINITEE) + 325
6 libcoreclr.dylib 0x000000010da95d91 EnsureEEStarted(tagCOINITEE) + 273
7 libcoreclr.dylib 0x000000010d9a3045 CorHost2::Start() + 133
8 libcoreclr.dylib 0x000000010d8da52d coreclr_initialize + 557
9 libhostpolicy.dylib 0x000000010d8538b9 run(arguments_t const&) + 4585
10 libhostpolicy.dylib 0x000000010d854ba5 corehost_main + 341
11 libhostfxr.dylib 0x000000010d80e829 execute_app(std::__1::basic_string<char, std::__1::char_traits
Thread 1: 0 libsystem_kernel.dylib 0x00007fff8f34f4de mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff8f34e64f mach_msg + 55 2 libcoreclr.dylib 0x000000010d8d6f2a MachMessage::Receive(unsigned int) + 74 3 libcoreclr.dylib 0x000000010d8d5dd9 SEHExceptionThread(void*) + 105 4 libsystem_pthread.dylib 0x00007fff8893305a _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff88932fd7 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff889303ed thread_start + 13
Thread 2: 0 libsystem_kernel.dylib 0x00007fff8f35521a kevent + 10 1 libcoreclr.dylib 0x000000010d8cab13 CorUnix::CPalSynchronizationManager::WorkerThread(void*) + 147 2 libcoreclr.dylib 0x000000010d8d3718 CorUnix::CPalThread::ThreadEntry(void*) + 328 3 libsystem_pthread.dylib 0x00007fff8893305a _pthread_body + 131 4 libsystem_pthread.dylib 0x00007fff88932fd7 _pthread_start + 176 5 libsystem_pthread.dylib 0x00007fff889303ed thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007fff6e98d288 rbx: 0x00007fc350650860 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x00007fff6e98d3f0 rsi: 0x0000000000000000 rbp: 0x00007fff5244e590 rsp: 0x00007fff5244e578 r8: 0x00007fff6e977b4c r9: 0x00000000fffff800 r10: 0x00007fff5244e2f9 r11: 0x00007fff6e98d3f0 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x00007fff6e98d3f0 r15: 0x00007fff5244ed38 rip: 0x00007fff6e955075 rfl: 0x0000000000000246 cr2: 0x000000010d8cb3c0
Logical CPU: 0 Error Code: 0x00000000 Trap Number: 3
Binary Images:
0x10d7b0000 - 0x10d7b9fff +dotnet (0) <4ED57628-C44C-3723-B98E-7AE9413663A0> /usr/local/share/dotnet/dotnet
0x10d7f5000 - 0x10d81fff3 +libhostfxr.dylib (0)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 147919 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=146.3M resident=116.2M(79%) swapped_out_or_unallocated=30.1M(21%) Writable regions: Total=46.2M written=1312K(3%) resident=2216K(5%) swapped_out=0K(0%) unallocated=44.1M(95%)
REGION TYPE VIRTUAL =========== ======= Kernel Alloc Once 4K MALLOC 36.3M MALLOC (admin) 32K STACK GUARD 56.0M Stack 9232K VM_ALLOCATE 1.9G __DATA 6484K __LINKEDIT 72.5M __TEXT 73.8M __UNICODE 552K shared memory 4K =========== ======= TOTAL 2.2G
Model: MacBookPro11,4, BootROM MBP114.0172.B10, 4 processors, Intel Core i7, 2.2 GHz, 16 GB, SMC 2.29f23 Graphics: Intel Iris Pro, Intel Iris Pro, Built-In Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.15.166.24.3) Bluetooth: Version 4.3.6f4 17916, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM0256G, 251 GB USB Device: Internal Memory Card Reader USB Device: Bluetooth USB Host Controller USB Device: Apple Internal Keyboard / Trackpad Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
</details>
Did the prerequisites change for the portable linux build? There is a doc at https://github.com/dotnet/core/blob/master/Documentation/prereqs.md but it may make sense to add a prerequisites section to each release note since this might change over time..
Speaking of prerequisites does macOS still require libssl, since .NET Core now uses the Apple crypto APIs, not openssl?
Finding prerequisites currently is a pain, they are scattered around repos and docs. docs.microsoft.com currently has documents for windows and Mac, but not linux (and those are for 1.0 only which is okay). So I really have no idea where to link to in http://stackoverflow.com/a/43951331/784387 (edits welcome)
@hyeomans it looks like you're running 10.10 on your Mac, and this page says you need to at least be running 10.11: https://www.microsoft.com/net/core/preview#macos
Actually macOS 10.12 is required now and this error has already been reported: https://github.com/dotnet/coreclr/issues/10337 (TL;DR: glock_gettime() is 10.12+ only)
@leecow, @richlander any chance of updating that on the installation instructions?
Would also be helpful to update the download page which really makes it look like 10.11 is supported...

👆 That's what I was talking about 😄 👍 (just too lazy to make a screen shot)
Ahh, I misread and thought you were talking about the installer itself, which hopefully already doesn't let you install on unsupported versions?
*sigh* the installer just chugs right along... @dasMulli what's the right place to file a bug to get the .NET Core installer fixed? dotnet/cli repo? It is there I see some code for packaging, but their template already says it requires 10.12 - from here:
<volume-check>
<allowed-os-version>
<os-version min="10.12" />
</allowed-os-version>
</volume-check>
dotnet/cli repo
@dasMulli @powellcj12 - PR submitted to update min macOS version on the getting started page. Thanks for the catch!
@leecow can you link to it please?
Hi, I updated to 10.10.5 and I get:
Date/Time: 2017-05-13 16:37:27.438 -0700 OS Version: Mac OS X 10.10.5 (14F2315) Report Version: 11 Anonymous UUID: 16C4099C-F1DE-BEC7-DBE6-92EFF1E2FC85
Sleep/Wake UUID: 5C368E69-4F9E-4CE9-97FF-9CE427D877B8
Time Awake Since Boot: 22000 seconds Time Since Wake: 200 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000
Dyld Error Message: Symbol not found: _clock_gettime Referenced from: /usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.0.0-preview1-002111-00/libcoreclr.dylib (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld 0x00007fff643b0075 dyld_fatal_error + 1
1 dyld 0x00007fff643b32a8 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 180
2 libdyld.dylib 0x00007fff8b6093ba dyld_stub_binder + 282
3 ??? 0x00000001074fd008 0 + 4417638408
4 libcoreclr.dylib 0x00000001071e957d EEStartupHelper(tagCOINITEE) + 333
5 libcoreclr.dylib 0x00000001071e8f15 EEStartup(tagCOINITEE) + 325
6 libcoreclr.dylib 0x00000001071e8d91 EnsureEEStarted(tagCOINITEE) + 273
7 libcoreclr.dylib 0x00000001070f6045 CorHost2::Start() + 133
8 libcoreclr.dylib 0x000000010702d52d coreclr_initialize + 557
9 libhostpolicy.dylib 0x0000000106fa68b9 run(arguments_t const&) + 4585
10 libhostpolicy.dylib 0x0000000106fa7ba5 corehost_main + 341
11 libhostfxr.dylib 0x0000000106f61829 execute_app(std::__1::basic_string<char, std::__1::char_traits
Thread 1: 0 libsystem_kernel.dylib 0x00007fff8c6e94de mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff8c6e864f mach_msg + 55 2 libcoreclr.dylib 0x0000000107029f2a MachMessage::Receive(unsigned int) + 74 3 libcoreclr.dylib 0x0000000107028dd9 SEHExceptionThread(void*) + 105 4 libsystem_pthread.dylib 0x00007fff85a2a05a _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff85a29fd7 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff85a273ed thread_start + 13
Thread 2: 0 libsystem_kernel.dylib 0x00007fff8c6ef21a kevent + 10 1 libcoreclr.dylib 0x000000010701db13 CorUnix::CPalSynchronizationManager::WorkerThread(void*) + 147 2 libcoreclr.dylib 0x0000000107026718 CorUnix::CPalThread::ThreadEntry(void*) + 328 3 libsystem_pthread.dylib 0x00007fff85a2a05a _pthread_body + 131 4 libsystem_pthread.dylib 0x00007fff85a29fd7 _pthread_start + 176 5 libsystem_pthread.dylib 0x00007fff85a273ed thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007fff643e8288 rbx: 0x00007fd66870ae40 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x00007fff643e83f0 rsi: 0x0000000000000000 rbp: 0x00007fff58cfb590 rsp: 0x00007fff58cfb578 r8: 0x00007fff643d2b4c r9: 0x0000000000000000 r10: 0x00007fff58cfb2f9 r11: 0x00007fff643e83f0 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x00007fff643e83f0 r15: 0x00007fff58cfbd38 rip: 0x00007fff643b0075 rfl: 0x0000000000000246 cr2: 0x000000010701e3c0
Logical CPU: 0 Error Code: 0x00000000 Trap Number: 3
Binary Images:
0x106f03000 - 0x106f0cfff +dotnet (0) <4ED57628-C44C-3723-B98E-7AE9413663A0> /usr/local/share/dotnet/dotnet
0x106f48000 - 0x106f72ff3 +libhostfxr.dylib (0)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 9173 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=146.3M resident=82.0M(56%) swapped_out_or_unallocated=64.4M(44%) Writable regions: Total=46.2M written=1032K(2%) resident=2148K(5%) swapped_out=0K(0%) unallocated=44.1M(95%)
REGION TYPE VIRTUAL =========== ======= Kernel Alloc Once 4K MALLOC 36.3M MALLOC (admin) 32K STACK GUARD 56.0M Stack 9232K VM_ALLOCATE 1.9G __DATA 6484K __LINKEDIT 72.5M __TEXT 73.8M __UNICODE 552K shared memory 4K =========== ======= TOTAL 2.2G
Model: MacBookPro11,4, BootROM MBP114.0172.B10, 4 processors, Intel Core i7, 2.2 GHz, 16 GB, SMC 2.29f23 Graphics: Intel Iris Pro, Intel Iris Pro, Built-In Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.15.166.24.3) Bluetooth: Version 4.3.6f4 17916, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM0256G, 251 GB USB Device: Internal Memory Card Reader USB Device: Bluetooth USB Host Controller USB Device: Apple Internal Keyboard / Trackpad Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
</details>
@hyeomans you need macOS 10.12("macOS Sierra") or higher, 10.10.5 won't do.