0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Error: rzc generate exited with code 2

Last updated at Posted at 2019-10-27

環境:
Visual Studio for Mac Community 8.1.3
.NET Core 2.2
ASP.NET MVC

突然以下のようなエラーになり、手詰まりになる。どこが悪いのかも教えてくれない。
/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.aspnetcore.razor.design/2.2.0/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(5,5): Error: rzc generate exited with code 2.

Razor View内でコメントを書いただけで上のエラーになる。

これは問題なし(No Problem)

@* a *@

更に二重にコメントアウト。これが気に入らないらしい。(Error!)

@*@* a *@*@

こちらで議論されているが解決に至っていない様子。SDKを再インストールだの・・・。
https://developercommunity.visualstudio.com/content/problem/403142/rzc-generate-exited-with-code-2.html

ちなみに、Windows版 Visual Studioはわかりやすいエラーになり、問題なし。
A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?