I have following errors on Azure DevOps:
Floow.Admin.Domain.Attributes\ServiceDocumentFieldAttribute.cs(38,30): Error CS1002: ; expected Floow.Admin.Domain.Attributes\ServiceDocumentFieldAttribute.cs(38,43): Error CS1519: Invalid token '(' in class, struct, or interface member declaration
It is about following code
public class GridFilterAttribute : Attribute
{
public readonly string[] Fields;
public bool IsFilter => Fields.Any();
public GridFilterAttribute(params string[] fields)
{
Fields = fields;
}
}
Could this have to do with the C# version? Local no problems.
########################## New information ##########################
Could this be a reason: ##error]packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.targets(48,5): Error MSB4062: The "KillProcess" task could not be loaded from the assembly c:\agent\2\s\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0\build\net46....\tasks\DotNetCompilerPlatformTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.