How to Use asp.NetCore 2.0.0 on Visual Studio 2019 - asp.net-core-2.0

I need to start a project with .Net Core 2.0.0 because of some problem of version with other projects but Visual Studio does not allow it, mainly because the .Net Core 2.0.0 option does not appear in the options and when creating a 2.1 project and change it to 2.0 I make mistakes of compatibility.
They told me that using the .Net Core 2.0 SDK I could create my project, but I have no idea how to install the SDK in Visual Studio or how to use it.
If you could help me with some information for that, I would appreciate it.

You first need to ensure that you have that particular SDK installed. From the command-line you can run:
dotnet --list-sdks
If you don't see the version there, you'll need to install it from: https://dotnet.microsoft.com/download/dotnet-core/2.0
I'm not sure if it will show up in Visual Studio as an option. It should, but it's also end-of-life so may not. Regardless, you can simply edit your csproj and change the <TargetFramework> node:
<TargetFramework>netcoreapp2.0</TargetFramework>
That said, you really should get off 2.0 to at least 2.1. The 2.0 release is end-of-life and unsupported. The 2.1 release is the current LTS (long-term support) version.

Close Visual Studio and then download and install the .net core 2.0 SDK here: https://dotnet.microsoft.com/download/dotnet-core/2.0
Use the dotnet-installer to install it: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
Please be aware that .net core 2 is no longer supported by Microsoft and it is recommended that you use .net core 2.1 or greater.

Related

ReSharper intellisense for netcoreapp2.0 console app referencing netstandard2.0 lib

I installed visual studio 15.3 and the .net core 2.0 sdk today. I created a console application(netcoreapp2.0) with a project reference to a library(netstandard2.0). With ReSharper enabled I'm not getting any intellisense for types in the library. Lot's of errors in VS but the project builds/runs if done from the command line(dotnet build). If I suspend ReSharper, intellisense starts working. With ReSharper enabled, if I set the library to netstandard1.x intellisense works.
Is there a workaround for this?
ReSharper 2017.1 doesn't support the final versions of .net core 2 or .net standard 2 - it was released before they were. There is better support in the current (as of 16/08/2017) EAP builds of 2017.2, but there are still some issues. We'll be improving the support for the rest of the Early Access Program, and be ready for the release of ReSharper 2017.2, which should be very soon.
For now, if you can, change your library project from netstandard2.0 to netcoreapp2.0.
<TargetFramework>netcoreapp2.0</TargetFramework>
It will work just fine :)

Where is java.time in Android Studio 3.0?

According to Android Studio documentation:
Android Studio 3.0 introduces built-in support for Java 8 libraries
But a huge improvement in Java 8 is the use of the new java.time library. For now, this library seems not included in this version.
So my question: I'm I wrong ? If not, is there any workaround possible to use this library in Android applications ?
To get Java 8 language feature support running in Android Studio, check these four things:
Make sure you are running the latest version of Android Studio 3.0
Ensure you are using the embedded JDK
Update your the source and
target compatibility versions to 1.8 in your project structure.
Ensure you minSdkVersion is 24 (or 26/'O' depending on which method
you want to use in the class)
Once your project complies with those settings, you can add libraries such as: import java.time.LocalDateTime; to your project. Check out this page for more information: https://developer.android.com/studio/preview/features/java8-support.html

TypeScript 1.4 for visual studio 2012

I have downloaded typescript for vs2012 from the below link
http://www.microsoft.com/en-in/download/details.aspx?id=34790
but it is giving 1.0 version but i want to work with 1.4(latest)
Is there a way to install typescript 1.4 for vs2012.
You need to use Visual Studio 2013 or above to use the latest version of TypeScript.
There is a free community edition, if you satisfy the licensing rules.
You can also use Atom (with Atom TypeScript), Sublime, WebStorm, and a few others too - so you aren't tied to Visual Studio.

Is the tag <MtouchSdkVersion> still necessary in Xamarin Applications?

We have a 4 year old MonoTouch application, now a Xamarin.iOS application. It has a tag in each project
<MtouchSdkVersion>3.0</MtouchSdkVersion>
In the list of warnings with the current Xamarin.iOS and Xcode 6.1.1, I see
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Warning: The iOS SDK version '3.0' is not installed. Using newer version '8.1' instead'. ({myProjectName})
I could manually update this tag or remove it. I do not see in the Xamarin Studio where to configure this on each project. Thanks much.
That should map to the Project options, Build, iOS Build, General, SDK version combobox.
If not found it could show you Default (not sure about the logic) but, beside Default it will only let you select the SDK that the presently configured Xcode provides (e.g. for Xcode 6.1 would see 8.1 for device builds).
note: it's possible it was left over to that value during the project's conversion to unified (which implies switching to msbuild).

Run F# 3.1 on Visual Studio 2012 (not express)

I was wondering if it is possible to run F# 3.1 on Visual studio 2012? if possible then what is the best way to do this?
Thanks
You can't run the 3.1 Visual Studio integration components (e.g. the language service, project system, editor integration) on VS 2012, no. So any bug fixes or features there will not be available.
But you can still build, run, debug projects against the F# 3.1 compiler and runtime from VS 2012. Install the latest release (3.1.1) from here. Create a new project in VS 2012, and edit the .fsproj file to point at the 3.1 Microsoft.FSharp.targets file and the 3.1 version of FSharp.Core.dll. I haven't tried this personally, but I think it should work reasonably well.
And in case cost is a factor preventing moving to VS 2013, note that starting with 3.1.1, Visual F# does support VS Desktop Express.

Resources