aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
258 stars 124 forks source link

Error running custom tool RazorGenerator in cshtml file in .net standard console project in VS 2017 #1004

Open gabomgp opened 7 years ago

gabomgp commented 7 years ago

When i'm trying to run as custom tool the plugin Razor Generator (https://github.com/RazorGenerator/RazorGenerator) in Visual Studio 2017 in a cshtml file, within a .net standard console project, i'm getting the error message "Error to save the edited properties enumerated to continuation. Custom Tool. One or more values are not valid. Internal error."

atnegrete commented 6 years ago

Hi, where you ever able to fix this? I'm having a similar problem.

gabomgp commented 6 years ago

Yeah. The best "solution" i found is to install the package RazorGenerator.MsBuild and don't configure the custom tool. The project compile without problems and in compilation time, the cshtml is transpiled to cs. But, in the error window in Visual Studio, appears errors that dont affects compilation. It's all.

barrytang commented 6 years ago

@alexgav @NTaylorMullen @rynowak

barrytang commented 6 years ago

To report new issues, use the Report a Problem tool. The GitHub Issue Tracker for the aspnet/Tooling repo is now deprecated in favor of the Report a Problem tool.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See here for more details.

NTaylorMullen commented 6 years ago

I'd recommend logging an issue over at the RazorGenerator repo. Sadly it's not an officially supported project, some team members just developed it in their spare time 😄.

If you'd like to invest in building your own tool to do things similar to what RazorGenerator did I'd recommend looking at https://github.com/aspnet/Razor/tree/dev/src/RazorPageGenerator.