'getting CS1056 Unexpected character '[]' error on .net core 2.0.3 web project

When i build my .net core MVC web project i get this error 190 times :

CS1056 Unexpected character '[]' .

This problem is seen after a few builds. Any suggestions?



Solution 1:[1]

This is about a file in my temp folder which is on

users\[My User]\AppData\temp\.NETCoreApp,Version=v2.0.AssemblyAttributes.cs, when I delete this my project completely built.

Solution 2:[2]

If you're getting this error during publishing, you can alternatively resolve the issue by creating a new release profile.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lakindu Gunasekara
Solution 2 Geomatik Mühendisi