This document lists known issues for .NET Core 2.0.0 Preview 2 and .NET Core SDK 2.0.0 Preview 2 which may be encountered during usage.
Reported in dotnet/core/issues/717 If you have .NET Core Preview 1 installed, it will need to be removed before attempting to install Preview 2. This can be done by running the following command.
sudo apt remove dotnet-dev-2.0.0-preview1-005977
Visual Studio for the Mac 7.1 (build 1258) was recently released into beta and supports .NET Core 2.0 Preview 2.
When referencing a NETStandard2.0 library from a .NETFramework application you must add a reference to the NETStandard.Library.NETFramework package to the .NETFramework project.
https://github.com/aspnet/Tooling/blob/master/known-issues-vs2017-preview.md
https://github.com/dotnet/cli/issues/6550
This fails because the 1.0 first run shells out two dotnet commands to do dotnet new and dotnet restore. Because this is a simple shell out, the 2.0 CLI ends up being picked up to execute the commands. However, in the 1.0 CLI, we invoke dotnet new passing –f netcoreapp1.0 and netcoreapp1.1 and the 2.0 CLI no longer carries these templates, which causes the command and the whole first run to fail.
There are a few issues with using VB and .NET Core to be aware of.
https://github.com/dotnet/sdk/pull/1188
Creating a console\class library will build successfully but with a warning that System.Data namespace contains no types.
Adding <NoWarn>$(NoWarn),40057</NoWarn>
to the project will suppress the warning.
https://github.com/NuGet/Home/issues/4886
Adding <PackProjectInputFile>$(MSBuildProjectFile)</PackProjectInputFile>
to your .vbproj
file and then invoking the Pack command will produce a package.
Unit test templates don’t exist in Preview 1 because test discovery fails for VB projects. This issue is under investigation and there is no workaround at this time.
There are a few items to be aware of if you are using .NET Core 2.0 with Visual Studio for Mac.
If you want to try .NET Core 2.0 with Visual Studio Code, you will need to use an updated C# Extension.
If you try out the C# for VS Code bits and find any issues, please file them at OmniSharp/omnisharp-vscode.