Home:ALL Converter>Both legacy and current dotnet core version support on Linux or Windows?

Both legacy and current dotnet core version support on Linux or Windows?

Ask Time:2017-05-08T17:03:04         Author:skynyrd

Json Formatter

I have two dotnet core projects. One of them uses dotnet 1.0 (Preview 2 build 3131 and 3133) and other uses dotnet 1.1.1. As far as I know, I cannot run a project.json & xproj based projects with dotnet 1.1.1 and I also cannot run csproj based projects with dotnet 1.0.

I can migrate the legacy dotnet core project to csproj. But I am looking for a solution that I can work on both projects in Windows or Linux.

I checked using docker when compiling projects in Visual Studio and could not find any sufficient resource.

Thanks.

Author:skynyrd,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/43843651/both-legacy-and-current-dotnet-core-version-support-on-linux-or-windows
svick :

First, you seem to be confusing the version of .Net Core, with the version of .Net Core SDK.\n\nThe version of .Net Core (e.g. 1.0.4 or 1.1.1) is not directly related the the difference between project.json and csproj. That is the version of the runtime itself. You can easily switch between different versions of .Net Core on the same machine, just by editing your project file.\n\nThe version of .Net Core SDK (e.g. Preview 2 build 3131 or 1.0.3) is what decides what project format you can use. SDK Preview 2 only supports project.json, SDK 1.0.x only supports csproj. You can have multiple versions of SDK installed on the same machine, and thus have support for both project formats at the same time. But if you want to do that, you need to specify the version of SDK for each project using global.json.\n\nAs for Visual Studio, VS 2015 only supports project.json and VS 2017 only supports csproj (but should be able to migrate project.json projects).\n\nThat being said, I don't see any reason why you should keep using project.json, .Net Core SDK 1.0.x, which supports csproj, works fine on both Linux and Windows.",
2017-05-08T18:58:55
yy