abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.93k stars 3.44k forks source link

ABP Suite - adding "Public website" to solution gives errors #9892

Closed improwise closed 3 years ago

improwise commented 3 years ago

Creating a new solution in ABP Suite (latest version) for Angular gives a lot of these errors when you select to add a public website (regardless of if you have included CMS Tools). Do the same without adding the Public Website option and all is fine.

Severity    Code    Description Project File    Line    Suppression State
Error   CS1576  The line number specified for #line directive is missing or invalid Acme.BookStore.Web.Public   M:\Projects\ASP.NET\ABP\src\Acme.BookStore\aspnet-core\src\Acme.BookStore.Web.Public\obj\Debug\net5.0\Razor\Components\Toolbar\LoginLink\Default.cshtml.g.cs    63  Active

This can easilly be reproduced in latest VS2019 and VS2019 Preview.

Now, this seem to be a Visual Studio / .NET bug rather than a ABP one but perhaps some adjustments are needed in ABP as well, if not, feel free to close this. Thanks.

https://stackoverflow.com/questions/68768704/visual-studio-2019-version-16-11-0-error-cs1576-the-line-number-specified-for

maliming commented 3 years ago

hi

I think this is not an error of ABP.