- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Web site deployment error at git push frontend master in Azure at Call API securely from server code and Call API securely from browser code steps for files modifications.
Any log messages given by the failure
Using shared compilation with compiler from directory: D:\Program Files (x86)\MSBuild-16.4\MSBuild\Current\Bin\Roslyn
Controllers\TodoController.cs(23,10): error CS1513: } expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(32,22): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(32,31): error CS1519: Invalid token ';' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,41): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,41): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,42): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,44): error CS1519: Invalid token '==' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,39): error CS1519: Invalid token '(' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS1031: Type expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,53): error CS1519: Invalid token '{' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,60): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,71): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,26): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,38): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,39): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(39,9): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(90,5): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(91,1): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Done Building Project "D:\home\site\repository\TodoApi.csproj" (default targets) -- FAILED.
Build FAILED.
"D:\home\site\repository\TodoApi.csproj" (default target) (1:7) ->
(CoreCompile target) ->
Controllers\TodoController.cs(23,10): error CS1513: } expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(32,22): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(32,31): error CS1519: Invalid token ';' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,41): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,41): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,42): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(34,44): error CS1519: Invalid token '==' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,39): error CS1519: Invalid token '(' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS1031: Type expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,40): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,53): error CS1519: Invalid token '{' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,60): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(36,71): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,26): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,38): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(37,39): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(39,9): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(90,5): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Controllers\TodoController.cs(91,1): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
0 Warning(s)
20 Error(s)
Time Elapsed 00:00:10.89
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild-16.4\MSBuild\Current\Bin\MSBuild.exe" /restore "D:\home\site\repository\TodoApi.csproj" /p:DeployOnBuild=true /p:configuration=Release /p:publishurl="D:\local\Temp\8d8535a52d249ba"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\89.20818.4754\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
Expected/desired behavior
Unable to deploy to the website, only commited to remote repository.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Build FAILED.
"D:\home\site\repository\TodoApi.csproj" (default target) (1:7) -> (CoreCompile target) -> Controllers\TodoController.cs(23,10): error CS1513: } expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(32,22): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(32,31): error CS1519: Invalid token ';' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(34,41): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(34,41): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(34,42): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(34,44): error CS1519: Invalid token '==' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,39): error CS1519: Invalid token '(' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,40): error CS1031: Type expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,40): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,40): error CS1026: ) expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,53): error CS1519: Invalid token '{' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,60): error CS1519: Invalid token '=' in class, struct, or interface member declaration [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(36,71): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(37,26): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(37,38): error CS8124: Tuple must contain at least two elements. [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(37,39): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(39,9): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(90,5): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj] Controllers\TodoController.cs(91,1): error CS1022: Type or namespace definition, or end-of-file expected [D:\home\site\repository\TodoApi.csproj]
Time Elapsed 00:00:10.89 Failed exitCode=1, command="D:\Program Files (x86)\MSBuild-16.4\MSBuild\Current\Bin\MSBuild.exe" /restore "D:\home\site\repository\TodoApi.csproj" /p:DeployOnBuild=true /p:configuration=Release /p:publishurl="D:\local\Temp\8d8535a52d249ba" An error has occurred during web site deployment. \r\nD:\Program Files (x86)\SiteExtensions\Kudu\89.20818.4754\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful