Aspnetcore: Support for Visual Studio 2019

Created on 7 Dec 2018  ·  19Comments  ·  Source: dotnet/aspnetcore

Make ASP.NET Core Blazor Language Services available for VS 2019.

Done area-blazor

Most helpful comment

Yes, we have some enabling features in VS 2019 preview2. Expect to see some new stuff when .NET Core 3.0.0 preview2 (soon). We'll make an announcment when stuff is ready to use.

All 19 comments

Awaiting a new release for VS2019

Small update, I was able to change Microsoft.VisualStudio.BlazorExtension to support VS 2019. It builds and installs fine, but, there are few problems:

  1. Future versions of VS will not support AutoLoad enabled solutions. Extension need to be migrated to use AsyncPackage. But this can be done later as VS 2019 only warns about this. (At least at this point it does.)
  2. Although my Blazor project builds and runs just fine with the extension in VS 2019, it seems that TagHelper syntax highlighting does not work.
    image
    Same for the base class methods:
    image
    It feels like it does not know it inherits BlazorComponent.
    Just to be sure I checked MVC project, and TagHelpers work there with BlazorExtension the extension installed.

I would appreciate any ideas on where in the code I can look to debug the second issue.

VIsual Studio version: 16 preview 1
Source code taken from master branch at commit f52882

This is done 👍 - this will be going on in VS 2019 preview 2, but will require updated runtime packages/templates to work. Stay tuned for announcements when we release the next set of previews.

@rynowak VS 2019 preview 2 has been released. But even https://dotnet.myget.org/F/blazor-dev/vsix/ still contain vs 2017 version only.

Yes, we have some enabling features in VS 2019 preview2. Expect to see some new stuff when .NET Core 3.0.0 preview2 (soon). We'll make an announcment when stuff is ready to use.

Any news?

This is out now when you download latest .NET Core 3.0 preview SDK and install VS2019 Preview 2.


From: Vladimir Chirikov notifications@github.com
Sent: Friday, February 1, 2019 13:23
To: aspnet/AspNetCore
Cc: Jan Hajek; Manual
Subject: Re: [aspnet/AspNetCore] Support for Visual Studio 2019 (#5669)

Any news?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/aspnet/AspNetCore/issues/5669#issuecomment-459705748, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH85-RU_U3wPJVXnPOs53q627avB84wxks5vJDGRgaJpZM4ZXQNP.

I've tried on VS 2019 Preview 2.1 with .Net Core 3.0 preview 2 SDK installed, but still, my Blazor app does work. Any extensions I need to install or changes I need to do to my project?

Same:
Blazor on vs 2019 2.1

This is not currently supported. You can try temporarily moving your project to a prerelease feed, like here: https://github.com/dotnet-presentations/blazor-workshop/pull/47/commits/df702048edddc586bce6ad389b220b27ca8bfeac

@chucker thanks, works fine.

I'm a little confused; This is marked as done, But the VSIX/Intellisense doesn't seem to be supported yet. Is that intentional?

I'm a little confused; This is marked as done, But the VSIX/Intellisense doesn't seem to be supported yet. Is that intentional?

Me too, I have VS 2019 Community RTM installed and both intellisense and debugging don't work properly. Building and running works fine.

For ASP.NET Core 3.0 Preview 4 and newer, you need Visual Studio 2019 16.1 Preview. 16.0 will work for building, but not for IntelliSense, etc.

For ASP.NET Core 3.0 Preview 4 and newer, you need Visual Studio 2019 16.1 Preview. 16.0 will work for building, but not for IntelliSense, etc.

Oh wow, thanks. That was just what was missing!

I have Visual Studio 2019 Preview for Mac. (Version 8.2 - build 1090)
I installed .Net Core 3.0.100 Preview 6-012264
I created a blazor hosted through the cli 2 days ago and it worked fine.
Now I'm performing the same steps but the new app is not building.
The build error description is" rzc generate exited with code 1." in file RazorCompilation.targets.

I'm not sure how to solve this. I appreciate any suggestions. Thanks.

I created a blazor hosted through the cli 2 days ago and it worked fine.

Have you updated your .NET Core 3.0 SDK to preview 8?

I have. Now I'm worse off.
I'm running Visual Studio for Mac 8.2.3 (build 16).
.Net 3.0.100-preview8-013656

I have updated templates. From the cli the option for blazorhosted does not appear. instead, blazorwasm seems to have replaced it. I create a project, I build it and get no errors.
However, when I run it without any modifications, it just does not do anything, it does not even give an error message.
I'm attaching the Package console view.

pic

Was this page helpful?
0 / 5 - 0 ratings