Azure-Samples / dotnet-core-api

A simple ASP.NET Core API application that demonstrates how to run API apps in Azure App Service.
MIT License
122 stars 692 forks source link

Web site deployment error #10

Closed alin724 closed 4 years ago

alin724 commented 4 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ 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.

OS and Version?

Windows 10

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.