Confusion with VS 2017 dotnet-sdk-2.1.4 and .NET Core 2.0.6 .NET Core SDK 2.1.101 - visual-studio-2017

I want to target latest .Net Core 2.0.6 to build console app in Visual Studio 2017, the issue is that latest VS .Net Core SDK currently as per:
https://www.microsoft.com/net/download/visual-studio-sdks
is
dotnet-sdk-2.1.4-windows-x64-installer, released January 9, 2018 with .Net Core 2.0.5
https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0.5.md
What should I do to target .Net Core 2.0.6 shipped with .NET Core SDK 2.1.101?, released March 13, 2018
https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0.6.md

Oh, by googling "dotnet-sdk-2.1.101-windows-x64-installer"
I found:
https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.101
Which contains:
https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.101-windows-x64-installer
So MS need to update .Net Core SDK link in below link ASAP!
https://www.microsoft.com/net/download/visual-studio-sdks
After installtion I still can't see any mention for 2.0.6 within VS
But in command-line latest version seems active!

Related

visual studio 2017 .NET SDK does not support targeting .NET Core 2.0

I am breaking my head over this for a while now:
I have tried installing both professional and community version of visual studio 2017 v 15.5.2
and installed .net core Runtime 2.0.3 and .net core SDK 2.1.2.
When I open a new web application I get an error saying
"the sdk 'microsoft.net.sdk.web' specified could not be found"
When I try to build an existing project I get an error
"the current .NET SDK does not support targeting .NET Core 2.0. Either
target .NET Core 1.1 or lower, or use a version of the .NET SDK that
supports .NET Core 2.0."
I don't see ".net core 2.0" in my target framework
I don't have global.json file in my computer
When I try dotnet --info, I get this
.NET Command Line Tools (2.1.2)
Product Information:
Version: 2.1.2
Commit SHA-1 hash: 5695315371
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.2\
Microsoft .NET Core Shared Framework Host
Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df
Some one please help
Fixed it by adding a MSBuildSdksPath userVariable.
Add an Enviroment variable named MSBuildSdksPath.
It's value should point to a Dotnet SDK folder. Eg:
C:\Program Files\dotnet\sdk\2.2.102\Sdks

Publish .net Core web app as Web Deploy Package (MSDeploy) fails in Visual Studio 2017

I have created multiple sample project following the VS2017 .Net Core Web App template, targeting .Net Core and .NET Framework.
I have tested in all last three cumulative updates of VS2017; (i.e. Version 15.3.2, 15.3.3, 15.3.4)
Publishing to Web Deploy Package fails with the following error:
Target: .NET Core
Web deployment task failed. (Could not find file '\PublishTestNetCore.Parameters.xml'.) PublishTestNetCore C:\Program Files\dotnet\sdk\1.1.0\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets 88
Target: .NET Framework 461
Web deployment task failed. (Could not find file '\TestPublish461.Parameters.xml'.) TestPublish461 C:\Program Files\dotnet\sdk\1.1.0\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets 88
I am able to publish to IIS server though, but building the MSDeploy package always fail.
Thanks for any hint.
Mamrez
The issue was that the publish to package with latest VS 2017 cumulative updates required .NET Core 2.0 installed and that's odd!
I had to follow this link to install .NET Core 2.0 on my developer laptop to be able to publish MSDeploy packages that target non-.NET Core 2.0!!
[https://www.microsoft.com/net/core#windowscmd]

How to enable intellisense in package.json

In this video is shown how WebStorm provides intellisense support in package.json. I tried the same but it doesn't work for my version. How do I enable it?
My version is:
WebStorm 2016.3.3
Build #WS-163.12024.17, built on January 31, 2017
Licensed to Maximus Koretskyi
You have a perpetual fallback license for this version
Subscription is active until October 16, 2018
JRE: 1.8.0_73-b02 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
For that you need to use WebStorm 2017.1 (build 171.2272 or newer) which is currently in EAP stage (the video shows IDE version that was used).
https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2272/
Latest EAP build can be downloaded here.

How do I restore a missing project template in Visual Studio 2015?

Since installing the latest ASP.NET and .NET Core in Visual Studio 2015, when opening a project created with the "Class Library (Package)" template, the project shows in my solution as "(incompatible)".
What happened to the template that creates project files with the *.xproj extension?
How do I open previously created projects with this extension?
"Class Library (Package)" is a template for Asp.NET 5 project which use DNX while the latest Asp.Net Core use .Net Core. You can following the instruction here to upgrade the Asp.NET 5 project to Asp.NET Core project: Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0.

Is it OK to use the version 4.0.2 of rails to read the ebook Agile Web Development with Rails 4?

I'm learning Rails and I beginning to read the ebook Agile Web Development with Rails 4 and I have installed and configured in my Mac Os X the rails 4.0.2 and I see in the book who recommends to install the version 4.0.0.
I think the version 4.0.2 is better and I want to do all the ebook with this version but I have fear if I'll have problems because of this?
Is it OK if I'm continuing the ebook with the version 4.0.2, or should I install the 4.0.0?
The differences between version 4.0.0 and 4.0.2 will be minimal.
I wouldn't worry about it.
Edit: added 4.0.x release notes
Rails 4.0 Release History
Rails 4.0.2 was released December 3, 2013 with security fixes. See Rails 3.2.16 and 4.0.2 have been released!.
Rails 4.0.1 was released November 1, 2013 with performance gains and many bug fixes. See Rails 4.0.1 has been released!.
Rails 4.0.0 was released June 25, 2013. See Rails 4.0: Final version released!.