Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and run the azure function but I get an error message #31

Open
Haroon921 opened this issue Mar 15, 2021 · 0 comments
Open

Build and run the azure function but I get an error message #31

Haroon921 opened this issue Mar 15, 2021 · 0 comments

Comments

@Haroon921
Copy link

Hello Mark,

I am preparing for a partner workshop using the following link:
https://github.com/AzureCosmosDB/labs/blob/master/dotnet/labs/08-change_feed_with_azure_functions.md#create-an-azure-function-to-consume-cosmos-db-change-feed

I need to build and run the azure function but I get an error message.

C:\labs\Lab08\ChangeFeedFunctions>dotnet run
Unable to run your project.
Ensure you have a runnable project type and ensure 'dotnet run' supports this project.
A runnable project should target a runnable TFM (for instance, net5.0) and have OutputType 'Exe'.
The current OutputType is 'Library'.
I attempted to include the following


Exe
netcoreapp3.1
v2


then I get the following
C:\labs\Lab08\ChangeFeedFunctions>dotnet run
CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [C:\labs\Lab08\ChangeFeedFunctions\ChangeFeedFunctions.csproj]
The build failed. Fix the build errors and run again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant