Publish failed

While I was writing these articles about creating, developing local and deploying an Azure Function App, I received this error, Figure 1.

1>—— Build started: Project: chsharpguitar-func-db, Configuration: Release Any CPU ——
1>Function1.cs(37,81,37,82): error CS1010: Newline in constant
1>Function1.cs(37,82,37,82): error CS1026: ) expected
1>Function1.cs(37,82,37,82): error CS1002: ; expected
1>Function1.cs(43,75,43,76): error CS1010: Newline in constant
1>Function1.cs(43,76,43,76): error CS1026: ) expected
1>Function1.cs(43,76,43,76): error CS1002: ; expected
1>Done building project “chsharpguitar-func-db.csproj” — FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
   Publish Started
Function1.cs(37,81): error CS1010: Newline in constant [C:\Users\benperk\source\repos\chsharpguitar-func-db\
                      chsharpguitar-func-db\chsharpguitar-func-db.csproj]
Function1.cs(37,82): error CS1026: ) expected [C:\Users\benperk\source\repos\chsharpguitar-func-db\
                      chsharpguitar-func-db\chsharpguitar-func-db.csproj]
Function1.cs(37,82): error CS1002: ; expected [C:\Users\benperk\source\repos\chsharpguitar-func-db\
                      chsharpguitar-func-db\chsharpguitar-func-db.csproj]
Function1.cs(43,75): error CS1010: Newline in constant [C:\Users\benperk\source\repos\chsharpguitar-func-db\
                      chsharpguitar-func-db\chsharpguitar-func-db.csproj]
Function1.cs(43,76): error CS1026: ) expected [C:\Users\benperk\source\repos\chsharpguitar-func-db\
                      chsharpguitar-func-db\chsharpguitar-func-db.csproj]

image

Figure 1, publishing failed while deploying to and Azure Function App

It turned out to be a compile issue, I had added some code without testing or compiling first.  I saw the failure reasons in the Output window in Visual Studio, Figure 2.

image

Figure 2, publishing failed while deploying to and Azure Function App

Once I fixed those compile error, all worked fine.