aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 226 forks source link

VS build fails when using microsoft.aspnetcore.razor.design package #2685

Closed IgorKravcov closed 5 years ago

IgorKravcov commented 5 years ago

Hi all,

We seem to experience an issue when trying to build the project in VS. We get:

Assembly location for Razor SDK Tasks was not specified. The most likely cause is an older incompatible version of Microsoft.NET.Sdk.Razor, or Microsoft.NET.Sdk.Web used by this project. Please target a newer version of the .NET Core SDK.

We are using VS 2017, latest patch - 15.8.8 and microsoft.aspnetcore.razor.design is 2.2.0-preview3-35497.

Tried this on vanilla .Net Core 2.1 web app and got the same issue. The only two versions of SDKs installed are 2.1.202 and 2.1.403

Just wondering if anyone else had this issue or know why this might be happening.

msbuild.zip

pranavkm commented 5 years ago

@IgorKravcov you will need the 2.2 preview3 SDK (or newer) to reference the preview3 Razor.Design package. The SDK is available for download from here - https://www.microsoft.com/net/download/dotnet-core/2.2

IgorKravcov commented 5 years ago

thanks @pranavkm the issue is now resolved.