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

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

Related

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

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!

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]

VS2015 community Django not able to start in debug

I have been working with VS2015 on a django project for awhile now. Today when I went to run the debugger I found that the manage.py script is not running It is showing that the subcommand appears to be missing-Screenshot of the start of the debugging widow opened by VS2015, listing continues to show all of the manage.py subcommands:
I can start the django code using runserver with out any errors being raised. I just at this time can no longer debug. A wee bit frustrating.
Here is the info on the current VS2015 install. **Note links removed from VS2015 info since Stackoverflow would not allow me to post with more than 2 links present at this time **
Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA811
Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA811
Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA811
Microsoft Visual C++ 2015
Windows Phone SDK 8.0 - ENU 00322-20000-00000-AA811
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 7.18.00214.2
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
Command Bus, Event Stream and Async Manager Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Devart Code Compare 4.1.78
Devart Code Compare
Copyright (c) 2012-2015 Devart. All rights reserved.
Devart dotConnect for PostgreSQL 7.7.819.0
Devart dotConnect for PostgreSQL
Copyright 2002 - 2017 Devart. All rights reserved.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.4.4
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
Python Tools for Visual Studio 2.2.50113.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.
Python Tools for Visual Studio - Django Integration 2.2.50113.00
Provides templates and integration for the Django web framework.
Python Tools for Visual Studio - Profiling Support 2.2.50113.00
Profiling support for Python projects.
SQL Server Data Tools 14.0.60519.0
Microsoft SQL Server Data Tools
TypeScript 1.8.36.0
TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps 14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Xamarin 4.2.1.62 (680125b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 7.0.2.37 (ce955cc)
Visual Studio extension to enable development for Xamarin.Android.
Xamarin.iOS 10.2.1.5 (44931ae)
Visual Studio extension to enable development for Xamarin.iOS.
I determined the source of the problem and the solution. I encountered this on my workstation at the office and came home to try to see if the same problem occurred with an older version of vs2015.
I discovered the older version did work and that the debug setting on the project showed launch mode Django Web launcher
enter image description here
The VS2015 install at the office showed no entry in the Launch Mode. After I selected the new entry web launcher I was able to debug with no problems.

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.

Developer Studio 2.1.0 and jdk 1.7

I am using the WSO2 Developer Studio version 2.1.0 which I downloaded in November. I want to use the jdk 1.7 to compile my projects.
I added this to the eclipse.ini file:
-vm C:/Program Files/Java/jdk1.7.0_11/bin
When i attempt to set the Java Compiler preferences, the highest Compiler Compliance level is 1.6 - any idea how I can get eclipse to allow me to compile for 1.7?
Assuming you are using the Developer Studio 2.1.0 preinstalled Eclipse distribution I will answer your question.
I do not believe Eclipse Helios support Java 1.7 by default. Hence you need to add the JDK 1.7 to your JDK list as explained in here.
After that you should be able to use your Developer Studio with JDK 1.7.
However we have seen some issues running Eclipse Helios, Indigo and Juno with JDK 1.7 since Eclipse instances experienced some issues while installing new plugins with Eclipse P2 Updater due to some changes in JDK 1.7 implementations. Therefore I strongly recommend you to use JDK 1.6 instead of JDK 1.7 unless you are using Juno SR2.
/Harshana