Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASP.NET Core 3.1 - Compiler warning: CS0436 #3

Open
ahmad-shahid opened this issue Nov 3, 2022 · 1 comment
Open

ASP.NET Core 3.1 - Compiler warning: CS0436 #3

ahmad-shahid opened this issue Nov 3, 2022 · 1 comment

Comments

@ahmad-shahid
Copy link
Contributor

Problem Found in
Version: At least 2.3.3 and higher
Template: MVC
Environment: AKAMAI
Master/Layout: N/A
Additional settings: Only with ASP.NET Core 3.1

Problem Description:
We have compiler's warnings when using the GoC nuget package and targeting ASP.NET Core 3.1. If you use ASP.NET Core 2.2 there is no warning. I even tried with the sample link and I get the same problem once I upgrade it to 3.1.
There is 9-10 warnings looking like:

Severity Code Description Project File Line Suppression State
Warning CS0436 The type 'Views_GoC_WebTemplate__Layout_Application' in 'C:\Users\nicolas.rodrigues\source\repos\WebApplication1\WebApplication1\obj\Debug\netcoreapp3.1\Razor\Views\GoC.WebTemplate_Layout.Application.cshtml.g.cs' conflicts with the imported type 'Views_GoC_WebTemplate__Layout_Application' in 'GoC.WebTemplate.CoreMVC.Views, Version=2.0.8019.23631, Culture=neutral, PublicKeyToken=1461a53e67b98f2c'. Using the type defined in 'C:\Users\nicolas.rodrigues\source\repos\WebApplication1\WebApplication1\obj\Debug\netcoreapp3.1\Razor\Views\GoC.WebTemplate_Layout.Application.cshtml.g.cs'. WebApplication1 C:\Users\nicolas.rodrigues\source\repos\WebApplication1\WebApplication1\obj\Debug\netcoreapp3.1\Razor\Views\GoC.WebTemplate_Layout.Application.cshtml.g.cs 4 Active

We treat warning as errors in our project. For now, we just ignore that specific warning code but it would be nice not to have to.
Thank you in advance,
Nick

@ahmad-shahid
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant