T4MVC / R4MVC

R4MVC is a Roslyn code generator for ASP.NET Core MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places
Apache License 2.0
157 stars 48 forks source link

Error in New Visual Studio Version #161

Closed rbsdotnet closed 3 years ago

rbsdotnet commented 3 years ago

PM> Generate-R4MVC R4Mvc Generator Tool v1.0.0-alpha2-00369

Using: Visual Studio Enterprise 2019 - 16.10.31402.337 Project: WebApp.csproj

Creating Workspace ... Loading project ... The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failure: Msbuild failed when processing the file 'E:\Workspaces\WebApp.csproj' with message: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. E:\Workspaces\WebApp.csproj

valeriob commented 3 years ago

Here is the fix : https://github.com/T4MVC/R4MVC/pull/162 @artiomchi can you publish a new version pls ?

rbsdotnet commented 3 years ago

@valeriob Thanks for fixing the error.

@artiomchi Please Release a New Version!!!

jkatsiotis commented 3 years ago

+1 on this one from me.

//cc @artiomchi

metafab commented 3 years ago

This error does not come from R4MVC. It can be solved by updating the MSBuildSDKsPath environment variable so that it points to the new SDK that was installed with the Visual Studio update. The value must be something like C:\Program Files\dotnet\sdk\5.0.301\Sdks.

rbsdotnet commented 3 years ago

@metafab Thanks for the tips The problem was solved using your solution

artiomchi commented 3 years ago

New library build was pushed live! Sorry for the delay :)